-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI doesn't work out of the box on Linux due to missing rpath in binaries #796
Comments
Are you talking about running from within the build tree or running the installed software? If the latter, when did Linux remove |
I'm running the |
for Linux. This is so CTS framework can run tests on legacy tools and is a necessary part of fixing #796.
OS: Fedora 38 x86_64
KTX Software version: 4.2.1 and 4.3.0-alpha3
On Linux, compiled KTX Software binaries should have their rpath set to
../lib
, so that they detect libraries out of the box:You can work around this issue by using
LD_LIBRARY_PATH=../lib ./ktx
from thebin
folder orLD_LIBRARY_PATH=lib bin/ktx
from the root folder, but this isn't obvious.If setting rpath isn't possible, a launcher script that sets
LD_LIBRARY_PATH
automatically (relative to the directory the binary is in) can be provided in the official distribution, but rpath is the preferred approach.The text was updated successfully, but these errors were encountered: