Can't find EigenConfig.cmake when building rgbdslam_v2

asked 2016-12-15 08:09:56 -0500

ap gravatar image

Hi

I'm trying to build rgbdslam_v2 in ROS Indigo. When I run catkin_make 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

edit retag flag offensive close merge delete

Comments

Eigen is not a Catkin package, so you can't add it to a find_package(catkin COMPONENTS ..) statement. Make sure cmake_modules is a dependency, and add that to the find_package(catkin COMPONENTS ..) list.

gvdhoorn gravatar image gvdhoorn  ( 2016-12-15 08:35:06 -0500 )edit

Thank you, I did as above but I get this error now.

ap gravatar image ap  ( 2016-12-19 04:07:22 -0500 )edit

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.

Alix gravatar image Alix  ( 2017-11-15 21:41:41 -0500 )edit

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.

ap gravatar image ap  ( 2017-11-16 03:05:44 -0500 )edit