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

Wrong LC_RPATH after make install (cmake setup on macos) #461

Closed
axxel opened this issue Jul 19, 2019 · 5 comments
Closed

Wrong LC_RPATH after make install (cmake setup on macos) #461

axxel opened this issue Jul 19, 2019 · 5 comments
Assignees
Labels
Build A problem with building or installing the library.

Comments

@axxel
Copy link
Contributor

axxel commented Jul 19, 2019

Tools like exrheader compile and work just fine inside the build-tree (multiple LC_RPATH commands for the different libraries are set correctly). Then after install they are all replaced with one entry but that is wrong (otool -l):

path @rpath:/Users/Axel/contrib/openexr.root/lib (offset 12)

Result when executing the binary:

dyld: Library not loaded: @rpath/libIlmImf-2_3.24.dylib
  Referenced from: /Users/Axel/contrib/openexr.root/bin/./exrheader
  Reason: image not found
Trace/BPT trap: 5
@meshula meshula added Build A problem with building or installing the library. CMake labels Jul 19, 2019
@axxel
Copy link
Contributor Author

axxel commented Jul 20, 2019

"Needs Info" tag means "Issue is waiting for more information from the submitter." What information do you need from me?

@kdt3rd
Copy link
Contributor

kdt3rd commented Jul 20, 2019

can you let me know the cmake config / gen line you used?

@kdt3rd
Copy link
Contributor

kdt3rd commented Jul 20, 2019

And thanks for testing! 💯

@axxel
Copy link
Contributor Author

axxel commented Jul 20, 2019

I could not remember, since I simply pulled into an existing repo/build-dir. Hence, setup a fresh build dir:

cmake -DBUILD_TESTING=OFF -DPYILMBASE_ENABLE=OFF -DCMAKE_INSTALL_PREFIX=install ../openexr.git/

Same result. Note: I'm running an outdated macos (10.11.6). This fails with both the stock compiler as well as with a somewhat recent homebrew clang-6.

@kdt3rd
Copy link
Contributor

kdt3rd commented Jul 20, 2019

after waiting for my mac to update, I am able to easily repro, will get it sorted today

@kdt3rd kdt3rd removed the Needs Info label Jul 20, 2019
@kdt3rd kdt3rd self-assigned this Jul 20, 2019
kdt3rd added a commit to kdt3rd/openexr that referenced this issue Jul 21, 2019
…move half-baked framework support

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@kdt3rd kdt3rd closed this as completed in 9aa52c8 Jul 21, 2019
DominicJacksonBFX pushed a commit to boris-fx/mocha-openexr that referenced this issue Jun 22, 2022
…move half-baked framework support

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build A problem with building or installing the library.
Projects
None yet
Development

No branches or pull requests

3 participants