我試圖使用QScintilla在MacOS X,我在的.pro添加使dyld:庫未加載:libqscintilla2.5.dylib
LIBS += -lqscintilla2
,這個很簡單的代碼:
#include <QApplication>
#include <Qsci/qsciscintilla.h>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QsciScintilla *qscintilla = new QsciScintilla;
qscintilla->show();
return app.exec();
}
(IM使用QtCreator順便說一句)
以下是錯誤:
dyld: Library not loaded: libqscintilla2.5.dylib
Referenced from: /Users/lubethan/cxx-proj/NightPad/NightPad.app/Contents/MacOS/NightPad
Reason: image not found
The program has unexpectedly finished.
+1注意到這個問題在部署時確實會引起你的注意。 – 2013-01-09 12:46:06