holycause Posted January 5, 2014 Share Posted January 5, 2014 Hey guys, I was wondering how to setup an HDK project with Qt Creator on Windows. I'm having issues to compile it. This is my project file content: TEMPLATE = lib CONFIG -= qt LIBS += -/libpath:"E:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/lib/amd64" \ -/libpath:"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib/x64" \ -"E:/PROGRA~2/SIDEEF~1/HOUDIN~1.469/custom/houdini/dsolib/*.a" \ -"E:/PROGRA~2/SIDEEF~1/HOUDIN~1.469/custom/houdini/dsolib/*.lib" QMAKE_CXXFLAGS += -TP \ -Zc:forScope \ -nologo \ -DVERSION="13.0.198.21" \ -DI386 \ -DWIN32 \ -DSWAP_BITFIELDS \ -D_WIN32_WINNT=0x0501 \ -DWINVER=0x0501 \ -DNOMINMAX \ -D_USE_MATH_DEFINES \ -D_CRT_SECURE_NO_DEPRECATE \ -D_CRT_NONSTDC_NO_DEPRECATE \ -D_SCL_SECURE_NO_WARNINGS \ -DBOOST_ALL_NO_LIB \ -I . \ -I "E:/PROGRA~1/MICROS~1.0/VC/include" \ -I "C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include" \ -I "E:/PROGRA~2/SIDEEF~1/HOUDIN~1.21/toolkit/include" \ -MD \ -EHsc \ -GR \ -bigobj \ -wd4355 \ -w14996 \ -DSESI_LITTLE_ENDIAN \ -DAMD64 \ -DSIZEOF_VOID_P=8 \ -DFBX_ENABLED=1 \ -DOPENCL_ENABLED=1 \ -DOPENVDB_ENABLED=1 \ -DMAKING_DSO SOURCES += \ SOP_CPPWave.C HEADERS += \ SOP_CPPWave.h QMAKE_CXXFLAGS_RELEASE = " " QMAKE_CXXFLAGS_DEBUG = " " but I get this error: #error "You must compile with the /TP switch (C++ Compilation)" Thanks in advance for your help Quote Link to comment Share on other sites More sharing options...
timmwagener Posted January 5, 2014 Share Posted January 5, 2014 (edited) Hey holycause, sry this is not a direct answer to your problem, just some quick suggestions that pop to my mind since i'm gonna do a makefile based Houdini Plugin build for the win plattform soon, too. -CMake: I constrained myself to use CMake as a build generator. CMakeLists can handle setups with Qt pretty flawlessly. Easy automated automocing and .ui->.dll compilation, which is basically all you need QT specific, and then you can use any IDE you want. (And you never spend time again directly setting up a build, makefile, IDE compile settings etc.) -H13 uses Visual Studio 2012 (msvc11) as far as i know........just because i saw msvc9 libs in your file (which is probably correct for H12)......but you are probably aware of that. PS: A general CMakeList file for a H13 example plugin build would be great. I'll post mine if i have it.......although i'm FAR from being any expert in cmake. Edited January 5, 2014 by timmwagener Quote Link to comment Share on other sites More sharing options...
holycause Posted January 5, 2014 Author Share Posted January 5, 2014 Hey Timm, Thanks for your answer, I actually didn't know about msvc11 for H13. I only use Windows at home I really love to use QtCreator to write my code. Quote Link to comment Share on other sites More sharing options...
edward Posted January 9, 2014 Share Posted January 9, 2014 For H13 on Windows, there are both vc9 and vc11 builds available. Make sure you downloaded and installed the correct one matching the compiler that you want to use with the HDK. They are marked accordingly in the name of the installer .exe file. The QtCreator problem (I'm guessing) is that it probably thinks the .C file is a C, not C++ file. So I'm guessing that your modified QMAKE_CXXFLAGS isn't even being used. Try renaming the source file to use a .cpp file extension instead of .C Quote Link to comment Share on other sites More sharing options...
holycause Posted January 14, 2014 Author Share Posted January 14, 2014 I will try it. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.