编译环境win10企业版X64
1.解压原码到
目录(例:d:\Qt5.6.0)
2.建立
安装环境
MinGw-w64 4.9.2 rev1
https://sourceforge.net/projects/mingw-w64/files/?source=navbarPerl version 5.12 or later [
http://www.activestate.com/activeperl/]
Python version 2.7 or later [
http://www.activestate.com/activepython/]
3.添加mingw到
系统环境变量
4.进入源码目录配置编译
configure -prefix <安装位置> -release -opensource -static -static-runtime -no-compile-examples -qt-sql-sqlite -opengl desktop -platform win32-g++
5.要修改d:\Qt5.6.0\qtserialbus\examples\serialbus\modbus\adueditor\mainwindow.cpp文件,否则在编译过程中会提示多重定义,如果编译动态版本不改也行,
下面的内容注释掉
//QT_BEGIN_NAMESPACE
//Q_LOGGING_CATEGORY(QT_MODBUS, "qt.modbus")
//Q_LOGGING_CATEGORY(QT_MODBUS_LOW, "qt.modbus.lowlevel")
//QT_END_NAMESPACE
6.如果没问题mingw32-make;慢长的等待,
7.正在编译中,等待...过程中有其它
问题再来更新
8.D:\qt-everywhere-opensource-src-5.6.0\qt3d\src\plugins\sceneparsers\assimp\assimp.pro
这一行:PLUGIN_CLASS_NAME = AssimpParserPlugin
改为:PLUGIN_CLASS_NAME = AssimpSceneParserPlugin
9.mingw32-make install
10.mingw32-make docs
11.mingw32-make install_docs
虽然有两个小问题但还算顺利编译完成