Error launching rtabmap

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error launching rtabmap

brunoeducsantos
Hi,
I cmake and make successfully without no errors, but when I was launching the app on Ubuntu 16.04 the following error shows up:
rtabmap: error while loading shared libraries: libfreenect2.so.0.2: cannot open shared object file: No such file or directory
Any ideas why?
Reply | Threaded
Open this post in threaded view
|

Re: Error launching rtabmap

matlabbe
Administrator
Make sure directory of libfreenect2.so.0.2 is in your PATH. You can verify with "$ ldd rtabmap" to see which libraries cannot be found with the current PATH.
Reply | Threaded
Open this post in threaded view
|

Re: Error launching rtabmap

brunoeducsantos
This post was updated on .
It is not  in my path . How should I install it so that it shows up in my PATH?
On this resource ,
https://github.com/OpenKinect/libfreenect2/blob/master/README.md#linux 

they suggest to build freekinect2 on HOME.
Is that the mistake?

PS: cmake log-->
Found freenect2: /home/brunoeducsantos/freenect2/include
CMake Warning at cmake_modules/FindKinectSDK2.cmake:71 (message):
  Directory "" not found.
Call Stack (most recent call first):
  cmake_modules/FindKinectSDK2.cmake:119 (check_dir)
  CMakeLists.txt:270 (FIND_PACKAGE)
Reply | Threaded
Open this post in threaded view
|

Re: Error launching rtabmap

matlabbe
Administrator
$ export PATH=$PATH:$HOME/freenect2/bin
Well, the directory containing the library. I think we could also modify instead LD_LIBRARY_PATH. Look at google for more info about these environments variables.