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 次查看(过去 30 天)
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.

回答(1 个)

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by