- 积分
- 8
- 注册时间
- 2018-3-6
- 最后登录
- 1970-1-1
|
操作系统: Microsoft Windows 10 专业版 Version 10.0 (Build 16299)
MATLAB 版本: 9.2.0.538062 (R2017a)
VS版本:2012PRO
AMESim:R15
用户变量和系统变量均按教程已经设置好
我想做sl2amecosim,按照help文档里的说明,需先对simulink模块进行编译然后再amesim里进行submodel建立,但是matlab在编译时出现如下错误:
gain.mk(141) : fatal error U1052: 未找到文件“\rtw\c\tools\vctools.mak”
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
不知道有没有大神知道是什么原因啊{:9_221:}
整个编译过程如下:
sl2amecosim('gain','G:\AMEsim\Cosim_test','auto')
Using version 2.0 of SL2AMECOSIM.
====> STARTING SL2AMECOSIM CODE GENERATION FOR MODEL GAIN...
====> Step #1: Checking system and model...
====> Step #2: Generating code & building OBJ file
### Starting build procedure for model: gain
### Generating code into build folder: G:\AMEsim\Cosim_test\gain_grt_rtw
警告: Root level output logging in 'Dataset' format is not supported in this simulation or code generation mode for model
'gain'. No data will be logged. To log root level output data, set ''Configuration Parameters > Data Import/Export > Format''
parameter to 'Array', 'Structure', or 'Structure with time'.
### Invoking Target Language Compiler on gain.rtw
### Using System Target File: D:\Program Files\MATLAB\R2017a\rtw\c\grt\grt.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
.
### Caching model source code
......
### Generating TLC interface API.
...
### Writing source file gain_capi.c
.
### Writing header file gain_capi.h
....................
### Writing header file gain.h
.
### Writing header file gain_types.h
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h
### Writing header file multiword_types.h
### Writing source file gain.c
### Writing header file gain_private.h
.
### Writing header file rtmodel.h
### Writing source file gain_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
.
### TLC code generation complete.
.
### Processing Template Makefile: D:\Program Files (x86)\LMS\LMS Imagine.Lab\v1500\Amesim\interfaces\sl2ame\ame_cosim_dll_grt_2012b_vc.tmf
### gain.mk which is generated from D:\Program Files (x86)\LMS\LMS Imagine.Lab\v1500\Amesim\interfaces\sl2ame\ame_cosim_dll_grt_2012b_vc.tmf is up to date
### Building gain: .\gain.bat
G:\AMEsim\Cosim_test\gain_grt_rtw>call "D:\Program Files\Microsoft Visual Studio 11.0\VC\VCVARSALL.BAT" amd64
Microsoft (R) 程序维护实用工具 11.00.50727.1 版
版权所有 (C) Microsoft Corporation。保留所有权利。
gain.mk(141) : fatal error U1052: 未找到文件“\rtw\c\tools\vctools.mak”
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
### Creating HTML report file gain_codegen_rpt.html
### Build procedure for model: 'gain' aborted due to an error.
====> Step #3: Restoring initial model configuration
错误使用 RTW/genMakefileAndBuild>invokeTMF
Error(s) encountered while building "gain"
出错 RTW/genMakefileAndBuild>locGenMakefileAndBuild
出错 RTW/genMakefileAndBuild
出错 RTW/genMakefileAndBuildWrapper
出错 coder.internal.compileStage
出错 coder.internal.ModelBuilder/buildProcedure (line 918)
compileResult = coder.internal.compileStage...
出错 coder.internal.ModelBuilder/make_rtw (line 176)
buildResult = buildProcedure(obj, h, modelName, cs, isSimBuild, lReportInfo);
出错 coder.internal.ModelCodegenMgr/make_rtw (line 8)
buildResult = obj.make_rtw(varargin);
出错 make_rtw (line 18)
buildResult = h.make_rtw(varargin{:});
出错 build_target
出错 build_target
出错 build_standalone_rtw_target
出错 slbuild_private
出错 slbuild_private
出错 sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
出错 slbuild (line 61)
sl('slbuild_private', mdl, varargin{:});
出错 rtwbuild (line 203)
slbuild(sys, 'StandaloneRTWTarget', ...
出错 new_sl2amecosim (line 227)
rtwbuild(model);
出错 sl2amecosim (line 61)
new_sl2amecosim(model,lib,icon,codegenoptions,debug);
原因:
SL2AMECOSIM cannot build model.
|
|