MATLAB 2016a cannot locate gcc compiler

5 vues (au cours des 30 derniers jours)
Alexander N Olesen
Alexander N Olesen le 31 Mai 2016
I'm using MATLAB 2016a on a Macbook Pro running OS X El Capitan. Command Line Tools are installed:
MacBook-Pro:~ neergaard$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
MacBook-Pro:~ neergaard$
However, MEX cannot seem to find gcc:
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2016a/maci64.html.
>> gcc -setup
Undefined function or variable 'gcc'.
Is there something I can do to 'force' MEX to look specific places?

Réponses (2)

Elisa Boatti
Elisa Boatti le 6 Avr 2017
Modifié(e) : Elisa Boatti le 6 Avr 2017
try
setenv('MW_MINGW64_LOC',folder)
where folder is the location where MINGW is installed
  1 commentaire
Walter Roberson
Walter Roberson le 6 Avr 2017
MINGW is not used on OS-X: it is only for MS Windows.

Connectez-vous pour commenter.


Ahmed Rashid
Ahmed Rashid le 31 Mai 2016
Try out
mex -setup
  2 commentaires
Alexander N Olesen
Alexander N Olesen le 31 Mai 2016
Forgot to mention I've already tried that. Edited original post.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by