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

Problem with rpath in qt_gui_cpp_sip #112

Open
mpflanzer opened this issue Mar 20, 2018 · 1 comment
Open

Problem with rpath in qt_gui_cpp_sip #112

mpflanzer opened this issue Mar 20, 2018 · 1 comment
Labels

Comments

@mpflanzer
Copy link

Forcing the rpath to the devel space is causing problems when the packages are used from the install space. Especially on macOS this is a problem since DYLD_LIBRARY_PATH is no longer searched since SIP is enabled. Hence, having a correct rpath is essential.

set(qt_gui_cpp_sip_LIBRARY_DIRS ${qt_gui_cpp_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/lib)
set(qt_gui_cpp_sip_LDFLAGS_OTHER ${qt_gui_cpp_LDFLAGS_OTHER} -Wl,-rpath,\\"${CATKIN_DEVEL_PREFIX}/lib\\")

Instead of hard coding the rpath value the cmake RPATH options should be respected: https://cmake.org/Wiki/CMake_RPATH_handling
I guess, ideally the qt_gui_cpp_sip target would be installed via the cmake install command which should take care of setting the correct RPATH.

@dirk-thomas
Copy link
Contributor

Please consider proving a patch for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants