Open mertmzk opened 7 years ago
Thanks @mertmzk I think the problem is that I've hard-coded the location of the boost directory in CMakeLists.txt on line 38. Try updating CMakeLists to point to your boost install directory, and the correct python version (you can see I'm using python 3.4). You may also want to change the boost version being looked for on line 43.
The first error seems like orbslam2.so can't find the boost python shared library, check the paths with
ldd orbslam2.so
I've never seen the second error, a quick google search suggests that the name of the boost module defined at the top of ORBSlamPython.cpp doesn't match the name of the shared object you're building. see https://stackoverflow.com/questions/8400244/boost-python-import-error-module-does-not-define-init-function
Oh, you might also have more success with the 'base-version' branch, which doesn't depend on any of my changes to ORB_SLAM2, so you can use the up-to-date version from their repository. see https://github.com/jskinn/ORB_SLAM2-PythonBindings/tree/base-version
Hi @jskinn,
Thanks for your response. I have fixed the problems it is working now. For the second problem module name needs to be same as shared library name. So I changed module name in ORBSlamPython.cpp (line 7) as ORBSlamPython (it was orbslam2 before).
As far as I can see your ORBSLAM does not support save & load map yet which I will be integrating next.
Thanks.
Hi @jskinn,
Thanks for your response. I have fixed the problems it is working now. For the second problem module name needs to be same as shared library name. So I changed module name in ORBSlamPython.cpp (line 7) as ORBSlamPython (it was orbslam2 before).
As far as I can see your ORBSLAM does not support save & load map yet which I will be integrating next.
Thanks.
Hi @mertmzk, have you been able to integrate the save and load map functions?
Hi @jskinn Firstly, thanks for publishing your work!
I have compiled it successfully but when I import orbslam2 the python I get errors. My python version is 2.7. I tried to compile it with boost 1.62 and and got this error when try to import orbslam
I changed the boost version to 1.45 and got this error
That would be great if you suggest me a solution for that.
thanks