ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

FindEigen.cmake not found on Maverick only

asked 2012-01-07 22:20:32 -0500

Thomas gravatar image

Hello, I am trying to release a stack which depends on Eigen3 as a system dependency. It works for all platforms on Electric/Unstable except Maverick where the CMake Eigen macro is not found:

 [rosbuild] Building package walk_interfaces
 [rosbuild] Cached build flags older than manifests; calling rospack to get flags
 [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
 [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
 [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  CMake Error at CMakeLists.txt:18 (find_package):
    Could not find module FindEigen.cmake or a configuration file for package
    Eigen.

Adjust CMAKE_MODULE_PATH to find FindEigen.cmake or set Eigen_DIR to the
directory containing a CMake configuration file for Eigen.  The file will
have one of the following names:

  EigenConfig.cmake
  eigen-config.cmake

Did anyone else encountered the same problem? Is there any issue with Eigen support on Maverick?

Thanks.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2012-01-30 13:59:11 -0500

Andrew Chambers gravatar image

updated 2012-02-04 02:29:23 -0500

I receive the same error message with Electric under Oneiric if I do not have a FindEigen.cmake file. See the instructions here:

http://www.ros.org/wiki/eigen

However, I notice that recently there has been an odd edit to the wiki page that doesn't make sense. Here is a link to a good version in the history:

http://www.ros.org/wiki/eigen?action=recall&rev=59

edit flag offensive delete link more

Comments

Thanks for your help!
Thomas gravatar image Thomas  ( 2012-02-01 06:34:13 -0500 )edit
3

answered 2012-02-14 04:32:03 -0500

Vincent Rabaud gravatar image

The wiki was indeed wrong (and was assuming Fuerte only), please follow the latest. link text

edit flag offensive delete link more
0

answered 2012-07-10 10:56:23 -0500

ncr7 gravatar image

Hi, I'm getting a similar error as in the initial post. I'm a bit new at Ubuntu so this maybe strait forward and I just have no clue how to do it. But how exactly do you follow the steps on page http://www.ros.org/wiki/eigen?action=recall&rev=59?

I created the "FindEigen.cmake" by creating a new empty document and pasting the code from https://code.ros.org/svn/ros-pkg/stacks/laser_pipeline/trunk/laser_geometry/cmake/FindEigen.cmake.

but where exactly do I put this file for any of the previous commands,

find_package(Eigen REQUIRED)

include_directories(${Eigen_INCLUDE_DIRS})

to work?

it just says ./cmake folder... "You need to include it by default in your package (in a ./cmake folder for example)."

edit flag offensive delete link more

Comments

ipso gravatar image ipso  ( 2012-07-10 11:06:05 -0500 )edit

Ok, I think I have it setup right now. But I noticed I can't even find either, EigenConfig.cmake or eigen-config.cmake on my computer. Is this normal?

ncr7 gravatar image ncr7  ( 2012-07-11 07:58:12 -0500 )edit

You don't need those. That's why I added 'The bit about the CMAKE_MODULE_PATH': you only need to create your FindEigen.cmake and place it in a directory (anywhere, but could be under your project dir), then add it to your CMAKE_MODULE_PATH.

ipso gravatar image ipso  ( 2012-07-11 08:13:25 -0500 )edit

Question Tools

Stats

Asked: 2012-01-07 22:20:32 -0500

Seen: 4,217 times

Last updated: Jul 10 '12