Skip to content

Instantly share code, notes, and snippets.

@DevonMorris
Last active April 25, 2019 17:24
Show Gist options
  • Save DevonMorris/50259c69128818b2ba452419441fbde0 to your computer and use it in GitHub Desktop.
Save DevonMorris/50259c69128818b2ba452419441fbde0 to your computer and use it in GitHub Desktop.
Compiling with Eigen in Gentoo on ROS

You can install ROS melodic using a portage overlay. However, I was having a hard time compiling against the Eigen libraries. I fixed it by setting two variables

CMAKE_PREFIX_PATH=/usr:/opt/ros/melodic
CATKIN_PREFIX_PATH=/usr:/opt/ros/melodic

Since Eigen and OpenCV aren't installed alongside ROS on gentoo, you have to point to the system versions of these first. So putting /usr first prefers the system versions over the ones installed with ROS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment