Problems with the compiler when running gravity_windup.slx example from sparkfun_redbot_block_lib
Mostra commenti meno recenti
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.
Risposte (2)
Walter Roberson
il 13 Ott 2015
0 voti
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 Commento
Diana Saplacan
il 19 Ott 2015
Madhu Govindarajan
il 20 Ott 2015
0 voti
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.
Categorie
Scopri di più su MATLAB Compiler SDK in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

