Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

2 vues (au cours des 30 derniers jours)
Hani
Hani le 3 Mai 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaires
Hani
Hani le 5 Mai 2014
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 le 5 Mai 2014
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 ....

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by