参考文章qt http://blog.csdn.net/aslucky/article/details/6299319
编译步骤如下
C:\D_Drive\Qt4.7.3\mkspecs\win32-msvc2010\qmake.conf
QMAKE_CFLAGS_RELEASE = -O2 -MD
QMAKE_CFLAGS_RELEASE = -O2 -MT
QMAKE_CFLAGS_DEBUG = -Zi -MDd
QMAKE_CFLAGS_DEBUG = -Zi -MTd
QMAKE_LFLAGS = /NOLOGO
QMAKE_LFLAGS = /NOLOGO /NODEFAULTLIB:library
nmake confclean
启动VS2010的%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86,进入Qt目录并执行
Configure -debug-and-release -opensource -static -no-qt3support -qt-sql-odbc -qt-sql-sqlite -no-webkit -mp -platform win32-msvc2010
nmake
如果发现错误 api/qscriptextensionplugin.h(43): Error: Undefined interface
删除文件 del qt/src/script/tmp/moc/debug_shared/mocinclude.tmp