2015-10-15 87 views
0

我試圖通過以下https://doc-snapshots.qt.io/qtcreator-extending/first-plugin.html創建Qt Creator的插件,但我失敗了鏈接錯誤打造錯誤,同時建立Qt Creator的插件

ld: library not found for -lCore_debug

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [../qt5/build_creator/bin/Qt Creator.app/Contents/PlugIns/libMyPlugin_debug.dylib] Error 1

21:58:13: The process "/usr/bin/make" exited with code 2.

Error while building/deploying project myplugin (kit: Qt 5.5.0 (clang_64))

When executing step "Make"

請人讓我知道我錯了。

感謝,

回答

0

我解決它通過刪除{我的插件項目} /qtcreatorplugin/qtcreator.pri

_debug關鍵字,我認爲這是一個錯誤,因爲我們不需要* _debug庫調試自己的插件。但我不確定我的解決方案不會發生任何其他問題。

無論如何,我能夠構建並在調試模式下運行。