Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flann/flann.hpp: No such file or directory #95

Open
liubaoryol opened this issue Oct 25, 2019 · 3 comments
Open

flann/flann.hpp: No such file or directory #95

liubaoryol opened this issue Oct 25, 2019 · 3 comments

Comments

@liubaoryol
Copy link

When trying to install megaman and running python setup.py intsall, I get the following fatal error:

In file included from megaman/geometry/cyflann/index.cxx:620:0:
megaman/geometry/cyflann/cyflann_index.h:8:10: fatal error: flann/flann.hpp: No such file or directory
#include <flann/flann.hpp>
^~~~~~~~~~~~~~~~~
compilation terminated.

How could I fix it?

@JoaoJanini
Copy link

Have you figured it out ?

@evtodorov
Copy link

Had the same, looks like an issue with the location of the header files for the FLANN library. First think to try is setting the FLANN_ROOT environment variable; For me at least this didn't really work as the structure of the FLANN root didn't match the one megaman was expecting, so I simply copied the header files to megaman\geometry\cyflann\include\flann which seemed to solve this

@cookbook-ms
Copy link

cookbook-ms commented Aug 14, 2023

same issue.. i used homebrew to install flann and removed the one i installed by pip, then the source installation worked

For example, my Homebrew installed flann at this location

/opt/homebrew/Cellar/flann/1.9.2_1

I then changed FLANN_ROOT variable in the file megaman/geometry/cyflann/setup.py as

# FLANN_ROOT = os.environ.get('FLANN_ROOT', sys.exec_prefix)
FLANN_ROOT = '/opt/homebrew/Cellar/flann/1.9.2_1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants