ORB_SLAM2-PythonBindings icon indicating copy to clipboard operation
ORB_SLAM2-PythonBindings copied to clipboard

Cannot find ORB-SLAM

Open KyunghyunLee opened this issue 6 years ago • 5 comments

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.

KyunghyunLee avatar Feb 25 '19 13:02 KyunghyunLee

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

henryo12 avatar Mar 06 '19 23:03 henryo12

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.

jskinn avatar Aug 16 '19 12:08 jskinn

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

lloydrayner avatar Dec 07 '19 12:12 lloydrayner

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

jskinn avatar Dec 18 '19 09:12 jskinn

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

omarelkady226 avatar Jun 13 '22 15:06 omarelkady226