simulink model build error with s-function
조회 수: 4 (최근 30일)
이전 댓글 표시
I used the s function builder block to create an s function model. When I try to build the model, I get one error:
"### Creating standalone executable "../vibrotactile_sfcn.exe" ..."
"C:\PROGRA~3\MATLAB\SUPPOR~1\R2017a\3P778C~1.INS\MINGW_~1.INS\bin/g++" -Wl,-rpath,"C:/PROGRA~1/MATLAB/R2017a/bin/win64",-L"C:/PROGRA~1/MATLAB/R2017a/bin/win64" -o ../vibrotactile_sfcn.exe @vibrotactile_sfcn.lnk rt_main.obj -lws2_32
g++: error: RTGETINF.obj: No such file or directory
g++: error: RTGETNAN.obj: No such file or directory
gmake: *** [../vibrotactile_sfcn.exe] Error 1
D:\Vibrotactile S Function\vibrotactile_sfcn_grt_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\Vibrotactile S Function\vibrotactile_sfcn_grt_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
I see that there are RTGETINF.C, RTGETINF.H, RTGETNAN.C, and RTGETNAN.H files but no .obj files corresponding to this. How do fix this so I can build the model without errors? Please let me know if you need to see other files.
댓글 수: 2
Ankitha Kollegal Arjun
2017년 7월 25일
Neha,
Would it be possible to provide the model you are trying to build?
David Rosin
2017년 8월 2일
I seem to have the same issue, or at least a very similar one.
"### Creating standalone executable "./test.exe" ..."
"C:\PROGRA~3\MATLAB\SUPPOR~1\R2017a\MW_MIN~1\bin/gcc" -Wl,-rpath,"D:/Program Files/MATLAB/R2017a/bin/win64",-L"D:/Program Files/MATLAB/R2017a/bin/win64" -o ./test.exe @test.lnk I:/extern/lib/win64/mingw64/libmwcoder_target_services.lib I:/extern/lib/win64/mingw64/libmwcoder_ParamTuningTgtAppSvc.lib -LI:/bin/win64 -LI:/extern/lib/win64/mingw64 -llibmwipp -llibut -llibmx -llibmex -llibmat -llibmwmathutil -llibmwsl_solver_rtw -llibmwsl_fileio -llibmwsigstream -llibmwsl_AsyncioQueue -llibmwsl_simtarget_instrumentation -llibmwslio_core -llibmwslio_clients -llibmwsl_log_load_blocks -llibfixedpoint -lws2_32
gcc: error: RTGETINF.obj: No such file or directory
gcc: error: RTGETNAN.obj: No such file or directory
gmake: *** [test.exe] Error 1
The make command returned an error of 2
Der Befehl "An_error_occurred_during_the_call_to_make" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
This first occured with a big model so I made a small one with just a from-workspace-block that goes directly to the output. The big model also runs almost twice as slow in accelerator as in normal mode, but I'm not sure whether or not those two problems could even be related.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!