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