Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

ROS中出现这种情况,看下是不是功能包中的路径没有设置好,打开该功能包的CMakeLists.txt,编辑

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
  #include
  ${catkin_INCLUDE_DIRS}

)

改成下面的(去掉include前的注释#)

 

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
   include
  ${catkin_INCLUDE_DIRS}

)

再进去cd ~/catkin_ws/

然后catkin_make,进行编译,即可成功。这可能是一种方法。


 

©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值