Building the code¶
The linked articles below explain how to setup your build environment on Linux/Ubuntu, MacOS or Windows and then build ArduPilot with waf.
Note
it is possible to use the Custom code build server to generate code with selectable feature sets without creating a code development environment, but code change proposals will require it.
The instructions below assume that you have already installed git, forked and cloned the ArduPilot repo.
Setting up the Build Environment¶
Building / Compiling¶
Linux / MacOSX users:
Linux and MacOSX users should build with waf as described in BUILD.md.
Note
Do not use sudo unless specified in the instructions.
Windows users:
Windows users should follow the WSL setup directions for Windows 10 described in Setting up the Build Environment on Windows 10 using WSL or Setting up the Build Environment on Windows 11 using WSL for Windows 11 systems . This creates a Linux-like environment called WSL/WSL2 from which the user can setup the build environment as explained in Setup the Build Environment on Linux/Ubuntu and then use the instructions in BUILD.md.
Board specific instructions:
Mission Planner¶
Links to other pages of interest or advanced topics¶
- Setup the Build Environment on Linux/Ubuntu
- Setup the Build Environment on Windows
- Setup the waf Build Environment on Windows10 using WSL
- Setup the waf Build Environment on Windows11 using WSL2
- Setup the waf Build Environment on Windows using Cygwin
- Setup Eclipse on Windows for building with waf
- Setup the Build Environment on MacOSX
- Building for NAVIO2 on RPi3
- Building for Erle-Brain 2
- Building for Erle-Brain
- Building for Bebop 2
- Building for Bebop on Linux
- Building for BeagleBone Black
- Building Mission Planner with Visual Studio
- ArduPilot Pre-Built Binaries
- Custom Build Server