source: qt-everywhere-opensource-src-4.7.3.tar.gz
platform: Visual Studio 2008 & Win7
Configure
Decompress Qt source.
edit configurations in mkspecs which match your environment(this case: win32-msvc2008):
1 | QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO /LTCG /NODEFAULTLIB:libc.lib /NODEFAULTLIB:msvcrt.lib/NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib |
Build
open VS Command prompt(or running vcvars32.bat in command)
go to your Qt path, run:
1 | configure -static -debug-and-release -no-webkit -nomake demos -nomake examples -qt-sql-mysql |