Hi everyone~
I am a starter of ArduPilot,
and I set up the environment of ArduPilot on my Ubuntu18.04 system in a win computer’s Virtual.
the follow build failed came out when I executed a initialization command: “sim_vehicle.py -w”
What instructions did you follow? Ubuntu 18.04 is deprecated.
You should use Ubuntu 22.04 that is the latest LTS to date unless you have good reason to keep a lower version.
The error you are seeing is because the compiler on 18.04 is too old
Isn’t there any way of getting it to run on 18.04.
I get the following whenever m trying to run sim_vehicle.py or ./waf :
…/…/libraries/AP_Logger/AP_Logger_Backend.cpp: In member function ‘bool AP_Logger_Backend::Write_VER()’:
…/…/libraries/AP_Logger/AP_Logger_Backend.cpp:579:5: sorry, unimplemented: non-trivial designated initializers not supported
};
^
compilation terminated due to -Wfatal-errors.
Waf: Leaving directory `/home/sk/ardupilot/build/sitl’
Build failed
→ task in ‘objs/AP_Logger/Rover’ failed (exit status 1):
{task 140371617400088: cxx AP_Logger_Backend.cpp → AP_Logger_Backend.cpp.7.o}
(run with -v to display more information)
SIM_VEHICLE: Build failed