Next Tutorial: C++ Get Started
Overview
This tutorial describes how to install Ignition Math on Linux, Mac OS X and Windows via either a binary distribution or from source.
Install
We recommend following the Binary Install instructions to get up and running as quickly and painlessly as possible.
The Source Install instructions should be used if you need the very latest software improvements, you need to modify the code, or you plan to make a contribution.
Binary Install
Ubuntu Linux
Setup your computer to accept software from packages.osrfoundation.org:
Setup keys:
Install Ignition Math:
Be sure to replace <#>
with a number value, such as 1 or 2, depending on which version you need.
Source Install
Source installation can be performed in UNIX systems by first installing the necessary prerequisites followed by building from source.
Prerequisites
The optional Eigen component of Ignition Math requires:
Eigen. Refer to the Eigen Documentation for installation instructions. On Ubuntu systems,
apt-get
can be used to install Eigen:``` sudo apt-get install libeigen3-dev ```
The optional Ruby tests of Ignition Math require:
Ruby. Refer to the Ruby Documentation for installation instructions. On Ubuntu systems
apt-get
can be used to install Ubuntu Packageruby-dev
:``` sudo apt-get install ruby-dev ```
Swig. Refer to the Swig Documentation for installation instructions. On Ubuntu systems
apt-get
can be used to install Swig:``` sudo apt-get install swig ```
Building from source
Clone the repository
``` git clone https://github.com/ignitionrobotics/ign-math -b ign-math<#> ``
Be sure to replace
<#>` with a number value, such as 1 or 2, depending on which version you need.Install dependencies
``` export SYSTEM_VERSION=bionic sudo apt -y install \ $(sort -u $(find . -iname 'packages-'$SYSTEM_VERSION'.apt' -o -iname 'packages.apt') | tr '
' ' ') ```Configure and build
``` cd ign-math; mkdir build; cd build; cmake ..; make ```
Optionally, install Ignition Math
``` sudo make install ```