Build_QT_MT-创新互联
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,
执行 nmake
下载这个安装,再nmake
http://download.qt.io/development_releases/vsaddin/qt-vs-addin-msvc2015-2.0.0-beta.vsix
7,
执行 nmake install
8,
这有别人已经编好了的
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
名称栏目:Build_QT_MT-创新互联
路径分享:http://azwzsj.com/article/dphcio.html