Re: [問題] Qt 5.2 static link版本的問題
抱歉原文先刪掉
我在windows做static compile的時候是這樣做的
有成功
以下是我的方法
加 -static 到 QMAKE_LFLAGS後面
(該檔案在 D:\Qt\4.8.1\mkspecs\win32-g++\qmake.conf.)
1) 要重新recompile Qt libraries用"configure -platform win32-g++ -static
-release -no-exceptions -qt-libjpeg -qt-libtiff -qt-libpng"
2) 在 main.cpp加:
#include <QtPlugin>
Q_IMPORT_PLUGIN(qico)
3) 在.pro加:
QTPLUGIN += qico
LIBS += C:/Qt/4.8.1/plugins/imageformats/libqico.a
4) 用 qmake 和 make. 不要用 qmake -project.
希望有幫助到你
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.64.119
推
01/13 02:24, , 1F
01/13 02:24, 1F
→
01/13 22:39, , 2F
01/13 22:39, 2F
→
01/13 22:39, , 3F
01/13 22:39, 3F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):