解决“CMake Error: CMAKE_MODULE_PATH does not contain Findcatkin_simple.cmake”问题

在github上下载了catkin_simple工具,安装之后,在编译时报错:

CMake Error at CMakeLists.txt:4 (find_package):
  By not providing "Findcatkin_simple.cmake" in CMAKE_MODULE_PATH this project 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.cmake
    catkin_simple-config.cmake


  Add 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 it has been
  installed.

cmake时找不到,是没有安装到指定路径的原因,按照如下的指令安装到所需的指定路径即可。

$ sudo su
$ source /opt/ros/kinetic/setup.bash
$ catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic install
发布了87 篇原创文章 · 获赞 149 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/weixin_43795921/article/details/103162250