1. 直接下載已編譯好的binary檔 QT binaries for windows,若要安裝其它較高版本 for vs2008,可到 qt-msvc-installer下載。
2. 解壓縮後,在環境變數User Variables加入 QTDIR=C:\Qt-4.4.3 及Path=C:\Qt-4.4.3\bin;.........
3. 安裝 QT for vs2008 addin
4. 在C:\Qt-4.4.3目錄下製作兩個文字檔「configure.cache」、「.qmake.cache」,這兩個檔是build source code產生的
configure.cache
view plain
CODE:
-platform
win32-msvc2008
-debug-and-release
-platform win32-msvc2008 -debug-and-release
.qmake.cache
view plain
CODE:
QMAKE_QT_VERSION_OVERRIDE = 4
OBJECTS_DIR = tmp\obj\debug_shared
MOC_DIR = tmp\moc\debug_shared
RCC_DIR = tmp\rcc\debug_shared
sql-plugins += sqlite
styles += windows plastique cleanlooks motif cde
imageformat-plugins [...]