This tutorial describes how to install Ignition Physics on Ubuntu Linux and macOS via either a binary distribution or from source. Support for Windows is coming soon.
Ubuntu
Ignition Physics uses several c++17 features which are not available in the version of gcc supplied with Ubuntu Xenial, so Ubuntu Bionic or later is required.
If you don't already have the lsb-release
package installed, please do so now:
Setup your computer to accept software from packages.osrfoundation.org:
Setup keys:
Install Ignition Physics binaries
Build from source
Run the following to install dependencies
Clone the ign-physics repository from bitbucket
Then build using CMake
macOS
Ignition Physics and several of its dependencies can be installed on macOS with Homebrew using the osrf/simulation tap. Ignition Physics uses several c++17 features which are not available in macOS High Sierra (10.13) and earlier, so macOS Mojave (10.14) with XCode 10.1 are the minimum system requirements.
Install Binaries using Homebrew
Install homebrew, which should also prompt you to install the XCode command-line tools:
Run the following commands:
Build from source using Homebrew
Run the following to install dependencies
Clone the ign-physics repository from bitbucket
Then build using CMake