安装好ros后,catkin_make出现如下报错:

CMake Error at CMakeLists.txt:65 (message):
  find_package(catkin) failed.  catkin was neither found in the workspace nor
  in the CMAKE_PREFIX_PATH.  One reason may be that no ROS setup.sh was
  sourced before.


-- Configuring incomplete, errors occurred!
See also "/home/zzr/carto_ws/build/CMakeFiles/CMakeOutput.log".
Invoking "cmake" failed

解决方法:

echo "source /opt/ros/kinect/setup.bash" >> ~/.bashrc
source ~/.bashrc

 

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐