解决“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
©️2020 CSDN 皮肤主题: 护眼 设计师: 闪电赇 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值