Problems with the compiler when running gravity_windup.slx example from sparkfun_r​edbot_bloc​k_lib

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)

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.
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.

2 Commenti

Yes, I run the cmd. After installing the compiler, I get: MEX configured to use 'MinGW64 Compiler (C)' for C language compilation. Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following: mex -setup C++ mex -setup FORTRAN.
However, the problem that I have now is the following error, which I am not sure on what it is depending on.

Accedi per commentare.

Categorie

Scopri di più su MATLAB Compiler SDK in Centro assistenza e File Exchange

Richiesto:

il 13 Ott 2015

Commentato:

il 20 Ott 2015

Community Treasure Hunt

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

Start Hunting!

Translated by