We are going to build Qt 4.5 with Visual Studio 2008 Pro. Here is a list of steps you need to do
- Firstly you need to download Qt 4.5 for open source windows applications (qt-sdk-win-opensource-2009.04.exe) from here . This will install Qt along with QT creator and GCC built libraries. This is enough for you if you want to use Qt only with Qt creator, but to build it with Visual C kepp following the steps.
- Now go to the install location where you installed Qt e.g C:\qt\2009.04. We are going to build the libs in this directory with VC. If you want to use Qt with Qt creator as well as Visual Studio, you should copy this folder and paste to a new location for example C:\qtvs\2009.04
- Now open command prompt and change to the directory C:\qtvs\2009.04\qt and type this “configure platform win32-msvc2008″ without quotes. you can by the way just type configure to see the possible configuration params . This should build makefiles compatible with nmake. This would take some time
- Once change directory to “C:\Program Files\VS2008\VC\bin” and type VCVARS32.bat, this will setup appropriate environment variables to let you run nmake.
- Now navigate to C:\qtvs\2009.04\qt again and type nmake to build the libraries with VC. If all goes well this will take a couple of hours and build all the libraries needed for Qt to wrk with Visual Studio.
In another post I will show you how can you integrate this with Visual Studio 2008, so that you can build your applications using Visual Studio IDE.