ros-perception / laser_geometry

Provides the LaserProjection class for turning laser scan data into point clouds.
BSD 3-Clause "New" or "Revised" License
156 stars 113 forks source link

Please fix laser_geometry.h error (Eigen/Core) no such file or directory #10

Closed TheDash closed 10 years ago

TheDash commented 10 years ago

Regarding this ticket. http://answers.ros.org/question/44140/fatal-error-eigencore-no-such-file-or-directory/

vrabaud commented 10 years ago

This is a Fuerte error which is not supported anymore. It is fixed in indigo: https://github.com/ros-perception/laser_geometry/blob/indigo-devel/CMakeLists.txt#L22 Which error do you have on which distribution ?

TheDash commented 10 years ago

I was having the error in hydro. On Sep 8, 2014 3:49 AM, "Vincent Rabaud" notifications@github.com wrote:

This is a Fuerte error which is not supported anymore. It is fixed in indigo:

https://github.com/ros-perception/laser_geometry/blob/indigo-devel/CMakeLists.txt#L22 Which error do you have on which distribution ?

— Reply to this email directly or view it on GitHub https://github.com/ros-perception/laser_geometry/issues/10#issuecomment-54786071 .

vrabaud commented 10 years ago

Please send your CMake code sample, it really seems that this error has been fixed for a while.

vrabaud commented 10 years ago

any news on that ? Thx

TheDash commented 10 years ago

Hmm, seems like it has gone away.. not exactly sure what caused it. I'll open another ticket if it comes up again. but we can close this one

vrabaud commented 10 years ago

thx

abougouffa commented 3 years ago

The same bug on Ubuntu 18.04 + Melodic

_______________________________________________________________________________________________________________________________________
Errors     << slam:make /home/ros/melodic_ws/logs/slam/build.make.005.log                                                
In file included from /home/ros/melodic_ws/src/slam/src/slam.cpp:11:0:
/opt/ros/melodic/include/laser_geometry/laser_geometry.h:47:10: fatal error: Eigen/Core: No such file or directory
 #include <Eigen/Core>
          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/slam.dir/src/slam.cpp.o] Error 1
make[1]: *** [CMakeFiles/slam.dir/all] Error 2
make: *** [all] Error 2
cd /home/ros/melodic_ws/build/slam; catkin build --get-env slam | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
.......................................................................................................................................

Fixed by changing:

#include <Eigen/Core>

To

#include <eigen3/Eigen/Core>