MATLAB: Mexmaci64 and dylib issue

dylibmexmaci64

Hi,
Thank you always for your help.
I have the following message in using a mexmaci64 file.
————————————————————————————————————————————–
Library not loaded: @loader_path/libmex.dylib
Referenced from:
/Users/usr/Documents/MATLAB/SFMedu2/denseMatch/priority_queue_1.0/pq_create.mexmaci64
Reason: image not found.
————————————————————————————————————————————–
I cannot see how should I solve this issue.
Thank you in advance.

Best Answer

As your executable is not in /Applications you might be able to use setenv to set LD_LIBRARY_PATH. However if this is being run from MATLAB then that environment variable might not work in Sierra and later and you might need to put a copy of libmex into /usr/lib
Related Question