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

fatal error: Eigen/Core: No such file or directory on indigo [closed]

asked 2015-04-27 04:23:17 -0500

tzutalin gravatar image

I am going to convert laser data to cloud point by follow the sample, but there is an error, "fatal error: Eigen/Core: No such file or directory on ". Is there someone know why it cannot found Eigen/Core when I try to build the example as bellow. http://wiki.ros.org/laser_pipeline/Tu...

Environments: ubuntu 14.04, gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2, ROS-indigo

There is no use when I add the bellows to CMakeLists.txt.

find_package(catkin REQUIRED COMPONENTS nav_msgs roscpp sensor_msgs tf laser_geometry ) find_package(catkin REQUIRED COMPONENTS cmake_modules ) find_package(Eigen REQUIRED)

Thank you very much!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by tzutalin
close date 2015-04-30 10:30:42.420314

Comments

Hi,how do you solve your problem? I meet the same problem now

Jister gravatar image Jister  ( 2015-12-05 07:44:47 -0500 )edit

1 Answer

Sort by » oldest newest most voted
6

answered 2015-04-27 11:56:19 -0500

Tom Moore gravatar image

updated 2015-04-27 11:56:42 -0500

In your CMakeLists.txt file, find the include_directories macro. Make sure it has ${Eigen_INCLUDE_DIRS} in it, e.g.,

include_directories(include ${catkin_INCLUDE_DIRS} ${Eigen_INCLUDE_DIRS})
edit flag offensive delete link more

Comments

8

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

Nomad gravatar image Nomad  ( 2016-01-13 10:07:57 -0500 )edit

Thank you Nomad! That worked for me.

mwenger gravatar image mwenger  ( 2020-06-16 13:30:41 -0500 )edit

following above stated commands doesn't help me. In addition to, 1) include_directories(include ${catkin_INCLUDE_DIRS} ${Eigen_INCLUDE_DIRS}) 2) find_package(Eigen3 REQUIRED)

adding following line helped me to compile with out any issues

target_link_libraries( your_executable ${catkin_LIBRARIES} Eigen3::Eigen )

rcbot gravatar image rcbot  ( 2023-02-21 23:47:44 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-27 04:23:17 -0500

Seen: 25,334 times

Last updated: Apr 27 '15