invalid mex file and missing libmwblas.dylib error

조회 수: 16 (최근 30일)
Haneya Qureshi
Haneya Qureshi 2018년 6월 3일
댓글: Walter Roberson 2021년 5월 7일
I am compiling a MATLAB script on mac and i have downloaded Xcode for MEX file integration but I am getting the following error related to some missing libraries:
Invalid MEX-file '/Users/haneya/Desktop/SVT_MostRecent/private/XonOmega.mexmaci64':
dlopen(/Users/haneya/Desktop/SVT_MostRecent/private/XonOmega.mexmaci64, 6): Library not
loaded: @loader_path/libmwblas.dylib
Referenced from: /Users/haneya/Desktop/SVT_MostRecent/private/XonOmega.mexmaci64
Reason: image not found.
  댓글 수: 9
Samuel L. Polk
Samuel L. Polk 2021년 5월 6일
@Walter Roberson Thank you for your quick response! Unfortunately, I'm having some trouble finding the folder '/user/lib/' in the package contents of the MATLAB software. Could you please describe where that folder is? I am runnning MATLAB R2021a on macOS Big Sur Version 11.2.3 if that is any help. Thank you again for your help.
Walter Roberson
Walter Roberson 2021년 5월 7일
It was /usr/lib not /user/lib . And it is not inside the MATLAB software, it is a system folder that exists on systems derived from Unix.
!ls /usr/lib
apt dconf gettext groff libgdiplus.so libMonoPosixHelper.so modules-load.d pkg-config.multiarch sasl2 systemd X11 binfmt.d debug girepository-1.0 initramfs-tools libgdiplus.so.0 libMonoSupportW.so mono python2.7 sftp-server tar x86_64-linux-gnu binfmt-support dpkg glib-networking insserv libgdiplus.so.0.0.0 locale openssh python3 software-properties tc xorg cli esmtp gnupg jvm libid3tag.so.0 man-db os-release python3.5 ssl tmpfiles.d compat-ld gcc gold-ld ldscripts libid3tag.so.0.3.0 mime pkgconfig python3.8 syslog-ng valgrind
However:

댓글을 달려면 로그인하십시오.

답변 (1개)

Omar Shadeed
Omar Shadeed 2019년 4월 24일
Hi Haneya,
I'm actually having the same error, I copied the libmwblas.dylib file from matlabroot and pasted it in my current matlab directory but I still get the same error.
Note: The mex is done successfully but when I run the Simulinknk model that uses the S-Function I get the same error you got. So what did you do to make it work?
Thanks,
The error I get is:
  • Error while obtaining sizes from MEX S-function 'TrackerObject' in 'DSSDK_TrackerSingleObject/S-Function'.
  • Caused by:
  • Invalid MEX-file '/Users/omarshadeed/Desktop/VICON/Simulink models/DSSDK/SingleObject/TrackerObject.mexmaci64': dlopen(/Users/omarshadeed/Desktop/VICON/Simulink models/DSSDK/SingleObject/TrackerObject.mexmaci64, 6): Library not loaded: @executable_path/libViconDataStreamSDK_CPP.dylib Referenced from: /Users/omarshadeed/Desktop/VICON/Simulink models/DSSDK/SingleObject/TrackerObject.mexmaci64 Reason: image not found.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by