Ask Your Question
1

installing indigo on OS X Yosemite

asked 2014-11-18 15:40:16 -0500

Andrew Hundt gravatar image

updated 2014-11-19 12:33:19 -0500

I'm attempting to install indigo on OS X Yosemite and I'm running into compilation problems for gazebo. I'm trying to follow the instructions found at:

http://wiki.ros.org/indigo/Installati...

However I am stuck at the "Desktop-Full Install" step.

Here is the error portion of the output from running the gazebo install command manually I don't yet have enough points on the website to attach the full log:

    brew install gazebo -v 
# [..snip...]
[ 45%] Building CXX object gazebo/rendering/CMakeFiles/gazebo_rendering.dir/Camera.cc.o
cd /tmp/gazebo-8qUtmK/gazebo-1.9.6/build/gazebo/rendering && /usr/local/Library/ENV/4.3/clang++   -DMAC_OS_X_VERSION=1080 -Dgazebo_rendering_EXPORTS -O3 -DNDEBUG  -Wall -Wextra -Wno-long-long -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic -msse -msse2 -msse3 -mssse3   -O3 -DNDEBUG  -Wall -Wextra -Wno-long-long -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic -msse -msse2 -msse3 -mssse3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/tmp/gazebo-8qUtmK/gazebo-1.9.6/test/gtest/include -I/tmp/gazebo-8qUtmK/gazebo-1.9.6 -I/tmp/gazebo-8qUtmK/gazebo-1.9.6/build -isystem /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/skyx -isystem /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/skyx/include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks -isystem /usr/local/Cellar/ogre/1.7.4/include/OGRE/RTShaderSystem -isystem /usr/local/Cellar/ogre/1.7.4/include -isystem /usr/local/Cellar/ogre/1.7.4/include/OGRE -isystem /usr/local/include -isystem /usr/local/Cellar/sdformat/2.1.0/include/sdformat-2.1    -fPIC -o CMakeFiles/gazebo_rendering.dir/Camera.cc.o -c /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/Camera.cc
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/ArrowVisual.cc:24:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/Scene.hh:30:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/msgs/msgs.hh:24:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/build/gazebo/msgs/MessageTypes.hh:2:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/build/gazebo/msgs/axis.pb.h:23:
In file included from /usr/local/include/google/protobuf/message.h:120:
/usr/local/include/google/protobuf/descriptor.h:358:5: error: expected identifier
    TYPE_BOOL           = 8,   // bool, varint on the wire.
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/ConditionalMacros.h:147:39: note: expanded from macro 'TYPE_BOOL'
     #define TYPE_BOOL                1
                                      ^

Below is the output from the command in the instructions. I tried adding the -v flag to get a more detailed compiler error but that crashed as well.

 rosdep install --from-paths src --ignore-src --rosdistro indigo -y
executing command [brew install gazebo]
==> Installing gazebo from osrf/homebrew-simulation
==> Downloading http://gazebosim.org/assets/distributions/gazebo-1.9.6.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gazebo-1.9.6.tar.bz2
==> Downloading https://gist.githubusercontent.com/scpeters/9199370/raw/afe595587e38737c537124a3
Already downloaded: /Library/Caches/Homebrew/gazebo--patch-eaa6f843ab1264810c0c0a81ff3c52232fd49d12.patch
==> Patching
patching file ...
(more)
edit retag flag offensive close merge delete

Comments

The actual error doesn't seem to be in the output, can you try to get the build output from brew install gazebo -v?

William gravatar imageWilliam ( 2014-11-18 18:40:50 -0500 )edit

I attached the actual compiler error I'm getting

Andrew Hundt gravatar imageAndrew Hundt ( 2014-11-19 12:33:56 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-11-19 15:28:02 -0500

William gravatar image

This is the relevant error:

In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/ArrowVisual.cc:24:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/rendering/Scene.hh:30:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/gazebo/msgs/msgs.hh:24:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/build/gazebo/msgs/MessageTypes.hh:2:
In file included from /tmp/gazebo-8qUtmK/gazebo-1.9.6/build/gazebo/msgs/axis.pb.h:23:
In file included from /usr/local/include/google/protobuf/message.h:120:
/usr/local/include/google/protobuf/descriptor.h:358:5: error: expected identifier
    TYPE_BOOL           = 8,   // bool, varint on the wire.
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/ConditionalMacros.h:147:39: note: expanded from macro 'TYPE_BOOL'
     #define TYPE_BOOL                1
                                      ^

Since I am not seeing this in 10.9, I would guess that the collision between protobuf's type macro (in /usr/local/include/google/protobuf/descriptor.h) and the #define in Apple's SDK is new.

I would try to update homebrew and then protobuf. Alternatively we may need to update something in the gazebo formula. Either way I would open a ticket at https://github.com/osrf/homebrew-simu... .

edit flag offensive delete link more
0

answered 2015-08-11 18:31:58 -0500

nnnnnnils gravatar image

brew install gazebo works fine for me (save for linking), but I have this diff going on:

$git diff ^HEAD
diff --git a/gazebo.rb b/gazebo.rb
index 684db0a..27ef576 100644
--- a/gazebo.rb
+++ b/gazebo.rb
@@ -13,7 +13,7 @@ class Gazebo < Formula
   depends_on "freeimage"
   depends_on "libtar"
   depends_on "ogre"
-  depends_on "osrf/simulation/protobuf"
+  depends_on "protobuf"
   depends_on "protobuf-c"
   depends_on "qt"
   depends_on "sdformat"

Maybe that'll help. Worthwhile to note the latest version of gazebo is gazebo6.

edit flag offensive delete link more
0

answered 2015-08-11 15:35:07 -0500

130s gravatar image

Looks like a patch is applied in Gazebo https://github.com/osrf/homebrew-simu...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-11-18 15:40:16 -0500

Seen: 731 times

Last updated: Aug 11 '15