Until now I did my building with a Debian bullseye 11 VM
- setup
~$ sudo apt-get install git gitk git-gui
~$ sudo apt install python3-dev python3-pip python3-setuptools python3-numpy python3-pyparsing python3-psutil python-is-python3 gcc-arm-none-eabi rsync
~/ardupilot$ python -m pip install empy pexpect future
- building different AP versions (checked up to AP 4.4.4)
~$ git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git
~$ cd ardupilot
~/ardupilot$ git checkout tags/Plane-4.3.1
~/ardupilot$ git submodule update --init --recursive
~/ardupilot$ ./waf configure --board revo-mini
~/ardupilot$ ./waf plane
Works fine, but not with master (AP 4.6.0)
I get this here
ChibiOS build requires g++ version 10.2.1 or later, found 8.3.1
Found Cannot build ardupilot on MacOS
but not very helpful. g++ 12.2.1-6 is installed here too.
Now I learned (with the help from Yuri_Rage) that I also can build in a Debian bookworm 12 VM
- setup (my notes)
~$ sudo apt install git
~$ git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git
~$ cd ardupilot
~/ardupilot$ ./Tools/environment_install/install-prereqs-ubuntu.sh
~/ardupilot$ source ~/.profile
~/ardupilot$ ./waf configure --board revo-mini
~/ardupilot$ ./waf plane
## AFTER REBOOT - LOGOUT/LOGIN ##
~$ cd ardupilot
~/ardupilot$ ./waf distclean
~/ardupilot$ source ~/.profile
~/ardupilot$ ./waf configure --board KakuteF7Mini
~/ardupilot$ ./waf plane
Works like a charm, but what with building older versions?
Tried those 2 command
~/ardupilot$ git checkout tags/Plane-4.3.1
~/ardupilot$ git submodule update --init --recursive
but then there is the problem with
./Tools/environment_install/install-prereqs-ubuntu.sh
as that 4.3.1 version does not match the 4.6.0 version …
Could someone here please enlighten me!
br KH