Cxx AP_Logger__Backend,cpp -> AP Logger_Backend.cpp.3.o

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”

Can somebody help me to solve this problem?
Wish U have a great day~

Hello,

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

Thank you very much, Khancyr~
The instructions I follow is a old one made a few years old (maybe in 2018 ?)

So ,I will try to use Ubuntu 22.04
wish you have a lovely day! :grin:

Recommend WSL, per the current instructions.

Virtualbox will not make things easier.

I have sovle this problem by update Ubuntu system~
BTW, thx u for your reply~

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

Thank you in advance

unless you want to use an old version, there is no point using 18.04 as builder.
best update you system if you can or use a docker builder

1 Like

I ended up upgrading to 20.04 which fixed the issue. It’s a shame since I’ve been using 18.04 for a while.