Win10 VS2015 靜態編譯Qt5.6.2源碼

因爲VS2015須要CRT等拓展組件,所以把內部編寫的工具軟件以靜態發佈,
固須要編譯Qt源碼。Qt5.6.2版本,VS2015,Win10python

1.安裝python,perl,下載jomsql

2.改文件common/msvc-desktop.conf工具

QMAKE_CFLAGS_RELEASE = -O2 -MT
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
QMAKE_CFLAGS_DEBUG = -Zi -MTdspa

3.vs2015命令行靜態編譯命名,cd到源碼目錄
命令:
configure -confirm-license -opensource -platform win32-msvc2015 -debug-and-release -static -qt-sql-sqlite -qt-sql-odbc -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg
-opengl desktop -target xp -qt-freetype -qml-debug -no-angle -nomake tests -nomake examples命令行


4:jom編譯,多核加速 jom.exe -j 6 debug

5:等待1-2個小時,結束。orm

相關文章
相關標籤/搜索