- Supported compilers for latest release - https://www.mathworks.com/support/requirements/supported-compilers.html
- Supported compilers for previous releases - https://www.mathworks.com/support/requirements/previous-releases.html
Error: Generated code from your project uses OpenCV and requires that you use a supported C++ compiler. Use 'mex -setup' to select a supported C++ compiler.
41 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am currently encountering an issue while generating code from my Simulink project. The error message I am receiving is as follows:
"Generated code from your project uses OpenCV and requires that you use a supported C++ compiler. Use 'mex -setup' to select a supported C++ compiler."
I have followed the suggested steps by running the command mex -setup C++ and have ensured that a supported C++ compiler is selected. Additionally, I have installed OpenCV as per the requirements. Despite these efforts, I am still facing the same error when attempting to generate code
0 Commenti
Risposte (2)
Shivam Lahoti
il 11 Nov 2024 alle 16:49
Hello,
I understand you're facing an issue with generating code from your Simulink project, and the error message indicates the need for a supported C++ compiler.
I’ve included two links below that list the supported compilers for various MATLAB versions. Please refer to them to ensure that your current C++ compiler is compatible with your specific version of MATLAB:
I hope this helps to resolve the issue.
Regards,
Shivam.
3 Commenti
Walter Roberson
il 12 Nov 2024 alle 18:33
The OpenCV interface requires that you use Visual Studios.
Walter Roberson
il 11 Nov 2024 alle 18:09
For Windows, you need Microsoft® Visual Studio® 2015 or later (Professional or Community editions)
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!