1、Download QT SDK
Download QT SDK for Windows from the site http://www.qtsoftware.com/downloads
2、Install QT SDK
Install QT SDK for Windows completely(No matter which version)
3、Edit System Environment Variables
add 2 paths to the Environment Variables: take "C:/QT/2010.04/qt/bin" and "C:/QT/2010.04/bin" for example.
the values of the 2 paths depends on where you install the QT
4、Configure QT for your machine
Run the Visual Studio Command Prompt:Start->Program Files->Visual Studio->Visual Studio tools->Visual Studio Command Prompt
Go to the path of your installed QT,eg "C:/QT/2010.04/qt"
At the Prompt,type the command configure ,eg C:/QT/2010.04/qt>configure
If you want to build the QT library using a specific compiler ,you must specify a qmake specification.eg C:/QT/2010.04/qt>configure -platform win32-msvc
then press Enter key to configure it
After Configured,run nmake at the command prompt,eg C:/QT/2010.04/qt>nmake
this will takes lots of time.It will build all the demos,examples and libraries.
Done!
ps:
if occurs the Error:"fatal error U1077" and so on
You should add "VC-Path/bin"、"VC-Path/include" and "VC-Path/lib" to System Environment Variables
VC-Path mens where VC installed.
otherwise:
delete these temporary files before Execute "nmake " command
"
/src/3rdparty/webkit/WebCore/tmp/moc/debug_shared/ mocinclude.tmp
/src/3rdparty/webkit/WebCore/tmp/moc/release_shared/mocinclude.tmp
/src/script/tmp/moc/debug_shared/mocinclude.tmp
/src/script/tmp/moc/release_shared/mocinclude.tmp
"