Problems with the compiler when running gravity_windup.slx example from sparkfun_redbot_block_lib
Show older comments
I try to compile and run an example code gravity_windup.slx from sparkfun_redbot_block_lib. The error shown is:
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler;
see Install MinGW-w64 Compiler. For more options, see
http://www.mathworks.com/support/compilers/R2015b/win64.html.
When I try to upload the code to the board, I get the following message in the diagnostic viewer:

This is what I have under Code --> C/C++ Code --> Code Generation:

Finally, if I click on Validate from Code Generation--> Build option, I get a "passed" message for the Toolchain. See below:

The cpp files of the project do not seem to be compiled. See image below:

I use:
MATLAB Version: 8.6.0.267246 (R2015b)
MATLAB License Number: ••••••
Operating System: Microsoft Windows 7 Enterprise Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Any ideas for fixing this problem? Thanks in advance.
Answers (2)
Walter Roberson
on 13 Oct 2015
0 votes
It is common for the build process to require a compiler on the host to put together the header files and some other items. You will need to install one of the compilers listed in the link.
1 Comment
Diana Saplacan
on 19 Oct 2015
Madhu Govindarajan
on 20 Oct 2015
0 votes
Have you tried doing mex setup using the following command?
>> mex -setup
This should tell you what compiler is being used by MATLAB if any.
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
