ROS错误:找不到eigen

版权声明:本文为博主原创文章,未经博主允许不得转载 https://blog.csdn.net/qit1314/article/details/83042903
问题:

CMake Error at CMakeLists.txt:4 (find_package):
By not providing “Findcatkin.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “catkin”, but
CMake did not find one.

Could not find a package configuration file provided by “catkin” with any
of the following names:

catkinConfig.cmake
catkin-config.cmake

Add the installation prefix of “catkin” to CMAKE_PREFIX_PATH or set
“catkin_DIR” to a directory containing one of the above files. If “catkin”
provides a separate development package or SDK, be sure it has been
installed.

解决办法

在CMakeLists.txt中加入
find_package( PkgConfig )
pkg_check_modules( EIGEN3 REQUIRED eigen3 )

猜你喜欢

转载自blog.csdn.net/qit1314/article/details/83042903