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

VS2017 can't find "Eigen/Core" #99

Open drhalftone opened 4 years ago

drhalftone commented 4 years ago

I'm using VS2017 and CMAKE has no problem, but when I try to compile the solution in Visual Studio, I get an error that VS can't find "Eigen/Core"

To give you some background, I've downloaded eigen-3.3.7. Inside eigen-3.3.7 there is a directory Eigen. Inside of that is another directory src along with a lot of files that don't have extensions. Inside the src directory are a bunch of directories including Core. Using the CMake GUI, I tried setting the Eigen_Include_Directory to C:/Users/dllau/Downloads/eigen-3.3.7 as well as C:/Users/dllau/Downloads/eigen-3.3.7/Eigen. Neither work.

Any suggestions?

GordonEldest commented 2 years ago

Eigen/Core is directly under Eigen/ (look at it in eigen-3.3.7/Eigen you should see it with more than a dozens others) It doesn't have the usual ".h" extension but is THE include to look for. Hence "src" is NOT the place to look for it.

if unsuccessful try setting directly the Eigen path in the CMake UI stopping at level "..../eigen-3.3.7" if still unsuccessful add it manually in VisualStudio in "Properties/C++/General/Additional Include Directories"