Skip to content
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

rpath is not set for Qt library built in cargo_without_cmake #224

Open
ahayzen-kdab opened this issue Aug 26, 2022 · 1 comment
Open

rpath is not set for Qt library built in cargo_without_cmake #224

ahayzen-kdab opened this issue Aug 26, 2022 · 1 comment
Labels
🪲 bug Something isn't working 🔨 build system Issues related to integrating CXX-Qt into CMake/Cargo

Comments

@ahayzen-kdab
Copy link
Collaborator

When using the cargo_without_cmake example if qmake is in your PATH but the libraries are not in normal LD search locations. Then CMake works by using rpath's to point to the Qt libraries (?).

This is not possible with cargo yet due to rust-lang/cargo#5077

For now the workaround is to add the Qt libraries path to your LD_LIBRARY_PATH environment variable.

@Be-ing
Copy link
Contributor

Be-ing commented Sep 28, 2022

Maybe rustc already supports this? https://doc.rust-lang.org/rustc/codegen-options/index.html#rpath

Be-ing added a commit that referenced this issue Oct 13, 2022
to workaround Cargo not settin rpath
#224
Be-ing added a commit that referenced this issue Oct 14, 2022
to workaround Cargo not settin rpath
#224
@Be-ing Be-ing added the 🔨 build system Issues related to integrating CXX-Qt into CMake/Cargo label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working 🔨 build system Issues related to integrating CXX-Qt into CMake/Cargo
Projects
None yet
Development

No branches or pull requests

2 participants