フィルターのクリア

No supported compiler or SDK was found. For options, visit http://www​.mathworks​.com/suppo​rt/compile​rs/R2016a/​maci64.htm​l. gmake: *** [MotorArduino_sfun.o] Error 255

3 ビュー (過去 30 日間)
I have the problem, that when I try to add a state flow to my simulink file. The export to my Arduino Mega does not work anymore and I get this error. The simulink file works fine with the internal simulator
Making simulation target "MotorArduino_sfun", ...
/Applications/MATLAB_R2016a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I"/Applications/MATLAB_R2016a.app/extern/include" -I"/Applications/MATLAB_R2016a.app/simulink/include" -I"/Applications/MATLAB_R2016a.app/simulink/include/sf_runtime" -I"/Applications/MATLAB_R2016a.app/stateflow/c/mex/include" -I"/Applications/MATLAB_R2016a.app/rtw/c/src" -I"/Users/daniel/Documents/MATLAB/slprj/_sfprj/MotorArduino/_self/sfun/src" MotorArduino_sfun.c
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2016a/maci64.html.
gmake: *** [MotorArduino_sfun.o] Error 255
Component: Make | Category: Make error
### Build procedure for model: 'MotorArduino' aborted due to an error.
Unable to create mex function 'MotorArduino_sfun.mexmaci64' required for simulation.
Thanks for the Help!

回答 (2 件)

Chinmayi Lanka
Chinmayi Lanka 2017 年 1 月 19 日
On the Mac, no C compiler is supplied with MATLAB. If you use products that require one, Apple’s development environment for OS X (Xcode) is available in the Mac App Store.
Execute the following command in the MATLAB Command window and verify if a supported compiler is installed:
>> mex -setup
If there is no compiler installed, you can either install Xcode 6.x or 7.x to be used with MATLAB R2016a.
  4 件のコメント
Walter Roberson
Walter Roberson 2017 年 1 月 20 日
The changes to get Xcode 8 to be invoked are small.
Daniel Wolf
Daniel Wolf 2017 年 1 月 20 日
okay I've installed Xcode 7 as well and change the default compiler with
xcode-select -switch /Applications/Xcode.X.app/Contents/Developer Now I get an Error
Output argument "scomp" (and maybe others) not assigned during call to "getMexCompilerInfo>locGetSupportedCompilerStruct".
What does that mean?

サインインしてコメントする。


Jan
Jan 2017 年 1 月 20 日
  1 件のコメント
Daniel Wolf
Daniel Wolf 2017 年 1 月 20 日
okay I've installed Xcode 7 as well and change the default compiler with
xcode-select -switch /Applications/Xcode.X.app/Contents/Developer
Now I get an Error
Output argument "scomp" (and maybe others) not assigned during call to "getMexCompilerInfo>locGetSupportedCompilerStruct".
What does that mean?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by