Skip to content

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

@gdevenyi

Description

@gdevenyi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions