필터 지우기
필터 지우기

Working with fortran Mex files on Mac OS

조회 수: 6 (최근 30일)
Vahagn Davtyan
Vahagn Davtyan 2021년 12월 17일
댓글: Vahagn Davtyan 2021년 12월 20일
I have MEX files, which are designed to work on Windows 10 and I am using a macbook so, when I want to make them work on mac by runing this script file:
folder_name='compiled_on_mac';
mkdir(folder_name);
for file = dir('*.F')'
mex('-largeArrayDims', file.name, '-outdir',folder_name)
end
I get this error message:
Error using mex
No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.
Error in do_mex (line 6)
mex('-largeArrayDims', file.name, '-outdir',folder_name)
Here, I am also attaching the MEX_files, if anyone could make them to work on mac I would be very grateful.
  댓글 수: 2
Rik
Rik 2021년 12월 17일
Which compiler did you try to install? And which release are you using?
Vahagn Davtyan
Vahagn Davtyan 2021년 12월 20일
Hi Rik,
I am using Matlab R2020b I tried the solution provided by Yongjian Feng, but it didn't work for me.

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

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 12월 17일
편집: Yongjian Feng 2021년 12월 17일
Try this answer.
  댓글 수: 1
Vahagn Davtyan
Vahagn Davtyan 2021년 12월 18일
I tried it, but it doesn't work for me. I use matlab R2020b and macos 12.0.1 (Monterey)

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

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by