matlab2013a code generation issues
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone
I am trying to compile a MATLAB function into a "dll" file. But it is failed to build.The reports suggests that the c + + compiler is not installed. But I have installed, and also restarted matlab.I've run mex-setup to choose the Microsoft Visual C + + 2010. Operation System is 64 win7 home edition. Next,I validate the toolchain, and the report follows:
"Validation Report for: Microsoft Visual C + + 2010 v10.0 | nmake (64-bit Windows)
Toolchain Validation Result: Failed
Validation report:
Toolchain is not installed. "
Can someone give an explanation? Now I completely collapsed, several versions VS have been installed , matlab also re-installed.
0 个评论
回答(1 个)
Jed Frey
2017-5-2
I'm having the same issue when the build is called with rtwbuild/slbuild.
R2015b on Windows 10.
Even when the Toolchain is explicitly specified in Simulink options it fails.
The stack printout from make_exception.mat shows it trying to call 'setup_for_lcc':
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\setup_for_lcc.m
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\private\wrap_make_cmd.p
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\private\wrap_make_cmd.p
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\rtwprivate.m
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\@RTW\genMakefileAndBuild.p
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\@RTW\genMakefileAndBuild.p
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\@RTW\genMakefileAndBuild.p
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\@RTW\genMakefileAndBuildWrapper.p
C:\Program Files\MATLAB\R2015b\toolbox\coder\simulinkcoder_core\+coder\+internal\runCompile.p
C:\Program Files\MATLAB\R2015b\toolbox\coder\simulinkcoder_core\+coder\+internal\ModelBuilder.m
C:\Program Files\MATLAB\R2015b\toolbox\coder\simulinkcoder_core\+coder\+internal\@ModelCodegenMgr\make_rtw.m
C:\Program Files\MATLAB\R2015b\toolbox\rtw\rtw\make_rtw.m
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\private\build_target.p
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\private\build_target.p
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\private\build_standalone_rtw_target.p
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\private\slbuild_private.p
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\private\slbuild_private.p
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\sl.m
C:\Program Files\MATLAB\R2015b\toolbox\simulink\simulink\slbuild.m
1 个评论
Jed Frey
2017-5-9
After talking with Mathworks support this is due to COMPILER_TOOL_CHAIN not being specified in the .TMF.
It seems hit or miss if Matlab complains about it. Some of our engineers have had no problem others can't get past this error.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!