MEX cannot find a supported compiler in MATLAB R2015b after I upgraded to Xcode 8.0
Afficher commentaires plus anciens
I installed Xcode 8.0 on my Mac and tried to use MEX. But I received the following error at the MATLAB command prompt. Please help, thanks.
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit
Réponse acceptée
Plus de réponses (4)
Karthikeyan Chandrasekaran
le 7 Nov 2016
0 votes
I followed the above steps.I could see MacOSX10.12.sdk already there. but still i am not able to figure out the problem
OS:MACOS i am using Xcode_beta,MATLAB2016b..
>> mex -setup C Warning: Xcode is installed, but its license has not been accepted. Run Xcode and accept its license agreement.
Error using mex No supported compiler or SDK was found.
Can anyone please help me regarding this where i am going wrong ?
1 commentaire
Walter Roberson
le 7 Nov 2016
Go into Launcher, click on XCode. Or find it in Applications and double-click it. When it starts up it will ask you to confirm that you accept the license. Once you accept it, mex will work.
changxun fan
le 26 Fév 2017
0 votes
it's work! thank so much.
xu tiantian
le 19 Août 2018
0 votes
Walter Roberson's answers have solved my problems perfectly. Thanks so much.
Melanie Renn
le 23 Juil 2020
Modifié(e) : Melanie Renn
le 23 Juil 2020
I installed Xcode 11.3.1 on my Mac (OS Catalina 10.15.5) and tried to use MEX. I followed Walter's steps above, but I am still getting the following error:
Error using mex
No supported compiler was found. For options, visit
https://www.mathworks.com/support/compilers.
Please help. Thanks in advance.
1 commentaire
Zahra Ashouri
le 17 Jan 2021
I have this problem too, were you able to solve it?
Catégories
En savoir plus sur COM Component Integration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!