How do I properly modify my mexopts.sh file to use the command line tools X-Code 5.0

댓글 수: 3

Joel
Joel 2013년 9월 19일
In my mexopts.sh file, I replaced all "10.7" with "10.8" and now everything works.
Shikui
Shikui 2013년 9월 20일
편집: Shikui 2013년 9월 20일
I had the same problem too. It also worked for me by replacing all "10.7" with "10.8" in /Applications/MATLAB_R2013a.app/bin/mexopts.sh. That is great!
Berk Ustun
Berk Ustun 2013년 10월 2일
Thank you!

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

 채택된 답변

Ken Atwell
Ken Atwell 2013년 10월 4일

0 개 추천

Here is the "official" Solution for this:

추가 답변 (2개)

SHUO WANG
SHUO WANG 2013년 9월 19일

0 개 추천

Hi Joel
I also had the same problem.
Making simulation target "System_19092013_sfun", ...
/Applications/MATLAB_R2013a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2013a.app/stateflow/c/mex/include -I/Applications/MATLAB_R2013a.app/stateflow/c/debugger/include System_19092013_sfun.c xcodebuild: error: SDK "macosx10.7" cannot be located. xcrun: error: unable to find utility "clang", not a developer tool or in PATH
mex: compile of ' "System_19092013_sfun.c"' failed.
gmake: * [System_19092013_sfun.o] Error 1
However I tried to link Xcode compiler to Matlab again, and everything started to work again.
That's how I solved it.
BR
Shuo
Ken Atwell
Ken Atwell 2013년 10월 3일

0 개 추천

MEX in recent versions of MATLAB links against the 10.7 SDK, which was unfortunately removed in Xcode 5.0; either don't update to 5.0, or replace instances of "10.7" with "10.8" as Joel relates above.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2013년 9월 19일

댓글:

2013년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by