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?

조회 수: 3 (최근 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
Sangeetha Jayaprakash 2017년 8월 14일
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.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by