Skip to content

Make macOS hdRpr binary relocatable#253

Merged
bsavery merged 1 commit intoGPUOpen-LibrariesAndSDKs:masterfrom
hshakula:macos-rpath-fix
Mar 20, 2020
Merged

Make macOS hdRpr binary relocatable#253
bsavery merged 1 commit intoGPUOpen-LibrariesAndSDKs:masterfrom
hshakula:macos-rpath-fix

Conversation

@hshakula
Copy link
Copy Markdown
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