Fails Model Build with VeriStand Model Generation Support
5 views (last 30 days)
Show older comments
I have the following error,
I have reviewed other amwers however I can not find someting related
Thanks guys,
"C:/Pasantia/Library_ADRC_veristand_rtw/rtmodel.c"
gmake: *** No rule to make target `Sangregorio/AppData/Roaming/MATHWO~1/MATLAB', needed by `veristand_model_capi.obj'. Stop.
C:\Pasantia\Library_ADRC_veristand_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Pasantia\Library_ADRC_veristand_rtw>exit /B 1
Build Summary
Error(s) encountered while building "Library_ADRC"
Component:Simulink | Category:Block diagram error
0 Comments
Answers (1)
Narvik
on 28 Dec 2023
Hi
As per my understanding, you are receiving the error: ‘The make command returned an error of 2’ while trying to build a model with VeriStand Model Generation Support.
This error usually occurs if MinGW was installed for a different version of MATLAB than the one being used to generate code. To fix this problem, ensure that MinGW is installed for the specific version of MATLAB in use.
Please refer to the following MATLAB Answer for more information on installing MinGW for use in MATLAB: https://www.mathworks.com/matlabcentral/answers/313290-how-do-i-install-mingw-for-use-in-matlab
Hope this helps!
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!