I have windows 10, with matlab 2014a i try to run the statement :
> mex -setup
on matlab but i have this error message : Warning: Xcode appears to be installed, but it has not been configured. Run "osascript -e 'do shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'" to configure Xcode. You must be an administrator of this computer to complete this action.
Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64. >>
Any heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp !!!?

2 comentarios

Walter Roberson
Walter Roberson el 24 de Jun. de 2017
Do you happen to share network drive with a Mac, or did you happen to copy your files over from a Mac?
Fateh Benma
Fateh Benma el 24 de Jun. de 2017
I didn't understand your question ?

Iniciar sesión para comentar.

Respuestas (2)

Jan
Jan el 24 de Jun. de 2017
Editada: Jan el 24 de Jun. de 2017

0 votos

XCode is a compiler for MacOS. If you run Windows 10, this message should not appear. As Walter asked already: Did you copy files in the prefdir folder from a MacOS installation? But even then modern Matlab version look for a file like "mex_C_win64.xml" and a collision with another preferences file is unlikely.
You can try to re-create the preferences files. Rename (not delete) the preferences folder and try, if the automatic re-creation and a new mex -setup solves the problem. Then you can copy the newly created compiler setup file to the original folder and restore the former preferences folder.
If this does not help, try:
mex -v -setup
and post the results here.
Gerhard Drenthen
Gerhard Drenthen el 23 de Abr. de 2018
Editada: Gerhard Drenthen el 23 de Abr. de 2018

0 votos

I am experiencing a similar problem when trying to run the mex setup. This is the result from the mex -v -setup
>> mex -v -setup -c
Verbose mode is on.
... Looking for compiler 'Xcode with Clang' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'xcode-select -print-path' ...No.
Did not find installed compiler 'Xcode with Clang'.
Warning: Xcode appears to be installed, but it has not been configured. Run "osascript -e 'do
shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'" to
configure Xcode. You must be an administrator of this computer to complete this action.
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2014b/win64.html.

1 comentario

Walter Roberson
Walter Roberson el 25 de Abr. de 2018
In MATLAB, command
!osascript -e 'do shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'
Also, make sure that you start up XCode once, as it is necessary to agree to the XCode license before you can use XCode from MATLAB.

Iniciar sesión para comentar.

Categorías

Más información sobre Share and Distribute Software en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de Jun. de 2017

Comentada:

el 25 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by