Makefile xxx recipe for target xxx failed 错误解决
Makefile:xxx: recipe for target ‘xxx’ failed
参考链接:https://blog.youkuaiyun.com/weixin_38294178/article/details/75274728
在使用ROS编译Qt相关程序的时候,出现了下面的错误
解决办法:
将Qt外的头文件放在#ifndef Q_MOC_RUN #endif
里面即可
#ifndef Q_MOC_RUN
//添加相关的头文件
#include
#endif
我的情况是这样的
...
原创
2020-06-06 17:52:51 ·
30316 阅读 ·
0 评论