从源代码编译Qt过程摘录

1. 下载源代码

地址:https://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/5.6/5.6.3/single/qt-everywhere-opensource-src-5.6.3.tar.xz

2. 配置编译指令

configure -confirm-license -opensource -platform win32-g++ -release -shared -skip qtconnectivity -opengl dynamic -prefix "./build" -system-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -nomake tests -no-compile-examples -nomake examples

3. 编译需要用到的库

配置定义中有 " -opengl dynamic ",在安装过程中可能需要用到DirectX SDK,请到MicroSoft网站下载

4. 其它遇到的问题(MingW环境下)

sprintf_s Error ==> snprintf 

floor(...) Not declared ==> #include <math.h>

猜你喜欢

转载自www.cnblogs.com/zbnbu/p/10914935.html