1.Manually-specified variables were not used by the projiect.
报错:CMake warning:Manually-specified variables were not used by the projiect.
报错"Manually-specified variables were not used by the projiect.”
重新打开文件即可,从工作空间下的CMakeLists.txt打开,这是由于不正常关闭导致的
2.find_package(catkin) failed
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.
编译工作空间
cd catkin_ws
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.
这是由于配置文件受到改变,删除工作空间中的devel文件和build文件后重新编译即可。
cd catkin_ws
catkin_make