在這一篇所針對的是 Qt 4.7.0, 在 Qt 4.7.1 發佈後, 發現多了
-mp 的選項, 顧名思義, 加上之後它就會針對 msvc 開啟 /MP 參數. 在此統整一下我用的參數:
@echo off
SET PREFIX=Z:\Qt\4.7.1
configure ^
-opensource ^
-debug-and-release ^
-mp ^
-ltcg ^
-fast ^
-no-qt3support ^
-no-dsp ^
-no-vcproj ^
-prefix %PREFIX% ^
-nomake examples ^
-nomake demos ^
-nomake translations
MKDIR %PREFIX%\mkspecs
XCOPY /E /K mkspecs\* %PREFIX%\mkspecs
nmake
nmake install
nmake clean
沒有留言:
張貼留言