Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active March 24, 2019 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstellanova/0193676cfc32e8bb48f103de255a3975 to your computer and use it in GitHub Desktop.
Save tstellanova/0193676cfc32e8bb48f103de255a3975 to your computer and use it in GitHub Desktop.
PX4 development environment on OSX

Building PX4/Firmware requires a bunch of tools that aren't actually used for firmware builds. Sigh.

setup path to prefer homebrew-installed packages

vi ~/.bash_profile and add:

# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc

Then:

source ~/.bash_profile 

install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

install brew packages

# install multiple flavors of python 
brew install cmake python python@2
brew cask install java
brew tap PX4/px4
brew install px4-dev

install required python packages

pip install pyserial empy toml numpy pandas jinja2 pyyaml

test your installation with a SITL build:

git submodule init
git submodule update
make px4_sitl none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment