在目录

C:\Qt\Qt5.3.2\5.3\Src\qtbase

下面执行

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

 

 

修改文件

E:\Qt\qt5.3.2_static_build\mkspecs\win32-g++\qmake.conf

找到

QMAKE_LFLAGS =

改成

QMAKE_LFLAGS            = -static -static-libgcc

 

posted on 2014-11-07 15:59  飞儿传媒  阅读(297)  评论(0编辑  收藏  举报
飞儿传媒