flann-lib / flann

Fast Library for Approximate Nearest Neighbors
http://people.cs.ubc.ca/~mariusm/flann
Other
2.25k stars 648 forks source link

Is "mex.h" optional? #416

Closed capriciousZihao closed 5 years ago

capriciousZihao commented 5 years ago

Hi

Thank you for sharing.

I have an error "/flann/src/matlab/nearest_neighbors.cpp:34:17: fatal error: mex.h: No such file or directory".

I haven't install matlab on my computer, so the mex.h cannot be found.

Could you tell me if I have to install MATLAB to compile flann? If MATLAB is optional, how can i set the compiling argument to not use it?

Thanks!

capriciousZihao commented 5 years ago

I'd like to explain a little bit about this silly question.

If cmake compiler is used, change the CMakeLists.txt file can exclude the maplab subdirectory, thus mex.h file will not be necessary.

For bazel compiler, find the "cc_library" function and change the "src" parameters will work.