Open ahayzen-kdab opened 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 (?).
cargo_without_cmake
qmake
PATH
This is not possible with cargo yet due to https://github.com/rust-lang/cargo/issues/5077
cargo
For now the workaround is to add the Qt libraries path to your LD_LIBRARY_PATH environment variable.
LD_LIBRARY_PATH
Maybe rustc already supports this? https://doc.rust-lang.org/rustc/codegen-options/index.html#rpath
When using the
cargo_without_cmake
example ifqmake
is in yourPATH
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/5077For now the workaround is to add the Qt libraries path to your
LD_LIBRARY_PATH
environment variable.