Just upgraded to X-code 5.0 on my mac
Ältere Kommentare anzeigen
How do I properly modify my mexopts.sh file to use the command line tools X-Code 5.0
Akzeptierte Antwort
Weitere Antworten (2)
SHUO WANG
am 19 Sep. 2013
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
am 3 Okt. 2013
0 Stimmen
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.
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!