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

Plugin system looks in original install location even after relocating build #363

Closed
sunyab opened this issue Jan 13, 2018 · 2 comments
Closed

Comments

@sunyab
Copy link
Contributor

sunyab commented Jan 13, 2018

Description of Issue

This was reported on the usd-interest forum here: https://groups.google.com/forum/#!topic/usd-interest/68NnvsdmzlI

If you relocate the USD installation to a different location, the plugin system will look not only in the new location, but also at the original install location for libraries. This can cause problems if a user has a USD installation in the original location and then tries to use the relocated build: the plugin system may wind up trying to load the same library twice, or get mismatched library versions, etc.

This appears to be due to the build system always defining PXR_INSTALL_LOCATION when compiling libraries. PXR_INSTALL_LOCATION was intended to be an optional setting to allow users to specify other locations to look for plugins, but it shouldn't be passed along if it's not being used.

Steps to Reproduce

  1. Build USD (let's say into /tmp/USD_1)
  2. Recursively copy /tmp/USD_1 to /tmp/USD_2
  3. Try to run usdview or anything using the build in /tmp/USD_2.

System Information (OS, Hardware)

all

Package Versions

0.8.2, earlier versions probably affected as well

@jtran56
Copy link

jtran56 commented Jan 16, 2018

Filed as internal issue #155865.

@chadrik
Copy link
Contributor

chadrik commented Jan 16, 2018

@sirpalee @elrond79 will be interested to keep an eye on this.

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

No branches or pull requests

3 participants