Closed suarezvictor closed 1 year ago
This is fixed now in the master branch of slint and will be part of the next release. As a temporary workaround, you could set your GIT_TAG
in CMakeLists.txt
to master
.
Before the build with master:
$ patchelf --print-needed build/my_application
_deps/slint-build/libslint_cpp.so
libstdc++.so.6
libgcc_s.so.1
libc.so.6
$ patchelf --print-rpath build/my_application
/home/slint/src/slint-cpp-template/build/_deps/slint-build
After the build with master:
$ patchelf --print-needed build/my_application
libslint_cpp.so
libstdc++.so.6
libgcc_s.so.1
libc.so.6
$ patchelf --print-rpath build/my_application
/home/slint/src/slint-cpp-template/build/_deps/slint-build
So libslint_cpp.so
is a dependency that has no slash in its name, therefore ld.so uses the usual mechanisms such as LD_LIBRARY_PATH
, DT_RPATH
, etc. - and rpath is now set to where the library is located.
There's an error with the command line to run the example
Workaround
Tested on Debian 11