Why can't MEX find a supported compiler in MATLAB R2017a in macOS Sierra
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Peter Kerekes
 el 26 de Jun. de 2017
  
    
    
    
    
    Comentada: Adawat Chanchua
 el 15 de Sept. de 2019
            I'm using the latest macOS (Sierra 10.12.5) and mex can not find the compiler, or SDK even if the latest Xcode (8.3.3) and Intel Paralell Studio are installed.
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 26 de Jun. de 2017
        See https://www.mathworks.com/matlabcentral/answers/243868-mex-can-t-find-compiler-after-xcode-7-update-r2015b#comment_407066 for my files. I have tested them on Sierra with XCode 8.3 using R2017a.
13 comentarios
  Natasha M Drissi
 el 15 de Dic. de 2017
				I had the same problem and so I tried to see if I could solve it the same way but when I do I get this message instead
 error: --switch must be run as root (e.g. `sudo xcode-select --switch <xcode_folder_path>`).
  Walter Roberson
      
      
 el 16 de Dic. de 2017
				Okay, so use sudo then...
sudo xcode-select --switch /Applications/Xcode.app
Más respuestas (1)
  Vahan Petrosyan
 el 6 de Mzo. de 2018
        
      Editada: Walter Roberson
      
      
 el 6 de Mzo. de 2018
  
      Building with 'Xcode with Clang'.
/usr/bin/xcrun -sdk macosx/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk clang -c -DUSE_MEX_CMD   -DMATLAB_MEX_FILE -I"/usr/local/include"  -I"/Applications/MATLAB_R2017b.app/extern/include" -I"/Applications/MATLAB_R2017b.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.13 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -O2 -fwrapv -DNDEBUG "/Users/vahan/Desktop/research/Image Segmentation/algorithms/SEEDS LSC/timestwo.c" -o /var/folders/9t/cj2m3vms6l3_sdmj0nxqxch80000gn/T/mex_38352988742257_1467/timestwo.o
Error using mex
xcodebuild: error: SDK
"macosx/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" cannot be
located.
xcrun: error: unable to find utility "clang", not a developer tool or in PATH
- I am receiving the following error. It seems that after -sdk, my directory starts from maxosx. Can someone tell me what do to ?
2 comentarios
  Walter Roberson
      
      
 el 6 de Mzo. de 2018
				Try (from Terminal)
sudo xcode-select --switch /Applications/Xcode.app
Ver también
Categorías
				Más información sobre Troubleshooting in MATLAB Compiler SDK en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




