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 especially for Linux/Ubuntu and MacOS users. 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 options for setting up the build environment. All of the below options will allow building of native (SITL) and Pixhawk-based boards.
- Building for Pixhawk on Windows with Make and Eclipse
- Setup the Build Environment on Windows10 using WSL
- Setup the Build Environment on Windows using Cygwin
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