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

MATLAB breaks minc-toolkit-v2 built with shared libraries when used under system('') calls #160

Open
gdevenyi opened this issue Nov 10, 2022 · 0 comments

Comments

@gdevenyi
Copy link
Contributor

MATLAB's launcher defines a bunch of LD_LIBRARY_PATH, which includes their HDF5 library. They don't mangle symbols like ITK does, so there's a library conflict, and the minc tools all bail out.

The reason for this is we're using RUNPATH during linking, which is lower presidence than RPATH.
See:
https://medium.com/obscure-system/rpath-vs-runpath-883029b17c45

I've reported this to MATLAB as a bug (they should use RUNPATH/RPATH for their builds, or mangle their symbols).

A static build fixes 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

1 participant