1,下載源碼
http://download.qt.io/archive/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.zip.mirrorlist
2,或安裝包
http://download.qt.io/archive/qt/5.7/5.7.1/qt-opensource-windows-x86-msvc2015-5.7.1.exe
安裝包安裝的時候勾選上sources
3,
打開安裝包或源碼的qtbasemkspecscommonmsvc-desktop.conf 文件,
將其-MD改為-MT, -MDd改為-MTd
4,
安裝了python,perl和ruby。
5,
打開Visual Studio Tools,命令行工具進入源碼目錄。即上面qtbase所在父目錄位置。
configure -confirm-license -opensource -debug-and-release -static -force-debug-info -prefix "E:msvc2015_static" -qt-sql-sqlite -qt-sql-odbc -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-qml-debug -no-angle -nomake tests -nomake examples
6,
執(zhí)行 nmake
下載這個安裝,再nmake
http://download.qt.io/development_releases/vsaddin/qt-vs-addin-msvc2015-2.0.0-beta.vsix
7,
執(zhí)行 nmake install
8,
這有別人已經(jīng)編好了的
https://www.npcglib.org/~stathis/blog/precompiled-qt4-qt5/
9,add link:
$(QTDIR)pluginsplatforms
$(QTDIR)lib
qtmain.lib
Qt5Core.lib
Qt5Gui.lib
Qt5OpenGL.lib
opengl32.lib
Qt5Widgets.lib
Qt5PlatformSupport.lib
qminimal.lib
qoffscreen.lib
qwindows.lib
qtfreetype.lib
qtharfbuzzng.lib
qtpcre.lib
imm32.lib
winmm.lib
ws2_32.lib
qtpng.lib
glu32.lib
10,add include
$(QTDIR)includeQtPlatformSupport
網(wǎng)站欄目:Build_QT_MT-創(chuàng)新互聯(lián)
分享URL:http://jinyejixie.com/article0/dphcio.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供面包屑導航、網(wǎng)站改版、網(wǎng)站設計、做網(wǎng)站、域名注冊、網(wǎng)站導航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容