Excerpts from the source code to compile Qt process

1. Download the source code

Address: 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 compiler directive

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. Compile need to use the library

Configuration definition has "-opengl dynamic", during the installation process may need to use DirectX SDK, please go to MicroSoft site to download .

4. Other problems encountered (under MingW environment)

sprintf_s Error ==> snprintf 

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

Guess you like

Origin www.cnblogs.com/zbnbu/p/10914935.html