Invalid Mex-files using 2018a Xcode 9.2
Ältere Kommentare anzeigen
Hi,
While trying to run Matlab 2018a code using "BM3D" downloaded from from http://www.cs.tut.fi/~foi/GCF-BM3D/ (the file is http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D.zip I'm getting this errors.
tried almost every solution suggested on Matlab Answers Community with no success.
I'm using Xcode 9.2.
Invalid MEX-file '/Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64': dlopen(/Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64,
6): Library not loaded: @loader_path/libmat.dylib
Referenced from: /Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64
Reason: image not found.
Error in BM3D (line 342)
y_hat = bm3d_thr(z, hadper_trans_single_den, Nstep, N1, N2, lambda_thr2D,...
8 Kommentare
Yul Kim
am 11 Dez. 2018
Hi, I'm having the exact same problem. Did you solve this by any chance? Thanks!
Eric Elharer
am 8 Jan. 2019
Jaakko Lehtinen
am 13 Jan. 2019
Same here..
Does anyone happen to recall the last known good version of Matlab for BM3D? In a little bit of a pinch for getting comparison results done, so could well install an older version just for that.
Walter Roberson
am 13 Jan. 2019
Jaakko Lehtinen which Mac OS version are you using? I suspect that is more relevant than the MATLAB version for this purpose.
Walter Roberson
am 13 Jan. 2019
The original poster mentioned XCode 9.2, which is for MacOS 10.12.6+ onward, which is for Sierra; High Sierra needs XCode 9.3 or later.
MacOS Sierra was the release where Apple starting getting serious with System Integrity Protection, which turns off recognition of DYLD_DYNAMIC_PATH in some cases. This wasn't a MATLAB issue; it was an Apple issue. Individual programs could adapt to the Apple restriction, but the most obvious adaptation is to static link libraries instead of using DLL. For third-party packages such as BM3D, that would involve a change to BM3D rather than a change to MATLAB.
Eric Elharer
am 22 Okt. 2019
Wen Ying
am 5 Dez. 2019
hi I meet the same problem, and i use matlab2018a and xcode11.2.1 macos 10.14.6.
i did not find the function the solve this issue.
could you send me the beta version for bm3d?
Amal Hafiane Mokadem
am 11 Mai 2022
hi please can you send me the beta version for Bm3d if you still have it
Antworten (1)
Walter Roberson
am 28 Mär. 2018
0 Stimmen
Sierra and High Sierra ignore DYLD_DYNAMIC_PATH in some cases, for security reasons. It is only intended to apply to some executables, but likely it is interfering.
tl;dr -- put copies of the library in /usr/lib
10 Kommentare
Eric Elharer
am 28 Mär. 2018
Walter Roberson
am 29 Mär. 2018
sudo cp /Applications/MATLAB_R2018a.app//bin/maci64/libmat.dylib /usr/lib
Eric Elharer
am 29 Mär. 2018
Bearbeitet: Eric Elharer
am 29 Mär. 2018
Eric Elharer
am 29 Mär. 2018
Walter Roberson
am 29 Mär. 2018
Sorry, I do not know.
Eric Elharer
am 29 Mär. 2018
Eric Elharer
am 30 Mär. 2018
Bearbeitet: Walter Roberson
am 31 Mai 2018
Yilin Lin
am 31 Mai 2018
I am facing the exact same issue - please let me know when you get it to work! Thanks a lot.
Zhihong Pan
am 21 Okt. 2019
stuck at the same error on MacOS, any updates on this?
Eric Elharer
am 5 Dez. 2019
Kategorien
Mehr zu Performance and Memory finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!