MacOSX: which dynamic libraries linked by binary?

后端 未结 2 517
深忆病人
深忆病人 2021-02-18 18:28

I have not been able to figure out why my binary is not loading. It is a dylib loaded by MATLAB (MEX-file), and links to quite a few dylibs in different locations. MATLAB tells

2条回答
  •  一生所求
    2021-02-18 19:21

    Try setting these environment variables before running matlab:

    export DYLD_PRINT_LIBRARIES=1
    export DYLD_PRINT_LIBRARIES_POST_LAUNCH=1
    export DYLD_PRINT_RPATHS=1
    

    Run man dyld for more possibilities.

    You can also set the variables for just the matlab command like this:

    DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 DYLD_PRINT_RPATHS=1 matlab
    

提交回复
热议问题