Install Qt-win-opensource-4.8.2-vs2010.exe (from http://download.qt.io/archive/qt/4.8/4.8.2/
Download), this is a 32-bit, there is a compiled library, can be directly used to develop, there are SRC source files, now to use the source text
64-bit libraries used under the VS2010 compilation
Make sure your build machine is 64-bit
From the Start menu->microsoft Visual Studio 2010->visual Studio tools->visual Studio x64 Win64
Command Prompt (2010)
Enter the command line window for VS2010
C:\qt\4.8.2>configure-prefix C:\qt-debug-and-release-platform Win32-msvc2010-opengl
Desktop-qt-sql-sqlite-qt-zlib-qt-style-windowsvista-qt-libpng-qt-libjpeg-nomake
Demos-nomake Examples-nomake TESTS-MP
There will be an option to select the commercial or open source version, select the open source letter O
Next you will be asked if you accept the license or not, enter the letter Y
When you are finished, you will see
Qt is now configured for building. Just run NMAKE.
To reconfigure, run NMAKE Confclean and configure.
C:\qt\4.8.2>nmake
Encountered an error
....
Platform\defaultlocalizationstrategy.cpp (327): Error C2001: A line break in a constant
platform\ DefaultLocalizationStrategy.cpp (327): Fatal error C1057:
Unexpected end of file
encountered in macro extension .....
Nmake:fatal error U1077: "" C:\Program Files (x86) \microsoft Visual Studio 10.
0\vc\bin\amd64\cl. EXE "": Return Code "0x2"
Stop.
Nmake:fatal error U1077: "" C:\Program Files (x86) \microsoft Visual Studio 10.
0\vc\bin\amd64\nmake.exe "": Return Code "0x2"
Stop.
Nmake:fatal error U1077: "CD": Return Code "0x2"
Stop.
Nmake:fatal error U1077: "CD": Return Code "0x2"
Stop.
Solution: is double quotation mark out of the question, one is the Chinese and English question, the other is "the number of
Open C:\Qt\4.8.2\src\3rdparty\webkit\Source\WebCore\platform
\ DefaultLocalizationStrategy.cpp
Navigate to Rows 325 and 327, and modify
"Look Up"%@ "" to
Look Up "%@" ""
"Look Up" < Selection> "" Modified to
Look up "<selection>" "
after the Save is modified, re-executes the NMAKE command
It takes about 2-3 hours to compile and finish. I'm a little surprised that when I configure, the output path that is written is
-prefix C:\QT
I found the generated DLL to be placed in the C:\Qt\build\x64\bin directory, where \build\x64\bin is automatically created, not
may have been the result of my previous attempts to configure. In any case, the QT DLL is generated.
Next execute the Install command, which is responsible for putting the include and Lib and other things under the C:\Qt\build\x64
C:\qt\4.8.2>nmake Install
This is going to take a long time, about half an hour.
VS2010 compiling the Qt4.8.2 version 64 library