MEX compiler Mingw64 not supported in opencv cpp convert to simulink
5 views (last 30 days)
Show older comments
Hi
I was trying to run the smile detection opencv cpp example present in the following directory 'C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\simulink\supportpackages\simulinkopencv\example\SmileDetector'.
I have installed all the dependency for the exection. After the custom simulink created, am geting error while runnign the simulink model with the lib block created from the opencv importer app.
No idea about this error!
It would be helpful sharing insights on how it can be handled. Thanks in advance.
0 Comments
Answers (1)
Dinesh
on 25 Sep 2023
Hi Gayatri,
I understand that you are trying to run the smile detection OpenCV C++ example and encountering an error. The error is because MATLAB does not provide support to all the compilers. Find the list of supported compilers for MATLAB and Simulink product families from the following MATLAB documentation. In your case, please refer to the documentation for Simulink product families.
If you suspect that you have not installed the correct version of MinGW from third-party vendors, I suggest reinstalling MinGW from the MATLAB File Exchange. This will ensure that you have the appropriate version that is compatible with MATLAB.
After installing MinGW, it is important to configure it properly to ensure it works seamlessly with MATLAB. I recommend referring to the following MATLAB Answers thread for detailed instructions on how to configure MinGW:
Now, type the following command in the command prompt. You should get the message 'MEX configured to use 'MinGW64 Compiler (C++)' for C++ language compilation.' If this message appears correctly, you can proceed with the example.
mex -setup cpp
If you are still experiencing issues and the previous steps have not resolved the problem, it would be helpful to provide more information about the compiler you are using and its installation path or else please contact MathWorks Customer support. for further assitance.
Hope this helps!
Best regards,
Dinesh Reddy Gatla.
0 Comments
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!