Commit d3991f7
hdPrmanXpuLoader: Fix link issues on Linux and macOS
The hdPrmanXpuLoader plugin currently links against hdPrmanLoader,
which is also a plugin. However, the build system assumes that
plugins are leaf libraries with no dependents and does not set
up an RPATH entry pointing to the plugin install directory.
This leads to an error when trying to switch to RenderMan XPU
in usdview: loading hdPrmanXpuLoader fails because it can't
find its hdPrmanLoader dependency at runtime.
This fix works around the issue by forcing the addition of the
plugin install directory to hdPrmanXpuLoader's RPATH. This is
intended to be a short term patch while we explore other ways
to structure these loader plugins.
(Internal change: 2372879)1 parent 7812b47 commit d3991f7
File tree
1 file changed
+20
-0
lines changed- third_party/renderman-26/plugin/hdPrmanXpuLoader
1 file changed
+20
-0
lines changedLines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
22 | 42 | | |
23 | 43 | | |
24 | 44 | | |
| |||
0 commit comments