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

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

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:


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


edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

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:

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:

edit flag offensive delete link more


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

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

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

I created the "FindEigen.cmake" by creating a new empty document and pasting the code from

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

find_package(Eigen REQUIRED)


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


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


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

Seen: 4,222 times

Last updated: Jul 10 '12