PX4 Toolbox: Error Code generation information file does not exist
32 次查看(过去 30 天)
显示 更早的评论
I'm using Ubuntu 20.04 and I want to perform SITL, but I got this error:
How can I fix this problem?
Top model targets built:
Model Action Rebuild Reason
========================================================================
px4_openloop Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 1m 3.9988s
The PX4 firmware build has failed with following error.
[0/1] Re-running CMake...
-- PX4 version: v1.12.3
-- PX4 config file: /home/matteo/mypx4/Firmware/boards/px4/sitl/default.cmake
-- PX4 config: px4_sitl_default
-- PX4 platform: posix
-- PX4 lockstep: enabled
-- cmake build type: RelWithDebInfo
-- Building for code coverage
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
-- build type is RelWithDebInfo
-- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-591-gb3fed06
-- ROMFS: ROMFS/px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /home/matteo/mypx4/Firmware/build/px4_sitl_default
[1/469] Building C object src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/xcp_ext_mode.c.o
FAILED: src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/xcp_ext_mode.c.o
/usr/bin/ccache /usr/bin/cc -DALLOCATIONFCN=0 -DCLASSIC_INTERFACE=0 -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=1000000 -DEXTMODE_XCP_TRIGGER_SUPPORT -DEXT_MODE=1 -DHAVESTDIO -DHOST_TARGET -DINTEGER_CODE=0 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=160 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=208 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=6 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=15976 -DMAT_FILE=0 -DMODEL=px4_openloop -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODULE_NAME=\"px4_simulink_app\" -DMT=1 -DMULTI_INSTANCE_CODE=0 -DMW_PX4_POSIX_BUILD -DNCSTATES=0 -DNULL=0 -DNUMST=2 -DONESTEPFCN=1 -DON_TARGET_WAIT_FOR_START=1 -DPORTABLE_WORDSIZES -DPX4 -DPX4_MAIN=px4_simulink_app_app_main -DRT -DSTACK_SIZE=64 -DTERMFCN=1 -DTID01EQ=0 -DXCP_CALIBRATION_SUPPORT -DXCP_CUSTOM_PLATFORM -DXCP_DAQ_SUPPORT -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_SET_MTA_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_TIMESTAMP_SUPPORT -D_GNU_LINUX -D__CUSTOM_FILE_IO__ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__linux__ -Dnoreturn_function="__attribute__((noreturn))" -I../../boards/px4/sitl/src -I../../platforms/posix/src/px4/common/include -I. -Isrc/lib -I../../platforms/posix/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/posix/include -Iexternal/Install/include -I../../src/modules/mavlink -I../../mavlink/include/mavlink -I/home/matteo/model -I../../src/modules/px4_simulink_app/validation -I/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include -I../../src/modules/px4_simulink_app/validation/px4_openloop_ert_rtw -I/home/matteo/MATLAB/extern/include -I/home/matteo/MATLAB/simulink/include -I/home/matteo/MATLAB/rtw/c/src -I/home/matteo/MATLAB/rtw/c/src/ext_mode/common -I/home/matteo/MATLAB/rtw/c/ert -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/common -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/default -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src -I/home/matteo/MATLAB/toolbox/coder/rtiostream/src -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fno-common -Wbad-function-cast -Wnested-externs -Wstrict-prototypes -fpermissive -Wno-narrowing -std=gnu11 -MD -MT src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/xcp_ext_mode.c.o -MF src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/xcp_ext_mode.c.o.d -o src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/xcp_ext_mode.c.o -c ../../src/modules/px4_simulink_app/xcp_ext_mode.c
cc1: warning: command line option ‘-fpermissive’ is valid for C++/ObjC++ but not for C
In file included from ../../src/modules/px4_simulink_app/xcp_ext_mode.c:17:
/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_common.h:14:10: fatal error: ext_mode_types.h: No such file or directory
14 | #include "ext_mode_types.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
[2/469] Building CXX object src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/px4_openloop.cpp.o
FAILED: src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/px4_openloop.cpp.o
/usr/bin/ccache /usr/bin/c++ -DALLOCATIONFCN=0 -DCLASSIC_INTERFACE=0 -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=1000000 -DEXTMODE_XCP_TRIGGER_SUPPORT -DEXT_MODE=1 -DHAVESTDIO -DHOST_TARGET -DINTEGER_CODE=0 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=160 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=208 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=6 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=15976 -DMAT_FILE=0 -DMODEL=px4_openloop -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODULE_NAME=\"px4_simulink_app\" -DMT=1 -DMULTI_INSTANCE_CODE=0 -DMW_PX4_POSIX_BUILD -DNCSTATES=0 -DNULL=0 -DNUMST=2 -DONESTEPFCN=1 -DON_TARGET_WAIT_FOR_START=1 -DPORTABLE_WORDSIZES -DPX4 -DPX4_MAIN=px4_simulink_app_app_main -DRT -DSTACK_SIZE=64 -DTERMFCN=1 -DTID01EQ=0 -DXCP_CALIBRATION_SUPPORT -DXCP_CUSTOM_PLATFORM -DXCP_DAQ_SUPPORT -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_SET_MTA_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_TIMESTAMP_SUPPORT -D_GNU_LINUX -D__CUSTOM_FILE_IO__ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__linux__ -Dnoreturn_function="__attribute__((noreturn))" -I../../boards/px4/sitl/src -I../../platforms/posix/src/px4/common/include -I. -Isrc/lib -I../../platforms/posix/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/posix/include -Iexternal/Install/include -I../../src/modules/mavlink -I../../mavlink/include/mavlink -I/home/matteo/model -I../../src/modules/px4_simulink_app/validation -I/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include -I../../src/modules/px4_simulink_app/validation/px4_openloop_ert_rtw -I/home/matteo/MATLAB/extern/include -I/home/matteo/MATLAB/simulink/include -I/home/matteo/MATLAB/rtw/c/src -I/home/matteo/MATLAB/rtw/c/src/ext_mode/common -I/home/matteo/MATLAB/rtw/c/ert -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/common -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/default -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src -I/home/matteo/MATLAB/toolbox/coder/rtiostream/src -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fpermissive -Wno-narrowing -std=gnu++14 -MD -MT src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/px4_openloop.cpp.o -MF src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/px4_openloop.cpp.o.d -o src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/px4_openloop.cpp.o -c ../../src/modules/px4_simulink_app/px4_openloop.cpp
../../src/modules/px4_simulink_app/px4_openloop.cpp:19:10: fatal error: px4_openloop.h: No such file or directory
19 | #include "px4_openloop.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
[3/469] Building CXX object src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Write.cpp.o
FAILED: src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Write.cpp.o
/usr/bin/ccache /usr/bin/c++ -DALLOCATIONFCN=0 -DCLASSIC_INTERFACE=0 -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=1000000 -DEXTMODE_XCP_TRIGGER_SUPPORT -DEXT_MODE=1 -DHAVESTDIO -DHOST_TARGET -DINTEGER_CODE=0 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=160 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=208 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=6 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=15976 -DMAT_FILE=0 -DMODEL=px4_openloop -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODULE_NAME=\"px4_simulink_app\" -DMT=1 -DMULTI_INSTANCE_CODE=0 -DMW_PX4_POSIX_BUILD -DNCSTATES=0 -DNULL=0 -DNUMST=2 -DONESTEPFCN=1 -DON_TARGET_WAIT_FOR_START=1 -DPORTABLE_WORDSIZES -DPX4 -DPX4_MAIN=px4_simulink_app_app_main -DRT -DSTACK_SIZE=64 -DTERMFCN=1 -DTID01EQ=0 -DXCP_CALIBRATION_SUPPORT -DXCP_CUSTOM_PLATFORM -DXCP_DAQ_SUPPORT -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_SET_MTA_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_TIMESTAMP_SUPPORT -D_GNU_LINUX -D__CUSTOM_FILE_IO__ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__linux__ -Dnoreturn_function="__attribute__((noreturn))" -I../../boards/px4/sitl/src -I../../platforms/posix/src/px4/common/include -I. -Isrc/lib -I../../platforms/posix/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/posix/include -Iexternal/Install/include -I../../src/modules/mavlink -I../../mavlink/include/mavlink -I/home/matteo/model -I../../src/modules/px4_simulink_app/validation -I/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include -I../../src/modules/px4_simulink_app/validation/px4_openloop_ert_rtw -I/home/matteo/MATLAB/extern/include -I/home/matteo/MATLAB/simulink/include -I/home/matteo/MATLAB/rtw/c/src -I/home/matteo/MATLAB/rtw/c/src/ext_mode/common -I/home/matteo/MATLAB/rtw/c/ert -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/common -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/default -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src -I/home/matteo/MATLAB/toolbox/coder/rtiostream/src -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fpermissive -Wno-narrowing -std=gnu++14 -MD -MT src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Write.cpp.o -MF src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Write.cpp.o.d -o src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Write.cpp.o -c ../../src/modules/px4_simulink_app/MW_uORB_Write.cpp
In file included from ../../src/modules/px4_simulink_app/MW_uORB_Write.cpp:3:
/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include/nuttxinitialize.h:35:10: fatal error: MW_custom_RTOS_header.h: No such file or directory
35 | #include "MW_custom_RTOS_header.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[4/469] Building CXX object src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/ert_main.cpp.o
FAILED: src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/ert_main.cpp.o
/usr/bin/ccache /usr/bin/c++ -DALLOCATIONFCN=0 -DCLASSIC_INTERFACE=0 -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=1000000 -DEXTMODE_XCP_TRIGGER_SUPPORT -DEXT_MODE=1 -DHAVESTDIO -DHOST_TARGET -DINTEGER_CODE=0 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=160 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=208 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=6 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=15976 -DMAT_FILE=0 -DMODEL=px4_openloop -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODULE_NAME=\"px4_simulink_app\" -DMT=1 -DMULTI_INSTANCE_CODE=0 -DMW_PX4_POSIX_BUILD -DNCSTATES=0 -DNULL=0 -DNUMST=2 -DONESTEPFCN=1 -DON_TARGET_WAIT_FOR_START=1 -DPORTABLE_WORDSIZES -DPX4 -DPX4_MAIN=px4_simulink_app_app_main -DRT -DSTACK_SIZE=64 -DTERMFCN=1 -DTID01EQ=0 -DXCP_CALIBRATION_SUPPORT -DXCP_CUSTOM_PLATFORM -DXCP_DAQ_SUPPORT -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_SET_MTA_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_TIMESTAMP_SUPPORT -D_GNU_LINUX -D__CUSTOM_FILE_IO__ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__linux__ -Dnoreturn_function="__attribute__((noreturn))" -I../../boards/px4/sitl/src -I../../platforms/posix/src/px4/common/include -I. -Isrc/lib -I../../platforms/posix/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/posix/include -Iexternal/Install/include -I../../src/modules/mavlink -I../../mavlink/include/mavlink -I/home/matteo/model -I../../src/modules/px4_simulink_app/validation -I/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include -I../../src/modules/px4_simulink_app/validation/px4_openloop_ert_rtw -I/home/matteo/MATLAB/extern/include -I/home/matteo/MATLAB/simulink/include -I/home/matteo/MATLAB/rtw/c/src -I/home/matteo/MATLAB/rtw/c/src/ext_mode/common -I/home/matteo/MATLAB/rtw/c/ert -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/common -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/default -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src -I/home/matteo/MATLAB/toolbox/coder/rtiostream/src -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fpermissive -Wno-narrowing -std=gnu++14 -MD -MT src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/ert_main.cpp.o -MF src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/ert_main.cpp.o.d -o src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/ert_main.cpp.o -c ../../src/modules/px4_simulink_app/ert_main.cpp
../../src/modules/px4_simulink_app/ert_main.cpp:21:10: fatal error: px4_openloop.h: No such file or directory
21 | #include "px4_openloop.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
[5/469] Building CXX object src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_PX4_PWM.cpp.o
FAILED: src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_PX4_PWM.cpp.o
/usr/bin/ccache /usr/bin/c++ -DALLOCATIONFCN=0 -DCLASSIC_INTERFACE=0 -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=1000000 -DEXTMODE_XCP_TRIGGER_SUPPORT -DEXT_MODE=1 -DHAVESTDIO -DHOST_TARGET -DINTEGER_CODE=0 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=160 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=208 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=6 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=15976 -DMAT_FILE=0 -DMODEL=px4_openloop -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODULE_NAME=\"px4_simulink_app\" -DMT=1 -DMULTI_INSTANCE_CODE=0 -DMW_PX4_POSIX_BUILD -DNCSTATES=0 -DNULL=0 -DNUMST=2 -DONESTEPFCN=1 -DON_TARGET_WAIT_FOR_START=1 -DPORTABLE_WORDSIZES -DPX4 -DPX4_MAIN=px4_simulink_app_app_main -DRT -DSTACK_SIZE=64 -DTERMFCN=1 -DTID01EQ=0 -DXCP_CALIBRATION_SUPPORT -DXCP_CUSTOM_PLATFORM -DXCP_DAQ_SUPPORT -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_SET_MTA_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_TIMESTAMP_SUPPORT -D_GNU_LINUX -D__CUSTOM_FILE_IO__ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__linux__ -Dnoreturn_function="__attribute__((noreturn))" -I../../boards/px4/sitl/src -I../../platforms/posix/src/px4/common/include -I. -Isrc/lib -I../../platforms/posix/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/posix/include -Iexternal/Install/include -I../../src/modules/mavlink -I../../mavlink/include/mavlink -I/home/matteo/model -I../../src/modules/px4_simulink_app/validation -I/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include -I../../src/modules/px4_simulink_app/validation/px4_openloop_ert_rtw -I/home/matteo/MATLAB/extern/include -I/home/matteo/MATLAB/simulink/include -I/home/matteo/MATLAB/rtw/c/src -I/home/matteo/MATLAB/rtw/c/src/ext_mode/common -I/home/matteo/MATLAB/rtw/c/ert -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/common -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/default -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src -I/home/matteo/MATLAB/toolbox/coder/rtiostream/src -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fpermissive -Wno-narrowing -std=gnu++14 -MD -MT src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_PX4_PWM.cpp.o -MF src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_PX4_PWM.cpp.o.d -o src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_PX4_PWM.cpp.o -c ../../src/modules/px4_simulink_app/MW_PX4_PWM.cpp
In file included from ../../src/modules/px4_simulink_app/MW_PX4_PWM.cpp:3:
/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include/nuttxinitialize.h:35:10: fatal error: MW_custom_RTOS_header.h: No such file or directory
35 | #include "MW_custom_RTOS_header.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[6/469] Building CXX object src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Read.cpp.o
FAILED: src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Read.cpp.o
/usr/bin/ccache /usr/bin/c++ -DALLOCATIONFCN=0 -DCLASSIC_INTERFACE=0 -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=1000000 -DEXTMODE_XCP_TRIGGER_SUPPORT -DEXT_MODE=1 -DHAVESTDIO -DHOST_TARGET -DINTEGER_CODE=0 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=160 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=5 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=208 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=6 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=15976 -DMAT_FILE=0 -DMODEL=px4_openloop -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODULE_NAME=\"px4_simulink_app\" -DMT=1 -DMULTI_INSTANCE_CODE=0 -DMW_PX4_POSIX_BUILD -DNCSTATES=0 -DNULL=0 -DNUMST=2 -DONESTEPFCN=1 -DON_TARGET_WAIT_FOR_START=1 -DPORTABLE_WORDSIZES -DPX4 -DPX4_MAIN=px4_simulink_app_app_main -DRT -DSTACK_SIZE=64 -DTERMFCN=1 -DTID01EQ=0 -DXCP_CALIBRATION_SUPPORT -DXCP_CUSTOM_PLATFORM -DXCP_DAQ_SUPPORT -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_SET_MTA_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_TIMESTAMP_SUPPORT -D_GNU_LINUX -D__CUSTOM_FILE_IO__ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__linux__ -Dnoreturn_function="__attribute__((noreturn))" -I../../boards/px4/sitl/src -I../../platforms/posix/src/px4/common/include -I. -Isrc/lib -I../../platforms/posix/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/posix/include -Iexternal/Install/include -I../../src/modules/mavlink -I../../mavlink/include/mavlink -I/home/matteo/model -I../../src/modules/px4_simulink_app/validation -I/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include -I../../src/modules/px4_simulink_app/validation/px4_openloop_ert_rtw -I/home/matteo/MATLAB/extern/include -I/home/matteo/MATLAB/simulink/include -I/home/matteo/MATLAB/rtw/c/src -I/home/matteo/MATLAB/rtw/c/src/ext_mode/common -I/home/matteo/MATLAB/rtw/c/ert -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/common -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/protocol/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/transport/src -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/slave/platform/default -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/include -I/home/matteo/MATLAB/toolbox/coder/xcp/src/target/ext_mode/src -I/home/matteo/MATLAB/toolbox/coder/rtiostream/src -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fpermissive -Wno-narrowing -std=gnu++14 -MD -MT src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Read.cpp.o -MF src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Read.cpp.o.d -o src/modules/px4_simulink_app/CMakeFiles/modules__px4_simulink_app.dir/MW_uORB_Read.cpp.o -c ../../src/modules/px4_simulink_app/MW_uORB_Read.cpp
In file included from ../../src/modules/px4_simulink_app/MW_uORB_Read.cpp:3:
/home/matteo/Documents/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/px4/include/nuttxinitialize.h:35:10: fatal error: MW_custom_RTOS_header.h: No such file or directory
35 | #include "MW_custom_RTOS_header.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
make: *** [Makefile:226: px4_sitl_default] Error 1
0 个评论
采纳的回答
Sugandhi
2023-6-7
编辑:Sugandhi
2023-6-7
Hi,
I understand that you are receiving error while performing SITL using PX4 toolbox in Ubuntu 20.04.
The error message indicates that the compilation of the PX4 firmware has failed due to a missing file: `ext_mode_types.h`. This file is likely required by the code you are trying to compile.
To fix this problem, possible workaround is:
1. Make sure you have all the necessary dependencies installed. PX4 requires several dependencies to build successfully. You can install them by following the instructions provided in the PX4 documentation.
2. Check if the missing file `ext_mode_types.h` is present in your system. If you have obtained the PX4 firmware from a repository or downloaded it manually, ensure that all the required files are present. If the file is missing, you may need to download the complete firmware package again.
3. If you have made any modifications or customizations to the PX4 firmware, ensure that the modifications are correct and do not introduce any missing dependencies or files.
4. Try cleaning the build directory and rebuilding the firmware. Run the following commands from the PX4 firmware root directory:
rm -rf build
make clean
make
This will remove any previously built artifacts and perform a clean build of the firmware.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!