2017-05-26 135 views
1

我有一個靜態Qt並在macOS 10.12.4上重新編譯qscintilla2_qt5.a(2.10)。當我編譯我的項目,它打印此錯誤:qscintilla2:架構x86_64的未定義符號

Undefined symbols for architecture x86_64: 
    "qRegisterDraggedTypes(QStringList const&)", referenced from: 
     initialiseRectangularPasteboardMime() in libqscintilla2_qt5.a(MacPasteboardMime.o) 
    "QMacPasteboardMime::count(QMimeData*)", referenced from: 
     vtable for RectangularPasteboardMime in libqscintilla2_qt5.a(MacPasteboardMime.o) 
    "QMacPasteboardMime::QMacPasteboardMime(char)", referenced from: 
     initialiseRectangularPasteboardMime() in libqscintilla2_qt5.a(MacPasteboardMime.o) 
    "QMacPasteboardMime::~QMacPasteboardMime()", referenced from: 
     RectangularPasteboardMime::~RectangularPasteboardMime() in libqscintilla2_qt5.a(MacPasteboardMime.o) 
     RectangularPasteboardMime::~RectangularPasteboardMime() in libqscintilla2_qt5.a(MacPasteboardMime.o) 
    "typeinfo for QMacPasteboardMime", referenced from: 
     typeinfo for RectangularPasteboardMime in libqscintilla2_qt5.a(MacPasteboardMime.o) 

回答

1

這是需要添加QT + = macextras在* .pro文件,當Qt的staticaly建。我不知道爲什麼,但是當程序建立在共享的Qt中時,它沒有這個工作,但是這個工作沒有這個macextras

相關問題