norlab-ulaval / libnabo

A fast K Nearest Neighbor library for low-dimensional spaces
http://norlab-ulaval.github.io/libnabo/
BSD 3-Clause "New" or "Revised" License
431 stars 142 forks source link

fix for Eigen include error #101

Closed ShivamPR21 closed 4 years ago

ShivamPR21 commented 4 years ago

Hello, I was trying to build a package based on ros2 and respective build system I have to use libnabo for this package so I used it by calling #include "nabo/nabo.h" but the build crashed with this error message: -

/home/shivam/libnabo/libnabo_install_dir/include/nabo/nabo.h:35:10: fatal error: Eigen/Core: No such file or directory
 #include "Eigen/Core"
          ^~~~~~~~~~~~

Also, I have been using eigen3 in my projects for a long time so I saw this error to be solved by using the call for eigen3 headers by #include "eigen3/Eigen/Core".

This fix is also supported by this issue in the opencv repository more specifically this comment on the same issue.

ethzasl-jenkins commented 4 years ago

Can one of the admins verify this patch?