//build
1.下载Qt Creator源码
2. 2.下载Qt库源码,下载地址http://download.qt.io/archive/qt/5.6/5.6.1/single/,下载 qt-everywhere-opensource-src-5.6.1.zip。
3.建立空目录build用于保存编译结果,这里为Qt5.6.1\Tools\build,即与自带的Qt Creator放在一个目录下,没什么特殊意义,放哪都行。将Qt Creator源码也放在Tools目录下,方便编译。
编译:
1.在开始菜单Qt5.6.1中打开Qt 5.6 for Desktop (MinGW 4.9.2 32 bit),使用cd命令行更改到build目录下。
2.执行qmake命令。qmake ../qt-creator-opensource-src-4.0.1/qtcreator.pro -r -spec win32-g++ "CONFIG+=release" "QT_PRIVATE_HEADERS=F:\Qt\Qt5.6.1\5.6\mingw49_32\include",这时build目录下会生成MakeFile文件。
qmake ../qt-creator-opensource-src-4.3.1/qtcreator.pro -r -spec win32-g++ "CONFIG+=debug" "QT_PRIVATE_HEADERS=F:\Qt\Qt5.6.1\5.6\mingw49_32\include"
mingw32-make debug
3.开始编译。执行命令mingw32-make release。编译过程比较长。编译完成的可执行文件在build/bin中,像其他MinGW编译的release执行档一样,需要相应的dll支持才可运行。
转载于:https://www.cnblogs.com/blog-vincent-0x1F7/p/9415642.html
//学习
https://www.cnblogs.com/blog-vincent-0x1F7/p/9415642.html
>qmake.exe qtcreator.pro -r -spec win32-g++ "CONFIG+=release" "QT_PRIVATE_HEADERS=C:/Qt/4.8.5/include"
>mingw32-make release
[^_^][//]![Image text](${..\img\01.png})
////
qmake ../qt-creator-opensource-src-4.3.1/qtcreator.pro -r win32-g++ "CONFIG+=release" "QT_PRIVATE_HEADERS=C:/Qt/Qt5.9.1/5.9.1/mingw53_32/include"
/////
& mingw32-make -s
////goto here
qmake ../qt-creator-opensource-src-4.3.1/qtcreator.pro -spec win32-g++ "CONFIG+=debug" "QT_PRIVATE_HEADERS=C:/Qt/Qt5.9.1/5.9.1/mingw53_32/include"
/////
mingw32-make -debug
//maintenance tool
https://mirrors.tuna.tsinghua.edu.cn/qt/online/qtsdkrepository/windows_x86/root/qt/
https://blog.csdn.net/u011607490/article/details/81459072
https://www.geek-share.com/detail/2744554294.html
Qhash/Qmap 参考
https://blog.csdn.net/tqs_1220/article/details/82503275?utm_medium=distribute.pc_relevant.none-task-blog-title-4&spm=1001.2101.3001.4242
https://blog.csdn.net/u014597198/article/details/53286438?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param
标签:qt,5.6,Creator,blog,编译,release,Qt From: https://www.cnblogs.com/7star/p/17086690.html