jskinn / ORB_SLAM2-PythonBindings

A python wrapper for ORB_SLAM2
BSD 2-Clause "Simplified" License
162 stars 40 forks source link

Cannot find ORB-SLAM #7

Open KyunghyunLee opened 5 years ago

KyunghyunLee commented 5 years ago

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 commented 5 years ago

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

jskinn commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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

omarelkady226 commented 2 years ago

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