KDAB / cxx-qt

Safe interop between Rust and Qt
https://kdab.github.io/cxx-qt/book/
1.04k stars 74 forks source link

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

Open ahayzen-kdab opened 2 years ago

ahayzen-kdab commented 2 years ago

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 https://github.com/rust-lang/cargo/issues/5077

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

Be-ing commented 2 years ago

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