Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

2 visualizaciones (últimos 30 días)
Hani
Hani el 3 de Mayo de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentarios
Hani
Hani el 5 de Mayo de 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 el 5 de Mayo de 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 ....

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by