For MacOS
Setting up the Build Environment (MacOSX)¶
This article shows how to manually setup a minimal build environment on MacOS (ver 10.6 onwards).
There is a pre-built script at /ardupilot/Tools/environment_install/install-prereqs-mac.sh that will install these pre-requisites.
Setup steps¶
MacOS will alert you when you enter a command in the terminal that requires Xcode Command Line Tools. You can also install Xcode Command Line Tools manually
Install Homebrew for MacOS (Homebrew is a respected package manager for MacOS)
Install the following packages using brew
Install the latest version of awk using brew (make sure /usr/local/bin takes precedence in your path):
Install pip and pyserial using the following commands:
Follow the MAVProxy documentation if you plan to use the simulator.
Now you should be able to build with waf as described in BUILD.md.
Cleaning¶
If there have been updates to some git submodules you may need to do a full clean build. To do that use:
Commands clean and distclean can be used to clean the objects produced by the build. clean keeps the configure information, cleaning only the objects for the current board. distclean cleans everything for every board, including the saved configure information.
Follow the instructions for build .
Last updated