From ce520dcf06268ef9328724aa0c5b652ede42aab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Wed, 6 Oct 2021 18:57:11 +0200 Subject: [PATCH] Added macos instructions (#448) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added macos instructions Signed-off-by: Alejandro Hernández * Fix Signed-off-by: Alejandro Hernández Co-authored-by: Ian Chen --- tutorials/02_install.md | 49 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/tutorials/02_install.md b/tutorials/02_install.md index 9fc5fbf7e..ac799ed39 100644 --- a/tutorials/02_install.md +++ b/tutorials/02_install.md @@ -196,6 +196,54 @@ This assumes you have created and activated a Conda environment while installing cmake --install . --config Release ``` +# macOS + +## Binary Installation + +On macOS, add OSRF packages: + ``` + ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + brew tap osrf/simulation + ``` + +Install Ignition Rendering: + ``` + brew install ignition-rendering<#> + ``` + +Be sure to replace `<#>` with a number value, such as 5 or 6, depending on +which version you need. + +## Source Installation + +1. Clone the repository + ``` + git clone https://github.com/ignitionrobotics/ign-rendering -b ign-rendering<#> + ``` + Be sure to replace `<#>` with a number value, such as 5 or 6, depending on + which version you need. + +2. Install dependencies + ``` + brew install --only-dependencies ignition-rendering<#> + ``` + Be sure to replace `<#>` with a number value, such as 5 or 6, depending on + which version you need. + +3. Configure and build + ``` + cd ign-rendering + mkdir build + cd build + cmake .. + make + ``` + +4. Optionally, install + ``` + sudo make install + ``` + # Documentation API documentation can be generated using Doxygen @@ -226,4 +274,3 @@ To run tests specific to a render engine, set the `RENDER_ENGINE_VALUES` environ ``` RENDER_ENGINE_VALUES=ogre2 make test ``` -