Info

此问题已关闭。 请重新打开它进行编辑或回答。

problem in Mex-Setup in Mac 10.9.2 , Matlab R2013a , X-Code 5.1.1

1 次查看(过去 30 天)
I have updated my Mac to 10.9.2 and X-Code to 5.1.1 , then installed Matlab R2013a and it cannot compile the Matlab Function in Simulink. I have read all Q&A but my problem has not been solved yet. please give me a correct answer how to change the mexopts.sh and run the mex-setup
please answer urgentlyyyy :(
  3 个评论
Hani
Hani 2014-5-5
the error is :
Making simulation target "CSC_9L_8S_2DifSup_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 CSC_9L_8S_2DifSup_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 ' "CSC_9L_8S_2DifSup_sfun.c"' failed.
gmake: * [CSC_9L_8S_2DifSup_sfun.o] Error 1
Hani
Hani 2014-5-5
after first edit of mexopts.sh file then I get the following error:
Making simulation target "CSC_9L_8S_2DifSup_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 CSC_9L_8S_2DifSup_sfun.c In file included from CSC_9L_8S_2DifSup_sfun.c:3: In file included from ./CSC_9L_8S_2DifSup_sfun.h:6: In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:33: In file included from /Applications/MATLAB_R2013a.app/simulink/include/mwmathutil.h:23: /Applications/MATLAB_R2013a.app/extern/include/tmwtypes.h:819:9: error: unknown type name 'char16_t' typedef char16_t CHAR16_T; ^ 1 error generated.
mex: compile of ' "CSC_9L_8S_2DifSup_sfun.c"' failed.
gmake: * [CSC_9L_8S_2DifSup_sfun.o] Error 1
I think, after editing the mexopts.sh file I should do another thing but I don't know what to do ....

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by