I'm confused about getting Qt working with Visual Studio Express. Most of the searches online have turned up instructions for compiling Qt using instructions such as:
- Install MSVC2005 or MSVC2008
- Install the most recent Platform SDK (@ MSDN: "Platform SDK for Windows Server 2003 R2")
- From the Platform SDK, you'll need to install at least the base + internet options
- Then, download and extract a recent snapshot or the preview release to D:\Qt\4.x.x
- Open up a console with the MSVC settings loaded (see MSVC Tools-menu) and go to your Qt directory
- Type "configure -platform win32-msvc2005" without the quotation marks
- That will build you the project files you'll need
- After that, it's as simple as running "nmake" and drinking a lot of coffee
Then, add D:\Qt\4.x.x\bin and D:\Qt\4.x.x\lib to your path environment variable, and you'll be able to use this version of Qt from everywhere on your system. The latter could be added to the library section in the options from MSVC as well.
(from http://www.qtcentre.org/threads/11710-Visual-Studio-2005-Express)
However, when I go to the download page of Qt (http://qt.nokia.com/downloads), there is a download for Visual Studio labeled: "Qt libraries 4.7.1 for Windows (VS 2008, 228 MB)"
I'm confused, do I actually still need to build it? Or is it already built?
Using the downloadable exe from qt (http://get.qt.nokia.com/qt/source/qt-win-opensource-4.7.1-vs2008.exe) does not seem to work with Visual Studio 2010. I tried building a simple hello world program from the command line which would not run. I'll repeat my comment from a previous answer.
I was in the process of compiling qt 4.7.1 using the instructions in my question (using win32-msvc2010 as my platform target however) as I asked this SO question and the compilation finished. I rebuilt the hello world project and the exe runs. So it seems like the answer is in order to use with Visual Studio Express 2010 you currently do need to compile (at least until Qt releases a VS2010 download option). However, I believe if you are using VS2008 then you will not need to compile.