diff --git a/tutorials/installation.md b/tutorials/installation.md index 323638601..6eab5e021 100644 --- a/tutorials/installation.md +++ b/tutorials/installation.md @@ -32,6 +32,22 @@ sudo apt install libignition-math<#>-dev Be sure to replace `<#>` with a number value, such as 1 or 2, depending on which version you need. +### macOS + +On macOS, add OSRF packages: + ``` + ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + brew tap osrf/simulation + ``` + +Install Ignition Math: + ``` + brew install ignition-math<#> + ``` + +Be sure to replace `<#>` with a number value, such as 1 or 2, depending on +which version you need. + ## Windows Install [Conda package management system](https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html). @@ -126,6 +142,36 @@ The optional Eigen component of Ignition Math requires: sudo make install ``` +### macOS + +1. 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. + +2. Install dependencies + ``` + brew install --only-dependencies ignition-math<#> + ``` + Be sure to replace `<#>` with a number value, such as 1 or 2, depending on + which version you need. + +3. Configure and build + ``` + cd ign-math + mkdir build + cd build + cmake .. + make + ``` + +4. Optionally, install + ``` + sudo make install + ``` + ### Windows 1. Navigate to `condabin` if necessary to use the `conda` command (i.e., if Conda is not in your `PATH` environment variable. You can find the location of `condabin` in Anaconda Prompt, `where conda`). @@ -229,4 +275,3 @@ The interfaces and Ruby test codes are in the `src` folder. To use a C++ class i ``` ctest -R Ruby_TEST.rb ``` -