qt5.32静态编译(mingw4.82)

在目录

C:QtQt5.3.25.3Srcqtbase

下面执行

configure -confirm-license -opensource -prefix "E:Qtqt5.3.2_static_build" -debug-and-release -static -opengl desktop -nomake examples -nomake tests
mingw32-make
mingw32-make install

修改文件

E:Qtqt5.3.2_static_buildmkspecswin32-g++qmake.conf

找到

QMAKE_LFLAGS =

改成

QMAKE_LFLAGS            = -static -static-libgcc
飞儿传媒www.firadio.com
原文地址:https://www.cnblogs.com/firadio/p/4081563.html