WARNING: Your current environment's CMAKE_PREFIX_PATH is different from the
cached CMAKE_PREFIX_PATH used the last time this workspace was built.
If you want to use a different CMAKE_PREFIX_PATH you should call `catkin clean`
to remove all references to the previous CMAKE_PREFIX_PATH.
Cached CMAKE_PREFIX_PATH:
/opt/ros/noetic
Current CMAKE_PREFIX_PATH:
/home/chuanmei/ros_basic/devel:/home/chuanmei/catkin_ws/devel:/opt/ros/noetic
首先在 ros_lianxi 目录下分别使用
catkin clean -b
和catkin clean
,
然后可用catkin_make
或者catkin build
编译
如果catkin_make
无法成功编译 可使用catkin build