I try to use a proprietary Danfoss software development tool with Simulink s-function export. The tool opens Matlab and tries to generate s-function, but it ends up in this error: No supported compiler or SDK was found. What can I do?

1 vue (au cours des 30 derniers jours)
Full error: No supported compiler or SDK was found. You can install the freely availabel MinGW-w64 C/C++ comipler. --> but Support for MinGW-w64 compiler 4.9.2 version 17.1.1 is already installed.

Réponses (1)

Sangeetha Jayaprakash
Sangeetha Jayaprakash le 14 Août 2017
I assume it says "No supported compiler or SDK was found." when you run "mex -setup" in the MATLAB command window.
When installing the MinGW compiler, the environment variable MW_MINGW64_LOC is set with the path the MinGW installation folder. If this environment variable isn't staying set following the installation or after restarting MATLAB, the behavior described above may occur.This could be due to limited privileges.
Running the following command will display whether the MW_MINGW64_LOC environment variable is set:
mex -v -setup
The solution is to have an administrator set the variable.

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by