构建Qt Creator插件时出错

时间:2015-10-15 13:18:00

标签: qt qtplugin

我尝试按照https://doc-snapshots.qt.io/qtcreator-extending/first-plugin.html创建Qt Creator插件,但我无法使用链接错误构建

  

ld:找不到-lCore_debug的库

     

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

     

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

     

21:58:13:进程“/ usr / bin / make”退出代码2。

     

构建/部署项目myplugin时出错(工具包:Qt 5.5.0(clang_64))

     

执行步骤“Make”

请有人告诉我我的错误。

谢谢,

1 个答案:

答案 0 :(得分:0)

我通过删除{my plugin project} /qtcreatorplugin/qtcreator.pri中的_debug关键字解决了这个问题

我认为这是一个错误,因为我们不需要* _debug库来调试自己的插件。但我不确定我的解决方案是否会发生任何其他问题。

无论如何,我能够在调试模式下构建和运行。

相关问题