CMake Error at CMakeLists.txt:68 (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.
问题描述CMake Error at CMakeLists.txt:68 (message):find_package(catkin) failed. catkin was neither found in the workspace norin the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh wassourced before.解决方法加上:-DCMAKE_PREFIX_PATH=/opt/ros/melodic