Matlab 2017b No Compilers Detected

4 Ansichten (letzte 30 Tage)
Mark Johnson
Mark Johnson am 30 Mär. 2021
Kommentiert: Walter Roberson am 17 Mai 2024
I am trying to compile a simulink model I made to check the I/O on my Speedgoat but when I go to do mex -setup Matlab replies with "Error using mex, No supported compiler or SDK was found." This is confusing to me since I just installed visual studios per https://www.mathworks.com/matlabcentral/answers/348269-how-do-i-set-up-microsoft-visual-studio-2017-for-slrt. I have tried adding the Visual Studio to the Matlab file path but it has not fixed the problem. Has anyone encountered and solved this problem?

Antworten (1)

Akash
Akash am 17 Mai 2024
Hi Mark,
It is essential to ensure that a compatible compiler is installed on your system. You can start by installing the 'MinGW-w64 GCC' compiler, which is commonly supported across various MATLAB versions. This compiler can be installed from the 'Add-Ons' menu. After installing the compiler, run the `mex -setup` command again to configure MATLAB to recognize the newly installed compiler.
You may also need to verify the list of compilers supported by your MATLAB version. For further details and potential solutions related to compiler issues, the following MATLAB Central discussions might be helpful:-
  1 Kommentar
Walter Roberson
Walter Roberson am 17 Mai 2024
In R2017b, MinGW was not supported for Simulink Real-Time. Supported releases for Simulink Real-Time for R2017b were:
  • Microsoft Visual C++ 2017 product family
  • Microsoft Visual C++ 2015 Professional
  • Microsoft Visual C++ 2013 Professional
Note: I am unclear about the current (R2024a) supported compilers for Simulink Real-Time. Since R2020b, Simulink Real-Time has not been listed in the charts.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by