Speedgoat ### Failed to generate all binary outputs.

4 vues (au cours des 30 derniers jours)
Corantin MEYER
Corantin MEYER le 15 Juil 2019
I use a speedgoat calculator with a Simulink model and when I want to generate a code it says, error ### Failed to generate all binary outputs.
What i've read in other topics didn't help me much.
here is the script
### Generating code into build folder: C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw
### Invoking Target Language Compiler on SpeedGoat_CAN_Driver_tmp.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016a\rtw\c\grt\grt.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file SpeedGoat_CAN_Driver_tmp.h
### Writing header file SpeedGoat_CAN_Driver_tmp_types.h
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h
.
### Writing header file multiword_types.h
### Writing source file SpeedGoat_CAN_Driver_tmp.c
### Writing header file SpeedGoat_CAN_Driver_tmp_private.h
### Writing header file rtmodel.h
### Writing source file SpeedGoat_CAN_Driver_tmp_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.
### Using toolchain: Microsoft Windows SDK v7.1 | nmake (64-bit Windows)
### 'C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw\SpeedGoat_CAN_Driver_tmp.mk' is up to date
### Building 'SpeedGoat_CAN_Driver_tmp': nmake -f SpeedGoat_CAN_Driver_tmp.mk all
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>call "setup_mssdk71.bat"
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set COMPILER=cl
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set COMPFLAGS=/c /GR /W3 /EHs /nologo /MD -I"C:\Program Files\MATLAB\R2016a\extern\include" -I"C:\Program Files\MATLAB\R2016a\simulink\include" /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /DMATLAB_MEX_FILE
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set OPTIMFLAGS=/O2 /Oy- /DNDEBUG
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set DEBUGFLAGS=/Z7
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set LINKER=link
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set LINKFLAGS=/nologo /manifest /export: /DLL /LIBPATH:"C:\Program Files\MATLAB\R2016a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /EXPORT:mexFunction
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set LINKDEBUGFLAGS=/debug /PDB:".mexw64.pdb"
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set NAME_OUTPUT=/out:""
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set PATH=c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v7.1\\Bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\\Bin;;;C:\Program Files\MATLAB\R2016a\bin\win64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Dell\DW WLAN Card;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\MATLAB\R2016a\bin;C:\Program Files\MATLAB\R2014a\bin;C:\Program Files\MATLAB\R2012a\bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\MATLAB\MATLAB Runtime\v901\runtime\win64
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set INCLUDE=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\\INCLUDE\gl;C:\Program Files\MATLAB\R2016a\extern\include;;
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set LIB=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\\Lib\X64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\AMD64;C:\Program Files\MATLAB\R2016a\lib\win64;C:\Program Files\MATLAB\R2016a\extern\lib\win64;
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>set LIBPATH=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\\LIB\X64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\AMD64;C:\Program Files\MATLAB\R2016a\extern\lib\win64;
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>cd .
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>if "" == "" (nmake -f SpeedGoat_CAN_Driver_tmp.mk all ) else (nmake -f SpeedGoat_CAN_Driver_tmp.mk )
Microsoft (R) Program Maintenance Utility Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -DNTDDI_VERSION=0x05000000 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=SpeedGoat_CAN_Driver_tmp -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -Fo"SpeedGoat_CAN_Driver_tmp.obj" "C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw\SpeedGoat_CAN_Driver_tmp.c"
SpeedGoat_CAN_Driver_tmp.c
c:\users\admin\documents\corantin\speedgoat_can_driver_tmp_grt_rtw\SpeedGoat_CAN_Driver_tmp.h(25) : fatal error C1083: Cannot open include file: 'xpcimports.h': No such file or directory
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64\cl.EXE"' : return code '0x2'
Stop.
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Admin\Documents\Corantin\SpeedGoat_CAN_Driver_tmp_grt_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
### Build procedure for model: 'SpeedGoat_CAN_Driver_tmp' aborted due to an error.
Error(s) encountered while building "SpeedGoat_CAN_Driver_tmp":
### Failed to generate all binary outputs.
Component: Simulink | Category: Model error

Réponses (1)

Dimitri MANKOV
Dimitri MANKOV le 3 Jan 2022
Hi Corantin,
The relevant line in your message is the following:
c:\users\admin\documents\corantin\speedgoat_can_driver_tmp_grt_rtw\SpeedGoat_CAN_Driver_tmp.h(25) : fatal error C1083: Cannot open include file: 'xpcimports.h': No such file or directory
This error message is most likely caused by a wrong configuration of the Code Generation settings in your Simulink model. The system target file must be set to “slrt.tlc” in MATLAB R2020a or earlier / "slrealtime.tlc" in MATLAB R2020b and later. The extension “tlc” stands for Target Language Compiler, which is an integral part of the Simulink Coder™ code generator. By selecting “slrt.tlc” or "slrealtime.tlc", you are instructing Simulink Coder™ to generate C/C++ code that is compatible, customized and optimized for Simulink Real-Time™ (on which Speedgoat products rely).

Catégories

En savoir plus sur Troubleshooting in Simulink Real-Time dans Help Center et File Exchange

Produits


Version

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by