安装好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