ROS使用 catkin_make 编译单个功能包和所有功能包
一、catkin_make 编译单个功能包
catkin_make -DCATKIN_WHITELIST_PACKAGES="需要单独编译的单个包名"
二、catkin_make 编译所有功能包
由于执行完 “步骤一中的编译单个功能包”之后,再次执行 catkin_make
会出现只编译上次设置的单个功能包的情况。如果想要再次使用catkin_make
编译所有功能包,需要执行一次:
catkin_make -DCATKIN_WHITELIST_PACKAGES=""
来切换到所有功能包。
然后再次执行
catkin_make
就可以实现 catkin_make
编译所有的功能包。
转载链接:
[1] 雪天枫.ROS使用catkin_make编译单个功能包和所有功能包 [EB/OL]. https://blog.csdn.net/zhaodeming000/article/details/119884395, 2021-08-24/2023-12-20.