matlab2013a code generation issues

2 ビュー (過去 30 日間)
liu
liu 2013 年 7 月 24 日
コメント済み: Jed Frey 2017 年 5 月 9 日
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.

回答 (1 件)

Jed Frey
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
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!

Translated by