Makefile:xxx: recipe for target ‘xxx’ failed
参考链接:https://blog.csdn.net/weixin_38294178/article/details/75274728
在使用ROS编译Qt相关程序的时候,出现了下面的错误
解决办法:
将Qt外的头文件放在#ifndef Q_MOC_RUN #endif
里面即可
#ifndef Q_MOC_RUN
//添加相关的头文件
#include
#endif
我的情况是这样的