rtwbuildma​tsim脚本执行过程​报错:Error during script execution: coder.make​.internal.​getTMF:una​ble to locate template makefile: matsim_lcc64.tmf

我正在尝试使用rtwbuildmatsim脚本导出tutorial_matsim_start_spr_dmp_01.mdl的Simulink模型。
I am trying to export a Simulink model of tutorial_matsim_start_spr_dmp_01.mdl using the rtwbuildmatsim script.
之前在Simulink的Simulation菜单下的Model Configuration Parameters中选择的导出的目标文件类型为matsim.tlc。
The export target file type selected in Model Configuration Parameters under the Simulation menu of Simulink is matsim.tlc.
在执行脚本的过程中,发生了报错:unable to locate template makefile: matsim_lcc64.tmf
An error occurred while executing the script: unable to locate template makefile: matsim_lcc64.tmf
我从报错上判断问题就是MATLAB没有找到模板文件matsim_lcc64.tmf。然而我搜索了MATLAB的所有文件均未找到该模板文件。我搜索过该文件的版本包括MATLAB 2021b\20219b\2015a。我选择的编译器为MinGW 6.3。
I judged from the error that the problem was that MATLAB did not find the template file matsim_lcc64.tmf. However, I searched all the files in MATLAB and could not find the template file. I have searched for versions of this file including MATLAB 2021b\20219b\2015a. The compiler I chose is MinGW 6.3.
感谢您的帮助!
Thank you for your help!
附:报错全部内容:
Attached: All contents of the error:
### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: E:\FILE\tutorial_matsim_I\simulink_model\tutorial_matsim_start_spr_dmp_01_sfcn_rtw 警告: Model 'tutorial_matsim_start_spr_dmp_01' is using a default value of 0.2 for maximum step size. You can disable this diagnostic by setting Automatic solver parameter selection to 'none' ### Invoking Target Language Compiler on tutorial_matsim_start_spr_dmp_01.rtw ### Using System Target File: E:\SOFT\MATLAB\R2019b\rtw\c\rtwsfcn\rtwsfcn.tlc ### Loading TLC function libraries .... ### Initial pass through model to cache user defined code . ### Caching model source code ...................... ### Writing header file tutorial_matsim_start_spr_dmp_01_sf_types.h ### Writing header file tutorial_matsim_start_spr_dmp_01_sf.h ### Writing header file rtwtypes.h . ### Writing header file multiword_types.h ### Writing source file tutorial_matsim_start_spr_dmp_01_sf.c ### Writing header file tutorial_matsim_start_spr_dmp_01_sf_private.h ### Writing header file tutorial_matsim_start_spr_dmp_01_sid.h ### Writing header file tutorial_matsim_start_spr_dmp_01_mid.h ### Writing source file tutorial_matsim_start_spr_dmp_01_sf_data.c ### Writing header file rtGetNaN.h . ### Writing source file rtGetNaN.c ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c ### Writing header file rt_defines.h ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c . ### TLC code generation complete. ### Using toolchain: MinGW64 | gmake (64-bit Windows) ### Creating 'E:\FILE\tutorial_matsim_I\simulink_model\tutorial_matsim_start_spr_dmp_01_sfcn_rtw\tutorial_matsim_start_spr_dmp_01.mk' ... ### Building 'tutorial_matsim_start_spr_dmp_01_sf': "E:\SOFT\MATLAB\R2019b\bin\win64\gmake" -f tutorial_matsim_start_spr_dmp_01.mk all E:\FILE\tutorial_matsim_I\simulink_model\tutorial_matsim_start_spr_dmp_01_sfcn_rtw>cd . E:\FILE\tutorial_matsim_I\simulink_model\tutorial_matsim_start_spr_dmp_01_sfcn_rtw>if "" == "" ("E:\SOFT\MATLAB\R2019b\bin\win64\gmake" -f tutorial_matsim_start_spr_dmp_01.mk all ) else ("E:\SOFT\MATLAB\R2019b\bin\win64\gmake" -f tutorial_matsim_start_spr_dmp_01.mk ) "### Successfully generated all binary outputs." E:\FILE\tutorial_matsim_I\simulink_model\tutorial_matsim_start_spr_dmp_01_sfcn_rtw>exit 0 mex -f E:\SOFT\MATLAB\R2019b\bin\win64\mexopts\mingw64.xml -R2018a -outdir .. 'CFLAGS=$CFLAGS -Wno-overlength-strings -pedantic -Wno-long-long -Wno-declaration-after-statement -fwrapv' -DMODEL=tutorial_matsim_start_spr_dmp_01 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DTID01EQ=0 -DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 COPTIMFLAGS=-O0 -I.. -I..\tutorial_matsim_start_spr_dmp_01_sfcn_rtw -IE:\SOFT\MATLAB\R2019b\extern\include -IE:\SOFT\MATLAB\R2019b\simulink\include -IE:\SOFT\MATLAB\R2019b\rtw\c\src tutorial_matsim_start_spr_dmp_01_sf.c rtGetInf.c rtGetNaN.c tutorial_matsim_start_spr_dmp_01_sf_data.c -LE:\SOFT\MATLAB\R2019b\extern\lib\win64\mingw64 -lut -lfixedpoint ### Created mex file: ..\tutorial_matsim_start_spr_dmp_01_sf.mexw64 ### Simulink cache artifacts for 'tutorial_matsim_start_spr_dmp_01' were created in 'E:\FILE\tutorial_matsim_I\simulink_model\tutorial_matsim_start_spr_dmp_01.slxc'. 错误使用 getTMF Unable to locate template makefile: matsim_lcc64.tmf 出错 rtwprivate (line 16) [varargout{1:nargout}] = feval(function_name, varargin{1:end}); 出错 coder.internal.getMexCompilerForModel 出错 coder.internal.getMexCompilerForModel 出错 coder.internal.ModelCompInfo/createModelCompInfoPrivate 出错 coder.internal.ModelCompInfo.createModelCompInfo 出错 slbuild_private 出错 sl (line 15) [varargout{1:nargout}]=feval(varargin{:}); 出错 slbuild (line 98) sl('slbuild_private', mdl, target, varargin{2:end}); 出错 rtwbuild (line 235) slbuild(sys, 'StandaloneCoderTarget', ... 出错 rtwbuildmatsim (line 70) rtwbuild(p.Results.model); - Show complete stack trace Displaying stack trace: Error using getTMF • In getTMF • In rtwprivate (line 16) • In coder.internal.getMexCompilerForModel • In coder.internal.getMexCompilerForModel • In coder.internal.ModelCompInfo>ModelCompInfo.createModelCompInfoPrivate • In coder.internal.ModelCompInfo>ModelCompInfo.createModelCompInfo • In slbuild_private • In sl (line 15) • In slbuild (line 98) • In rtwbuild (line 235) • In rtwbuildmatsim (line 70)

Answers (0)

Categories

Products

Asked:

on 1 Feb 2025

Community Treasure Hunt

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

Start Hunting!