Open fightmoney opened 3 years ago
@fightmoney , there is a discrepancy between the declared (and probably installed) 2.40 and the actual runtime SDK version 2.34.
Apparently you have more than one version of the SDK available, so you need to select the proper one to compile and run.
Use ldd exe_file_name
to list the actual SO files being loaded and their location on HD.
Also note that the uninstall routine you specified applies if the SDK was deployed with sudo apt install ...
. When building from source code then the removal shall be done with sudo make uninstall
.
@ev-mp thanks for you reply, but there are some questions. I find librealsense location in my compute. So you mean I have to delete all of this?
@fightmoney , it is not recommended to modify the content of system libs as it can break Ubuntu. You need to review those files and decide based on the installation you made and the intended usage. In general there is nothing wrong with having multiple versions installed, however you need to be precise about the version you use in building/linking and running phases.
One method to avoid this complexity is to compile the SDK as static lib, but then again - it depends on the installation type and other dependencies that you might have.
@ev-mp I am a new hand in linux, I think your advice maybe difficult for me. If I reinstall the version of 2.34.0 rather than 2.41.0, can it work? How to install it?
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
I installed the SDK a mouth ago, it worked well !
But there is something wrong with it ,so I use
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
to uninstall it. And I find and delete anything about librealsense, just likesudo rm -r librealsense2*
. Then I reinstall the SDK,follow the librealsense/doc/distribution_linux.md, and thensudo apt update && sudo apt upgrade
butrealsense-viewer: error while loading shared libraries: librealsense2-gl.so.2.34: cannot open shared object file :No such file or directory