Problems with the compiler when running gravity_windup.slx example from sparkfun_redbot_block_lib
Mostrar comentarios más antiguos
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.
Respuestas (2)
Walter Roberson
el 13 de Oct. de 2015
0 votos
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 comentario
Diana Saplacan
el 19 de Oct. de 2015
Madhu Govindarajan
el 20 de Oct. de 2015
0 votos
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.
Categorías
Más información sobre MATLAB Compiler SDK en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

