Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

2 ビュー (過去 30 日間)
Hani
Hani 2014 年 5 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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