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

Make macOS hdRpr binary relocatable #253

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

hshakula
Copy link
Contributor

@hshakula hshakula commented Mar 6, 2020

Currently, hdRpr binary on macOS has LC_RPATH in such form
/Applications/Houdini/Houdini18.0.391/Frameworks/Houdini.framework/Versions/18.0/Libraries.
This binds hdRpr.dylib to particular Houdini release.

With current changes, LC_RPATH will look like @loader_path/.
Why it will work? Because, right now, we place libraries required by hdRpr.dylib (RPR and RIF libraries) to the directory with USD libraries. USD libraries are responsible for plugin loading. In such a way, on the loading of hdRpr.dylib @loader_path will be substituted with the path to USD libraries.

@bsavery bsavery merged commit 0832cf5 into GPUOpen-LibrariesAndSDKs:master Mar 20, 2020
@hshakula hshakula deleted the macos-rpath-fix branch March 20, 2020 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants