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.

2 件のコメント

Remy PROST
Remy PROST 2020 年 4 月 14 日
Help,
I have this problem on a MacBook Pro running with Sierra.
error when running a mex file
@loader_path/libmex.dylib
Reason: image not found
In Walter proposal the depositery usr/lib is protected by Sierra
Thank you for a solution !
Walter Roberson
Walter Roberson 2020 年 4 月 14 日
You would need to sudo in order to copy the file into /usr/lib

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 23 日
編集済み: Walter Roberson 2019 年 5 月 24 日

1 投票

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

5 件のコメント

metro
metro 2019 年 5 月 24 日
Thank you very much, Walter Roberson.
I will try it as you suggested :)
metro
metro 2019 年 5 月 26 日
Thank you Walter Roberson,
I tried to copy libmex.dylib and the other files as the error message suggested, but I finally cannot find "libSystem.B.dylib" and gave up to run on macOS. I will try it on Linux again.
Thank you very much for your help!
Walter Roberson
Walter Roberson 2020 年 4 月 14 日
/usr/lib/libSystem.B.dylib should exist on any MacOS
Arnout Quast
Arnout Quast 2020 年 9 月 16 日
I'm having the samen problem as @metro. Tried copying several files that error suggested, in total 4 files:
libmwlapack.dylib
libmwblas.dylib
libmex.dylib
libmat.dylib
when running I get the following error, this is slightly different from before:
Invalid MEX-file '/Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64': dlopen(/Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64, 6): Symbol not found: _mxAddField Referenced from: /Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64 Expected in: /usr/lib/libSystem.B.dylib in /Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64 Error in 'TDS_3dof_alloc/Allocation, and Tset to nset/Allocate qaudprog' (line 11) [x, err, lm]=qpip(Pmat, qmat, Gmat, hmat, Amat, btmp, [],[],[],[],[]);
For reference firste error:
Invalid MEX-file '/Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64': dlopen(/Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64, 6): Library not loaded: @loader_path/libmat.dylib Referenced from: /Users/quast/Documents/MATLAB/DP footprint local macAQ/3DOF/qpip.mexmaci64 Reason: image not found Error in 'TDS_3dof_alloc/Allocation, and Tset to nset/Allocate qaudprog' (line 11) [x, err, lm]=qpip(Pmat, qmat, Gmat, hmat, Amat, btmp, [],[],[],[],[]);
When looking for file libSystem.B.dylib I can't find it. Anybody know what is going on and how to solve it?
Arnout Quast
Arnout Quast 2020 年 9 月 16 日
FYI: running macOS Catalina 10.15.4 and matlab R2020a

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by