问题:
Base path: /home/xy/catkin_ws
Source space: /home/xy/catkin_ws/src
Build space: /home/xy/catkin_ws/build
Devel space: /home/xy/catkin_ws/devel
Install space: /home/xy/catkin_ws/install
####
#### Running command: "cmake /home/xy/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/xy/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/xy/catkin_ws/install -G Unix Makefiles" in "/home/xy/catkin_ws/build"
####
####
#### Running command: "make -j12 -l12" in "/home/xuyang/catkin_ws/build"
####
解决:
编译指定功能包的命令为
catkin_make -DCATKIN_WHITELIST_PACKAGES="需要单独编译的包名"
但是如再次使用catkin_make编译所有功能包时会出现仅仅只编译上次设置的单独功能包,如果想要再次使用catkin_make编译所有功能包,需要执行:
catkin_make -DCATKIN_WHITELIST_PACKAGES=""
然后就可以使用 catkin_make 编译了
如果还不行参照这两篇文章:
ubuntu16.04下ros中catkin_make命令失效 - 墨池有雨 - 博客园 (cnblogs.com)ROS中catkin_make失败和roslaunch失败的解决方法_在一个新的工作空间中roslaunch失败-CSDN博客
参考
ROS使用catkin_make编译指定功能包_catkin make whitelist-CSDN博客
ubuntu16.04下ros中catkin_make命令失效 - 墨池有雨 - 博客园 (cnblogs.com)
ROS中catkin_make失败和roslaunch失败的解决方法_在一个新的工作空间中roslaunch失败-CSDN博客