Skip to content

Instantly share code, notes, and snippets.

@stela
Last active July 12, 2022 04:13
Show Gist options
  • Save stela/aba2fbd1d4adc8aa922af29c057f7b86 to your computer and use it in GitHub Desktop.
Save stela/aba2fbd1d4adc8aa922af29c057f7b86 to your computer and use it in GitHub Desktop.
A step by step installation of ROS Kinetic on macOS 10.13.4 High Sierra
# A step by step installation of ROS Kinetic on macOS 10.13.4 High Sierra
# Similar in spirit to https://gist.github.com/lubiluk/361a018b267ca4e3ce10cdc68b17363d but for Kinetic and High Sierra.
#
# Assumptions:
# You already installed:
# homebrew
# XCode 9.3 (or in case you want to build CUDA, use CUDA 9.1 with XCode 9.2)
# Remove any anaconda, conda or similar from your path
# You're not afraid of the command line and can deal with potentially incomplete instructions like this file
#
# This file is meant to be used together with http://wiki.ros.org/kinetic/Installation/OSX/Homebrew/Source
# Follow the above instructions until you get stuck with a failing build.
# First install some dependencies up-front, avoids some trial and error restarting the build
brew install boost@1.60
brew install jq cmake python poco eigen qt qt5 sip tinyxml tinyxml2 webp libpng assimp qhull
brew install pyqt5 --with-python
brew install gtest lz4 log4cxx
# And maybe these?
brew install urdfdom console_bridge
pip install -U pip setuptools wstool rosdep rosinstall rosinstall_generator rospkg catkin-pkg Distribute sphinx empy
# Edit src/geometry2/tf2/src/buffer_core.cpp and remove/comment out all log-entries (not in include files)
# Assuming you're using a modern boost library, tr1 include files will be missing in src/rospack, replace usages of boost::tr1, see example at http://thispointer.com/c-11-unordered_set-basic-usage-example/ for the modern non-boost-tr1-wrapper approch.
# Then build ROS:
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DCATKIN_ENABLE_TESTING=OFF
# Eventually I only got it to build 124 out of 191 packages, src/geometry2/tf2 failed, so your mileage may vary...
# Since the above is probably too much work and might still fail, try a Docker or Linux-based ROS instead :-)
# See http://wiki.ros.org/ROS/Installation for alternatives when the above fails
@Tobias-Fischer
Copy link

There is now an easy way of installing ROS on OSX using conda: conda install ros-noetic-desktop -c robostack. More info on https://medium.com/robostack/cross-platform-conda-packages-for-ros-fa1974fd1de3 and https://github.com/RoboStack/ros-noetic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment