Matlab 2017b No Compilers Detected

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

回答(1 个)

Akash
Akash 2024-5-17
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 个评论
Walter Roberson
Walter Roberson 2024-5-17
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by