필터 지우기
필터 지우기

How can I compile mex file in SPM12 on macos Monterey?

조회 수: 5 (최근 30일)
Yan Ge
Yan Ge 2022년 5월 6일
답변: Lizhao Du 2024년 7월 18일 1:22
I wonder how can I fix the error below.
“Error using file2mat (line 16)
file2mat.c not compiled - see Makefile”
Also when I try to compile the mex, I met the error below.
mex -O -largeArrayDims -c spm_vol_utils.c -DSPM_UNSIGNED_CHAR
make: mex: No such file or directory
make: *** [utils_uchar.mexmaci64.o] Error 1
  댓글 수: 1
Cynthia Son
Cynthia Son 2022년 8월 25일
Hi, having a similar issue. Were you able to find a fix?

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

채택된 답변

Katharina Wellstein
Katharina Wellstein 2022년 5월 16일
I cannot directly answer your question since I also am not able to use spm on Mac OS Monterey but if you do not get any answers here, there may be an answer on the spm mailinglist in the future (https://www.fil.ion.ucl.ac.uk/spm/support/) - hopefully.

추가 답변 (1개)

Lizhao Du
Lizhao Du 2024년 7월 18일 1:22
First of all, make sure that you can run "mex" in the command line in Matlab.
And then, just navigate to the folder, for example, ~/MatLab_ToolBox/SPM/***, and then run "mex file2mat.c" in the command line.
Warnings may be generated. But it really works.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by