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
Board specific instructions: