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 either waf or make.
Setting up the Build Environment¶
Building / Compiling¶
ArduPilot currently supports two build systems, waf and make with waf being the recommended option because it allows building for all boards. In most cases the build dependencies described for waf and make are the same, the only part of the instructions that changes is the build commmand.
Linux / MacOSX users:
- Linux and MacOSX users should build with waf as described in BUILD.md.
Windows users have 3 or 4 options for setting up the build environment. All of the below options will allow building of native (SITL) and Pixhawk-based boards.
- Setup the waf Build Environment on Windows using Cygwin
- Setup the waf Build Environment on Windows10 using WSL
- Setup Eclipse on Windows for building with waf
- Setup the Make Build on Windows (not recommended)
Board specific instructions:
- Deprecated: Building ArduPilot with Arduino for Windows
- Deprecated: Editing & Building with Atmel Studio or Visual Studio
- Deprecated: Building for APM2.x with Make (Win, Mac, Linux)
- Deprecated: APM2.x on MacOS with Arduino
- Deprecated: APM2.x on Linux with Make
- Deprecated: Building for Flymaple on Linux
- Deprecated: Building for Pixhawk on Windows or Linux with QtCreator
- Deprecated: Building for NAVIO+ on RPi2
- Deprecated: Building for Qualcomm Snapdragon