Qt Integration with Visual C++ 2010 Express Edition, how do I do this correctly?
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:
http://img585.imageshack.us/img585/1017/qtconfig1.jpg
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:
http://img171.imageshack.us/img171/1324/qtconfig2.jpg
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. :p 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! :)
Re: Qt Integration with Visual C++ 2010 Express Edition, how do I do this correctly?
since you are building Qt from sources, you are going to need a 'make' utility. In your case, you want to use nmake.exe. I'm not sure if it comes with VC++, it might just be a matter of putting the folder where nmake is located in your path.
It has been a while since I used VC++ , but I remember something about setting up variables and path for command line tools by running vcvars32.bat?
Re: Qt Integration with Visual C++ 2010 Express Edition, how do I do this correctly?
I'm using the Visual Studio command line now, which fixes my issue with finding nmake. Once I go to C:\QtSDK\QtSources\4.7.3, I run vcvars32 and configure -platform win32-msvc2010. Here's the output that really changed in terms of nmake execution:
http://img823.imageshack.us/img823/7440/qtconfig3.jpg
Now it doesn't seem to work cause all of the files are out of line. Don't know why this is. Any more advice?
EDIT: I've installed a few more things in Qt:
http://img815.imageshack.us/img815/1017/qtconfig1.jpg
Still doesn't fix anything, though. Somebody please help me out with this, it's been on my mind for a while now. I have absolutely no clue why I'm getting all these "No such file or directory" errors.