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

Find Eigen on OS X

asked 2014-03-26 15:10:07 -0500

updated 2014-03-26 15:43:46 -0500

I'm currently using this method:

project(grizzly_msgs)
find_package(catkin REQUIRED)
find_package(Eigen REQUIRED)

catkin_package(
  INCLUDE_DIRS include ${Eigen_INCLUDE_DIRS} 
  DEPENDS eigen
)

This works great in Ubuntu and on the buildfarm, but gave me a problem when I attempted to compile under OS X / Indigo / homebrew—unable to find the EigenConfig.cmake module. I have Eigen 3.2 installed via homebrew, but it doesn't seem to supply a cmake module. Is there some better way to do this which will work for Ubuntu and other OSes?


Update: Looks like the FindEigen.cmake module is right there in the usual place:

/opt/ros/indigo/share/cmake_modules/cmake/Modules/FindEigen.cmake

Do I need to build_depend on cmake_modules in order for cmake to find these?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2014-03-26 15:45:16 -0500

Ah yes, need to build_depend on it and then find it. Details here:

https://github.com/ros/cmake_modules/...

edit flag offensive delete link more

Comments

Yes, this is in the Indigo migration guide: http://wiki.ros.org/indigo/Migration#catkin

William gravatar image William  ( 2014-03-26 16:01:29 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-26 15:10:07 -0500

Seen: 668 times

Last updated: Mar 26 '14