I'd like to build Qt 5.2.1 for Visual Studio on my Windows 7 64Bit machine. I know, there are various similar questions, but none which I have found really give me the feeling that I definately know how to proceed.
First, I tried to follow the instructions in How to build Qt for Visual Studio 2010, but I noticed that things for Qt 5 have changed a bit. E.g., there is no Qt/bin directory that you could add to the path variable, since now there are many different bin directories. I then found http://qt-project.org/doc/qt-5/windows-building.html but here I am not sure if they use Visual Studio 10 and I do not understand the instructions to get the environment variables right. This link http://qt-project.org/wiki/Building-Qt-5-from-Git is also interesting, as it gives various hints, but it uses git and I would like to build from the opensource zip file.
So, what are the steps I need to take precisely? I will write my version here, and you can extend/correct it.
- Install Perl and Python and add them to system path
- Download http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip
- Unzip the file from 1. to C:\Qt5.2.1
- Install the standalone Windows SDK (http://msdn.microsoft.com/en-US/windows/apps/br229516)
- Set up the Qt Environment variables. How?!! Please clarify Step 3 of http://qt-project.org/doc/qt-5/windows-building.html
- Open the Visual Studio Command Prompt 2010. Run there
configure -MP -opensource -confirm-license -debug-and-release -no-webkit
- Type "nmake" in the Visual Studio Command Prompt 2010.
- http://qt-project.org/doc/qt-5/windows-building.html mentions "If an installation prefix was given, type jom install, nmake install or mingw32-make install" - what is an installation prefix??
Then, I believe Qt should be installed in C:\Qt5.2.1; How can I check if the installation was successfull? Is it possible, to have Qt in my list of installed applications using this approach?
I'd be happy if you could correct/comment my approach, since some steps are not entirely clear to me and I have mixed different tutorials.
Thanks!