Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Problem with compiling a simulink project

1 vue (au cours des 30 derniers jours)
Patrick FOURNIER
Patrick FOURNIER le 13 Juin 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi,
Trying to compile a simulink project I get this message :
search
ROBOT_2WD_adafruit
Build
3 1
Clear
09:26 PM Elapsed: 51 sec
Build
4 2
Clear
09:33 PM Elapsed: 1:21 min
### Starting build procedure for model: ROBOT_2WD_adafruit ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
2 1
Elapsed: 1:17 min
### Generating code into build folder: C:\Users\user\Documents\MATLAB\ROBOT_2WD_adafruit_grt_rtw ### Generating code for Physical Networks associated with solver block 'ROBOT_2WD_adafruit/Solver Configuration' ... done. ### Invoking Target Language Compiler on ROBOT_2WD_adafruit.rtw ### Using System Target File: C:\Program Files\MATLAB\R2018a\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 ROBOT_2WD_adafruit_types.h ### Writing header file ROBOT_2WD_adafruit.h ### Writing header file rtwtypes.h ### Writing header file builtin_typeid_types.h ### Writing header file multiword_types.h ### Writing source file ROBOT_2WD_adafruit.cpp ### Writing header file ROBOT_2WD_adafruit_private.h . ### Writing header file rtmodel.h ### Writing source file ROBOT_2WD_adafruit_data.cpp ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.cpp ### Writing header file rtGetInf.h ### Writing source file rtGetInf.cpp . ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.cpp ### TLC code generation complete. ### Using toolchain: Microsoft Visual C++ 2017 v15.0 | nmake (64-bit Windows) ### 'C:\Users\user\Documents\MATLAB\ROBOT_2WD_adafruit_grt_rtw\ROBOT_2WD_adafruit.mk' is up to date ### Building 'ROBOT_2WD_adafruit': nmake -f ROBOT_2WD_adafruit.mk all C:\Users\user\Documents\MATLAB\ROBOT_2WD_adafruit_grt_rtw>set "VSCMD_START_DIR=C:\Users\user\Documents\MATLAB\ROBOT_2WD_adafruit_grt_rtw" C:\Users\user\Documents\MATLAB\ROBOT_2WD_adafruit_grt_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\..\..\VC\Auxiliary\Build\VCVARSALL.BAT" AMD64 ********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.9.12 ** Copyright (c) 2017 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64' Microsoft (R) Program Maintenance Utility Version 14.16.27031.1 Copyright (C) Microsoft Corporation. Tous droits rÚservÚs. cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 -W4 -D_WINNT -D_WIN32_WINNT=0x0502 -DNTDDI_VERSION=0x05020000 -D_WIN32_IE=0x0600 -DWINVER=0x0502 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMAT_FILE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DMODEL=ROBOT_2WD_adafruit -DNUMST=2 -DNCSTATES=7 -DHAVESTDIO -DRT -DUSE_RTMODEL -Fo"ROBOT_2WD_adafruit_3c43ad1f_1_ds.obj" "C:\Users\user\Documents\MATLAB\ROBOT_2WD_adafruit_grt_rtw\ROBOT_2WD_adafruit_3c43ad1f_1_ds.c" ROBOT_2WD_adafruit_3c43ad1f_1_ds.c
C:\PROGRA~1\MATLAB\R2018a\extern\include\tmwtypes.h(788): fatal error C1083: Impossible d'ouvrir le fichier include : 'stddef.h' : No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.EXE"'á: code retour '0x2' Stop. The make command returned an error of 2 '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: 'ROBOT_2WD_adafruit' aborted due to an error.
Error(s) encountered while building "ROBOT_2WD_adafruit": ### Failed to generate all binary outputs.
Component:Simulink | Category:Block diagram error

Réponses (0)

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!