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

Cannot find ORB-SLAM #7

Open
KyunghyunLee opened this issue Feb 25, 2019 · 5 comments
Open

Cannot find ORB-SLAM #7

KyunghyunLee opened this issue Feb 25, 2019 · 5 comments

Comments

@KyunghyunLee
Copy link

When building the source code,

cmake ..

cannot find orb slam source folder.

When I manually set ORB_SLAM2_LIBRARY and ORB_SLAM2_INCLUDE_DIR , error occurs in

make 

It seems that include folder is not set correctly.

@henryo12
Copy link

henryo12 commented Mar 6, 2019

KyunghyunLee,
Have you found any solutions? I am having the same issue.

@jskinn
Copy link
Owner

jskinn commented Aug 16, 2019

To configure the location of the orbslam source folder, set ORB_SLAM2_DIR specifically.
You can do this on the command line with -DORB_SLAM2_DIR=/your/desired/location.

The code that is actually trying to find ORB_SLAM can be seen here: https://github.com/jskinn/ORB_SLAM2-PythonBindings/blob/master/cmake_modules/FindORB_SLAM2.cmake
Manually setting ORB_SLAM2_LIBRARY may not set the other variables (such as ORB_SLAM2_LIBRARIES), which may cause linker errors while making even if it configures correctly.

@lloydrayner
Copy link

Hi @jskinn

Sorry for the novice question. How do you set the location of ORB SLAM2?

I am getting the same error and have tried to run -DORB_SLAM2_DIR=/your/desired/location. but unsure of whether this should be a standalone command or something adjoined to cmake..

Screenshot from 2019-12-07 12-24-23

Screenshot from 2019-12-07 12-22-32

Thank you

@jskinn
Copy link
Owner

jskinn commented Dec 18, 2019

Ah, the first part is an argument to cmake.
Try cmake -DORB_SLAM2_DIR=/home/lloyd/orbslam2 .. from the build directory

@omarelkady226
Copy link

this did not work for me sadly, it still gives the same error

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

5 participants