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

libeigen3-dev on hydro ?

asked 2014-05-22 10:40:00 -0600

hvn gravatar image


I'm trying to build a package that uses libeigen3, but there is no stacks. "roscd eigen" shows that it isn't there. Searching reveals that stacks for hydro isn't there while at the same time it seems it can be installed manually. So how should I proceed ?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-22 10:57:37 -0600

ahendrix gravatar image

Eigen is a system dependency, not a ROS package. Have you tried installing using apt?

sudo apt-get install libeigen3-dev

You should also be able to install the dependencies for packages using rosdep, assuming your packages are in the src folder (just change the src argument if your packages are elsewhere).

rosdep install --from-paths src --ignore-src
edit flag offensive delete link more


Yes, I did. And it got me confused somehow. Indeed I installed it that way, but while on Electric it works, on Hydro eigen can't be resolved. The paths are fine. I got to this because of cv_bridge: on Electric my code compiles while on Hydro it doesn't. Testing this, I also got this eigen error.

hvn gravatar image hvn  ( 2014-05-22 11:28:19 -0600 )edit

I think eigen moved from a ROS package to an external dependency between Electric and Hydro. It'll be easier to troubleshoot if you include the exact build errors you're seeing in your question.

ahendrix gravatar image ahendrix  ( 2014-05-22 16:26:15 -0600 )edit

The error on eigen is: /usr/include/eigen3/unsupported/Eigen/Polynomials:4:22: fatal error: Eigen/Core: No such file or directory while it clearly is there: $ls /usr/include/eigen3/Eigen/Core /usr/include/eigen3/Eigen/Core

hvn gravatar image hvn  ( 2014-05-22 22:17:41 -0600 )edit

It sounds like it's expecting /usr/include/eigen3 to be in your include path. Are you sure you're calling find_package for eigen in your CMakeLists correctly?

ahendrix gravatar image ahendrix  ( 2014-05-23 09:10:22 -0600 )edit

I compared the CMakeLists of the Electric and Hydro versions and they're identical.

hvn gravatar image hvn  ( 2014-05-23 23:18:18 -0600 )edit

Can you add your CMakeLists and the include lines from one file that is failing to your question?

ahendrix gravatar image ahendrix  ( 2014-05-24 13:27:20 -0600 )edit

My include lines mess up after posting; are there coding tags I can/should use ?

hvn gravatar image hvn  ( 2014-05-24 20:51:39 -0600 )edit

Yes; you can either select your code and use the code button in the editor GUI, or simply indent each line by four spaces.

ahendrix gravatar image ahendrix  ( 2014-05-25 07:42:32 -0600 )edit

Question Tools

1 follower


Asked: 2014-05-22 10:40:00 -0600

Seen: 341 times

Last updated: May 22 '14