Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MACOS install instructions #252

Merged
merged 2 commits into from
Sep 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 46 additions & 1 deletion tutorials/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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`).
Expand Down Expand Up @@ -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
```