使用 Visual Studio 2015 编译 QT 工程

简单进行一下几步就可以了

1、下载源代码 qt-everywhere-opensource-src-5.6.0-alpha.7z 、解压到 D:ToolKits5.6.0src 目录下
2、网站 https://www.python.org/ 下载 python-3.5.0-embed-amd64.zip ,并解压缩 D:UtilityPython 目录中
3、启动 “VS2015 x64 本机工具命令提示符”,并 SET PATH=D:UtilityPython;%PATH%; 以确保能够访问 Python 程序
4、进入 D:ToolKits5.6.0src 目录执行 configure -prefix D:ToolKits5.6.0msvc2015 -opensource -debug-and-release -mp
5、启动 nmake 进行编译 , 编译完成后使用 nmake install 进行安装

注意:

A、源代码目录、安装目录、Python 目录可以根据实际情况进行调整

B、整个过程需要 16GB 的磁盘空间,如果只想编译QT库,可以使用参数 -make libs 来限定

原文地址:https://www.cnblogs.com/WonKerr/p/VS2015_BUILD_QT.html