To build for an autopilot target on Linux you need the following tools and git repositories:
The gcc-arm cross-compiler from here (ArduPilot is only built and tested on these specific versions of gcc-arm; if installed with apt-get gcc-arm will not produce a working binary in many cases)
is this still a valid arguement or this fact changed with time?
any detailed steps on how to install the cross compiler ? I followed the simple steps on the website but compiling didn’t succeed when I run ( make obal )
the instruction for the toolchain on the wiki are for STM target. For Obal that use a RPI, the default rpi toolchain should be enough. We probably don’t install the 64bit toolchain for now, but you can install it manually .
From looking rapidly to the code, Obal default to arm-linux-gnueabihf that is 32bit toolchain, so you will need to pass manually the aarch64 toolchain on waf cmdline
$ make obal
Setting top to : /apps/ardupilot
Setting out to : /apps/ardupilot/build
Autoconfiguration : enabled
Checking for program 'python' : /usr/bin/python
Checking for python version >= 3.6.9 : 3.12.3
Setting board to : obal
Using toolchain : arm-linux-gnueabihf
Could not find the program ['arm-linux-gnueabihf-ar']
(complete log in /apps/ardupilot/build/config.log)
make: *** [Makefile:31: obal] Error 1