Can't find EigenConfig.cmake when building rgbdslam_v2
Hi
I'm trying to build rgbdslamv2 in ROS Indigo. When I run catkinmake I get the error below.
CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by "Eigen" with any of
the following names:
EigenConfig.cmake
eigen-config.cmake
Add the installation prefix of "Eigen" to CMAKE_PREFIX_PATH or set
"Eigen_DIR" to a directory containing one of the above files. If "Eigen"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
rgbdslam_v2/CMakeLists.txt:55 (find_package)
-- Could not find the required component 'Eigen'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "Eigen" with any of
the following names:
EigenConfig.cmake
eigen-config.cmake
Add the installation prefix of "Eigen" to CMAKE_PREFIX_PATH or set
"Eigen_DIR" to a directory containing one of the above files. If "Eigen"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
rgbdslam_v2/CMakeLists.txt:55 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/ap/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ap/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
I tried this and looked at this and this but I still get the same error.
Here are the CMakeLists.txt and package.xml files. I edited the files that came with the rgbdslam_v2 package so they are really long to put in here. I added the changes from here.
Thank you
Asked by ap on 2016-12-15 09:09:56 UTC
Comments
Eigen
is not a Catkin package, so you can't add it to afind_package(catkin COMPONENTS ..)
statement. Make surecmake_modules
is a dependency, and add that to thefind_package(catkin COMPONENTS ..)
list.Asked by gvdhoorn on 2016-12-15 09:35:06 UTC
Thank you, I did as above but I get this error now.
Asked by ap on 2016-12-19 05:07:22 UTC
hi, I meet the same problem as you, do you solve it? I have tried sevral ways from google, but the erro is stiil here, I have to deal with it in a short time, I am looking forward you reply.
Asked by Alix on 2017-11-15 22:41:41 UTC
Hi, sorry, I was unable to solve it. If you are not limited to RGBD-SLAM, there other SLAM methods you can use like ORB-SLAM, LSD-SLAM, PTAM, RTAB-Map. They are open source and the last 2 are easy to setup in ROS.
Asked by ap on 2017-11-16 04:05:44 UTC