一、下载Qt 4.8.2-opensource.
二、解压到C:Qt4.8.2_static
修改C:Qt4.8.2_staticprojects.pro文件,删除demos,doc,examples
修改C:Qt4.8.2_static ool ool.pro文件,删除assistant
修改C:Qt4.8.2_staticmkspecswin32-msvc2008qmake.conf
将QMAKE_CFLAGS=-nologo -Zm200 -Zc:wchar_t- 改为 QMAKE_CFLAGS=-nologo -Zm200 -Zc:wchar_t
将QMAKE_CFLAGS_RELEASE = -O2 -MD 改为 QMAKE_CFLAGS_RELEASE = -O2 -MT
将QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi 改为 QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
将QMAKE_CFLAGS_DEBUG = -Zi -MDd 改为 QMAKE_CFLAGS_DEBUG = -Zi –MTd
修改C:Qt4.8.2_64src3rdpartywebkitSourceWebCoreplatformDefaultLocalizationStrategy.cpp
定位到325行和327行,将
"Look Up “%@”" 修改为
"Look Up ""%@"""
"Look Up “<selection>”" 修改为
"Look Up ""<selection>"""
三、在开始菜单打开Visual Studio 2008 Command Prompt
->c:
cd Qt4.8.2_static
set QTDIR=C:Qt4.8.2_static
configure -debug-and-release -platform win32-msvc2008 -static -fast -opensource -prefix C:Qt4.8.2_static
nmake
nmake install