在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