Fails Model Build with VeriStand Model Generation Support

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

回答(1 个)

Narvik
Narvik 2023-12-28
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!

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by