Skip to content

Instantly share code, notes, and snippets.

@mikepurvis
Last active June 20, 2020 17:52
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save mikepurvis/9837958 to your computer and use it in GitHub Desktop.
Save mikepurvis/9837958 to your computer and use it in GitHub Desktop.
ROS Indigo on Mavericks/Yosemite (Homebrew with brewed Python)

ROS on Mac OS X

These instructions have been supplanted by an automated, scripted installer, which lives here:

https://github.com/mikepurvis/ros-install-osx

Please try it out, and file bugs as required. Feel free to browse past versions of this gist as a historical curiosity, but I won't be monitoring or supporting it any more.

@mikepurvis
Copy link
Author

Hi all,

I don't get notifications of new comments on this gist, so I apologize for the non-timely responses. I've reverted the instruction to use Ogre 1.9, as this still seems to cause problems— it's easier still, I think, to stick to Ogre 1.7 and the rviz from ROS Hydro. I'll be switching this guide over to Jade at some point, which I think has a slightly cleaner story for this stuff.

I've also scripted the Python path discovery, so that should be a little more automatic going forward.

@grafoteka
Copy link

Hi all! Finally 2 weeks later, i've successfully installed ROS with RVIZ.

I'm on a mac early 2011 with OS X 10.10.4, I did what @markusachtelik said.
Remove Xcode 6.3 and downgrade to 6.2, then run the script.

Now, my problem is that all the packages are continue in the /src folder, can I move them to any other folder? Because I can be waiting more than 45 minutes every time that I make a new change.

Thank you very much! (:

@ghernati
Copy link

can you help me :

Scanning dependencies of target pointcloud_to_pcd
[ 26%] Building CXX object CMakeFiles/pointcloud_to_pcd.dir/tools/pointcloud_to_pcd.cpp.o
[ 30%] Linking CXX executable /Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/convert_pcd_to_image
[ 30%] Linking CXX executable /Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/pcd_to_pointcloud
ld: library not found for -lvtkRenderingFreeTypeOpenGL
ld: library not found for -lvtkRenderingFreeTypeOpenGL
clangclang: : errorerror: : linker command failed with exit code 1 (use -v to see invocation)linker command failed with exit code 1 (use -v to see invocation)

make[2]: make[2]: * [/Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/convert_pcd_to_image] Error 1* [/Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/pcd_to_pointcloud] Error 1

make[1]: *** [CMakeFiles/pcd_to_pointcloud.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/convert_pcd_to_image.dir/all] Error 2
[ 31%] Linking CXX executable /Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/convert_pointcloud_to_image
ld: library not found for -lvtkRenderingFreeTypeOpenGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/convert_pointcloud_to_image] Error 1
make[1]: *** [CMakeFiles/convert_pointcloud_to_image.dir/all] Error 2
[ 33%] Linking CXX executable /Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/pointcloud_to_pcd
ld: library not found for -lvtkRenderingFreeTypeOpenGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/Ghernati_Amine/indigo_desktop_full_ws/devel/lib/pcl_ros/pointcloud_to_pcd] Error 1
make[1]: *** [CMakeFiles/pointcloud_to_pcd.dir/all] Error 2
make: *** [all] Error 2
[pcl_ros] <== '/Users/Ghernati_Amine/indigo_desktop_full_ws/build/pcl_ros/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j' failed with return code '2'

Failed <== pcl_ros [ 26.3 seconds ]
Finished <== gazebo_ros [ 1 minute and 39.5 seconds ]
[build] There were '1' errors:

Failed to build package 'pcl_ros' because the following command:

Command to reproduce:

cd /Users/Ghernati_Amine/indigo_desktop_full_ws/build/pcl_ros && /Users/Ghernati_Amine/indigo_desktop_full_ws/build/pcl_ros/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j; cd -

Path to log:

cat /Users/Ghernati_Amine/indigo_desktop_full_ws/build/build_logs/pcl_ros.log

Exited with return code: 2

[build] Runtime: 27 minutes and 0.7 seconds

@TheInfamousWayne
Copy link

During the installation, I faced this issue. Any suggestions as to how to fix this?

executing command [brew install gazebo8]
==> Installing gazebo8 from osrf/simulation
==> Installing dependencies for osrf/simulation/gazebo8: ignition-msgs0, ignition-transport3, libtar, sdformat5 and simbody
==> Installing osrf/simulation/gazebo8 dependency: ignition-msgs0
==> Downloading https://osrf-distributions.s3.amazonaws.com/ign-msgs/releases/ig
Already downloaded: /Users/vaibhavagrawal/Library/Caches/Homebrew/downloads/14859241ed3734983429fe41356ed996483801ce265d311d1e1d03bf0c6f02f7--ignition-msgs-0.7.0.tar.bz2
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
Last 15 lines from /Users/vaibhavagrawal/Library/Logs/Homebrew/ignition-msgs0/01.cmake:
-- Build Type: Release
-- Install path: /usr/local/Cellar/ignition-msgs0/0.7.0_7
CMake Error at /usr/local/share/cmake/ignition-cmake2/cmake2/IgnUtils.cmake:782 (message):
ign_add_library(<target_name> ) is deprecated. Instead, use
ign_create_core_library(SOURCES ). It will determine the library
target name automatically from the project name. To add a component
library, use ign_add_component(~). Be sure to pass the CXX_STANDARD
argument to these functions in order to set the C++ standard that they
require.
Call Stack (most recent call first):
ignition/msgs/CMakeLists.txt:221 (ign_add_library)

-- Configuring incomplete, errors occurred!
See also "/tmp/ignition-msgs0-20191110-11860-1ku5e4x/ignition-msgs-0.7.0/CMakeFiles/CMakeOutput.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/osrf/homebrew-simulation/issues

ERROR: the following rosdeps failed to install
homebrew: command [brew install gazebo8] failed

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