I've been having some trouble getting Qt 4.7.3 (open source) set up with my Visual C++ 2010 Express Edition. I have quite a few reasons for using VC++ over MinGW or Qt Creator, mostly just because I want to keep my develpment environment consistent.
I started out by using the online install for Qt 4.7.3 for Windows (using Windows 7). Here are the features I currently have installed:
After I installed that, I went to C:\QtSDK\QtSources\4.7.3 via the command line and typed in "configure -platform win32-msvc2010". I set it to Open Source Edition and accepted the licence agreement, here's the output that it gave me:
I can assume that a return code of -1 isn't good, not to mention the ".lib not found" error messages. One problem is I honestly have no clue what "qmake" and "nmake" are supposed to do or how they're supposed to affect my VC++ workflow. I really haven't gone very far beyond adding .libs and include files in terms of compiler settings, so I suppose I'm not surprised at how far I've gotten with this so far. I have quite a bit of experiance with software coding and C++'s syntax, but not as much experiance with implementing new development environments in this kind of depth.
So what should I do now to get the most ideal Qt workflow with VC++? My main goal in terms of using Qt are to create a world editor and other game engine tools using OpenGL 3.x (and possibly OpenGL ES once I focus more on mobile development), as well as Win32 when needed. Help is appreciated!
Qt Integration with Visual C++ 2010 Express Edition, how do I do this correctly?
Your current problem is that nmake is not in your path. You mentioned that you use windows 7 -> click the start (windows) button and search for something like visual studio command prompt. Run it; that will set up environment variables properly for the current session.
qmake is the build tool that supports the Qt build system and Qt's C++ extensions. I am not really that experienced in Qt, but the fact that you are asking what qmake is means that you should definitely look up the documentation. Qt uses some non-standard C++ extensions in the form of macros, etc, and their ui files used to generate both .cpp and .h files for you to use. Here is the documentation manual: http://doc.qt.nokia....ake-manual.html
nmake is the c++ build tool that (I guess) Visual studio is internally using to build c++ projects. http://msdn.microsof...a(v=vs.71).aspx
You are using VS express. AFAIK, it doesn't support extensions, and therefore would not be able to integrate the Qt tools into the IDE. Again, you should look it up, but I believe you will need one of the paid editions to run any extension at all, including qt.
Alternatively, you should be able to set-up pre-build step with VS C++ projects to run moc/uic before the compiler is actually ran. I am, unfortunately, not familiar with VS C++ project files the way I am with msbuild projects, so you should hope for somebody else to help you.
In the past, Qt supported a plugin for Eclipse, if you are inclined not to use Qt Creator.
Wish you luck.
qmake is the build tool that supports the Qt build system and Qt's C++ extensions. I am not really that experienced in Qt, but the fact that you are asking what qmake is means that you should definitely look up the documentation. Qt uses some non-standard C++ extensions in the form of macros, etc, and their ui files used to generate both .cpp and .h files for you to use. Here is the documentation manual: http://doc.qt.nokia....ake-manual.html
nmake is the c++ build tool that (I guess) Visual studio is internally using to build c++ projects. http://msdn.microsof...a(v=vs.71).aspx
You are using VS express. AFAIK, it doesn't support extensions, and therefore would not be able to integrate the Qt tools into the IDE. Again, you should look it up, but I believe you will need one of the paid editions to run any extension at all, including qt.
Alternatively, you should be able to set-up pre-build step with VS C++ projects to run moc/uic before the compiler is actually ran. I am, unfortunately, not familiar with VS C++ project files the way I am with msbuild projects, so you should hope for somebody else to help you.
In the past, Qt supported a plugin for Eclipse, if you are inclined not to use Qt Creator.
Wish you luck.
Over the past few days I got configure/nmake to work (by downloading the open source edition of Qt), but my best bet now is that it won't integrate very well with VS2010 anyway, like you said. I'm just going to use Qt Creator and Visual Studio for all my non-Qt projects for now. I might turn all of my workflow to Eclipse later on, since that also supports Java and I'd be able to get a ton of consistency from that.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement