matlab2013a code generation issues
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Jed Frey
am 2 Mai 2017
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 Kommentar
Jed Frey
am 9 Mai 2017
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.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!