mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.56k stars 1.61k forks source link

automatic build rpath not set when linking against Qt libraries (and others?) #3765

Open wberrier opened 6 years ago

wberrier commented 6 years ago

This seems to be the case for at least Qt and boost (maybe others?)

I can manually set rpath in the linker args, but currently get a warning.

wberrier commented 6 years ago

This is on linux with meson master, btw...

nirbheek commented 6 years ago

We have the infrastructure in place for this now, and since it will be set only in the builddir, we should try to make it as easy as possible for users to run their built binaries. This is the same as #314, just extended to a dependency.

ericLemanissier commented 5 years ago

I think I'm facing the same problem:

dyld: Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore

  Referenced from: /Users/travis/build/bincrafters/conan-qt/test_package/build/048d7e866745e18def537ac6bfd40b46b6de3dd2/meson_folder/test_package

  Reason: image not found

Is there a workaround ?