(core): dynamic loading of libraries should look for the filename with the version extension
Summary
On Debian, dynamic libraries can no longer be loaded since Sight 21.0 because we simplified the code to load them. We used to look for the filename with the version extension, i.e. libsight_core.so.21.0
, and now we simply look for libsight_core.so
.
This does not work on Debian because the library symlink without the version extension is only installed in the -dev
package.
Steps to reproduce
- Build the latest Debian package without the patch
fix-dynamic-load.patch
- Install only libsight and SightViewer package
- Run SightViewer, observe the failure and see the log
Dev environment
- OS: Debian
Possible fixes
We must restore the previous code to load the libraries, as proposed in the patch