古月居——ros_21_tutorials__代码更正 1

#Makefile:138: recipe for target ‘all‘ failed make: *** [all] Error 2 Invoking “make -j4 -l4“ failed
##自定义话题后编译出现问题
##终端显示错误代码:Makefile:138: recipe for target ‘all’ failed make: *** [all] Error 2 Invoking “make -j4 -l4” failed

#解决办法:参考此篇文章的第一条评论(并没有安装ac编辑器)https://blog.csdn.net/weixin_43795921/article/details/103171586#commentBox

#修改功能包对应的CMakeLists.txt 文件(去掉include前面的#)
#Specify additional locations of header files
#Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)

#在工作空间下面,运行catkin_make,成功
#别忘了source。。。

猜你喜欢

转载自blog.csdn.net/Cappuccino_0/article/details/109967312
今日推荐