Simulink cannot detect compiler for c code generation from a protected model, even thoug Matlab sees it (MinGW)

26 visualizzazioni (ultimi 30 giorni)
Simulink Embedded Coder cannot generate c code from a protected model.
Error message:
No supported compiler detected. A compiler is required by some simulation modes and the build process. Install a supported compiler. For options, see https://www.mathworks.com/support/compilers. After installing a supported compiler, restart MATLAB.
I have installed MinGW.
Matlab can see it:
>> mex -setup
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
I can generate code from other models without problems.
I don't know what's inside the protected model, but the code generation settings seem to be the same as for the other models.
1) How is it possible that Matlab can see MinGW but Simulink can not?
2) What can be inside a protected model that causes this error message when trying to generate c code from it?
  3 Commenti

Accedi per commentare.

Risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by