文章目录
- 写在前面
- 一、问题描述
- 二、解决方法
- 参考链接
写在前面
自己的测试环境:
Ubuntu20.04
ROS-Noetic
一、问题描述
CMake Error at /***/CMakeLists.txt:4 (find_package):By not providing "Findcatkin_simple.cmake" in CMAKE_MODULE_PATH thisproject has asked CMake to find a package configuration file provided by"catkin_simple", but CMake did not find one.Could not find a package configuration file provided by "catkin_simple"with any of the following names:catkin_simpleConfig.cmakecatkin_simple-config.cmakeAdd the installation prefix of "catkin_simple" to CMAKE_PREFIX_PATH or set"catkin_simple_DIR" to a directory containing one of the above files. If"catkin_simple" provides a separate development package or SDK, be sure ithas been installed.
二、解决方法
出现这个问题的原因主要是缺少 catkin_simple
包,但是使用 sudo apt-get install ros-noetic-catkin-simple
并不能找到 catkin_simple
包,因此需要下载源码,然后再使用。
首先从 https://github.com/catkin/catkin_simple
下载 catkin_simple
包,并把 catkin_simple
包 与自己的 package 放在同一位置。然后再次编译即可。
参考链接
[1] catkin. catkin_simple. https://github.com/catkin/catkin_simple, 2015-06-25/2024-07-28. (commit ID: 0e62848)