Hi Guys.
I forked ardupilot with my own rep. I just updated it the last source code from the official one.
However, when I run sim_vehicle.py -w to test, I meet the following building errors,
Does anyone know how to solve it?
[ 8/1193] Compiling libraries/AC_AttitudeControl/AC_PosControl_Logging.cpp
[ 9/1193] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_Multi_6DoF.cpp
[ 10/1193] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_Heli.cpp
[ 11/1193] Compiling libraries/AC_AttitudeControl/AC_CommandModel.cpp
[ 12/1193] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_TS.cpp
[ 13/1193] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.cpp
[ 14/1193] Compiling libraries/AC_AttitudeControl/ControlMonitor.cpp
[ 15/1193] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_Sub.cpp
[ 16/1193] Compiling libraries/AC_AutoTune/AC_AutoTune_Multi.cpp
[ 17/1193] Compiling libraries/AC_AutoTune/AC_AutoTune_Heli.cpp
[ 18/1193] Compiling libraries/AC_AutoTune/AC_AutoTune_FreqResp.cpp
[ 19/1193] Compiling libraries/AC_Autorotation/AC_Autorotation.cpp
[ 20/1193] Compiling libraries/AC_Avoidance/AP_OAVisGraph.cpp
[ 21/1193] Compiling libraries/AC_Avoidance/AC_Avoidance_Logging.cpp
[ 22/1193] Compiling libraries/AC_Avoidance/AP_OADijkstra.cpp
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Multi_6DoF.h:4,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Multi_6DoF.cpp:5:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Heli.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Heli.cpp:1:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_InertialNav/AP_InertialNav.h:8,
from ../../libraries/AC_AttitudeControl/AC_PosControl.h:13,
from ../../libraries/AC_AttitudeControl/AC_PosControl_Logging.cpp:5:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_Avoidance/AC_Avoid.h:10,
from ../../libraries/AC_Avoidance/AC_Avoidance_Logging.cpp:5:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AttitudeControl/ControlMonitor.cpp:1:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.cpp:1:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Sub.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Sub.cpp:1:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_TS.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_TS.cpp:20:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_NavEKF2/LogStructure.h:4,
from ../../libraries/AP_Logger/LogStructure.h:127,
from ../../libraries/AP_Logger/AP_Logger.h:14,
from ../../libraries/AC_Autorotation/AC_Autorotation.cpp:2:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AutoTune/AC_AutoTune.h:25,
from ../../libraries/AC_AutoTune/AC_AutoTune_Multi.h:26,
from ../../libraries/AC_AutoTune/AC_AutoTune_Multi.cpp:5:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AP_AHRS/AP_AHRS_View.h:23,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:9,
from ../../libraries/AC_AutoTune/AC_AutoTune.h:25,
from ../../libraries/AC_AutoTune/AC_AutoTune_Heli.h:25,
from ../../libraries/AC_AutoTune/AC_AutoTune_Heli.cpp:24:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_AHRS/AP_AHRS_SIM.h:30,
from ../../libraries/AP_AHRS/AP_AHRS.h:34,
from ../../libraries/AC_Avoidance/AP_OADijkstra.cpp:27:
../../libraries/GCS_MAVLink/GCS.h:328:13: error: ‘MISSION_STATE’ does not name a type
328 | virtual MISSION_STATE mission_state(const class AP_Mission &mission) const;
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
Waf: Leaving directory `/home/robot/RobotFirmware/ardupilot/build/sitl'
Build failed
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758080480: cxx AC_AttitudeControl_Multi_6DoF.cpp -> AC_AttitudeControl_Multi_6DoF.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758080256: cxx AC_AttitudeControl_Heli.cpp -> AC_AttitudeControl_Heli.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758080928: cxx AC_PosControl_Logging.cpp -> AC_PosControl_Logging.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_Avoidance' failed (exit status 1):
{task 139927759029184: cxx AC_Avoidance_Logging.cpp -> AC_Avoidance_Logging.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758081040: cxx ControlMonitor.cpp -> ControlMonitor.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758080368: cxx AC_AttitudeControl_Multi.cpp -> AC_AttitudeControl_Multi.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758080592: cxx AC_AttitudeControl_Sub.cpp -> AC_AttitudeControl_Sub.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AttitudeControl' failed (exit status 1):
{task 139927758080704: cxx AC_AttitudeControl_TS.cpp -> AC_AttitudeControl_TS.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_Autorotation' failed (exit status 1):
{task 139927758148656: cxx AC_Autorotation.cpp -> AC_Autorotation.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AutoTune' failed (exit status 1):
{task 139927759134896: cxx AC_AutoTune_Multi.cpp -> AC_AutoTune_Multi.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_AutoTune' failed (exit status 1):
{task 139927759134784: cxx AC_AutoTune_Heli.cpp -> AC_AutoTune_Heli.cpp.0.o}
(run with -v to display more information)
-> task in 'objs/AC_Avoidance' failed (exit status 1):
{task 139927759029296: cxx AP_OADijkstra.cpp -> AP_OADijkstra.cpp.0.o}
(run with -v to display more information)