我正在尝试在 MacOS X 上使用 QScintilla,我补充说
LIBS += -lqscintilla2
在 .pro 中,使用这个非常简单的代码:
#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();
}
(顺便说一句,我正在使用 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.