Ask Your Question
0

build_depend for eigen3, kinetic in package.xml

asked 2016-11-13 00:37:20 -0500

Markus Bader gravatar image

Hello

I am using eigen3 in my node. So I added the following statement to my CMakeLists.txt

find_package(Eigen3 REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})

but what should I add to the package.xml, eigen3 or eigen?

<build_depend>eigen</build_depend>

or

<build_depend>eigen3</build_depend>

Greetings

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-11-13 03:56:13 -0500

gvdhoorn gravatar image

Looking at ros/rosdistro/rosdep/base.yaml, the eigen key maps to Eigen 3 (here), eigen2 maps to Eigen 2 (here) and the eigen3 mapping (here) is a bit ambiguous and incomplete (perhaps @tfoote can explain that one).

If you don't need v2, you should just depend on eigen, otherwise on eigen2.

Note btw that (at least in Indigo and Jade) in addition to build_depending on eigen, you should also add a build_depend on cmake_modules to be able to use find_package(Eigen3 ..), as that package provides the find script for it.

edit flag offensive delete link more

Comments

Thanks that way the answer I was looking for.

Markus Bader gravatar imageMarkus Bader ( 2016-11-13 23:33:38 -0500 )edit

The eigen3 target looks to be a sweeping gentoo fixup followed by a sweeping fedora fedora fixup. gentoofedora

tfoote gravatar imagetfoote ( 2016-11-14 16:40:38 -0500 )edit
1

They should be merged into the eigen target and eigen3 removed since that's the one used for all the other platforms. https://github.com/ros/rosdistro/pull...

tfoote gravatar imagetfoote ( 2016-11-14 16:41:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-11-13 00:37:20 -0500

Seen: 2,009 times

Last updated: Nov 13 '16