Why do I receive a "Library not loaded: @rpath/libMatlabEngine.dylib" error when running a MEX function on macOS 14 or 13 [Sonoma, Ventura]?
Afficher commentaires plus anciens
I compiled a MATLAB function into a MEX function using on my Intel processor macOS machine. However, when I run the MEX function, I get the following error:
Invalid MEX-file
'/this/is/a/path/foo_mex.maci64': dlopen(/this/is/a/path/foo_mex.maci64,0x0006): Library not loaded: @rpath/libMatlabEngine.dylib
However, I have been able to compile and run without issue on my ARM processor macOS machine or older macOS machines. How can I run my MEX function on my Intel processor macOS?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!