simulink model build error with s-function

3 views (last 30 days)
Neha
Neha on 21 Jul 2017
Commented: David Rosin on 2 Aug 2017
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 Comments
Ankitha Kollegal Arjun
Ankitha Kollegal Arjun on 25 Jul 2017
Neha,
Would it be possible to provide the model you are trying to build?
David Rosin
David Rosin on 2 Aug 2017
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.

Sign in to comment.

Answers (0)

Categories

Find more on Block and Blockset Authoring 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!