#651 Problems with installing gazebo together with player

Gazebo (98)

I've found it really hard to install latest SVN snapshot of Gazebo with Player. First of all, I had to work out attached patch - this makes whole thing able to compile. Second is problem with TBB - I had it installed on both Gentoo Linux and MacOSX and cmake scripts for gazebo couldn't fint it! It turned out that on Debian (which I personally don't use) TBB is provided in much older version than on Gentoo and MacOSX - older version offered pkgconfig specfile (tbb.pc) on which gazebo cmake scripts relies. Copying this file to /usr/lib/pkgconfig was sufficient for a workaround. Another source of problems is the ogre library: on Gentoo it is too old even if ACCEPT_KEYWORDS variable is set (1.6.5 while Gazebo requires 1.7.1 or later - this is not checked by cmake scripts, you can learn it from compiler error messages!). I had to install ogre 1.7.3 from sources. On MacOSX from the other hand there is a port in macports for ogre 1.7.3 that cannot be build unless one change in portfile is done (see https://trac.macports.org/ticket/30688 ). Finally, installation on MacOSX turned out to be impossible due to link time issues - seems like linking should be done different way on MacOSX than on Linux - I'm fresh MacOSX user so I've got not enough experience with that to make it work.
assimp library required by gazebo is not present in Gentoo portage tree, it must be installed from sources.
This leads to another problem: I have installed Player (and Stage), assimp and ogre 1.7.3 from sources in users home directory. Setting PATH, LD_LIBRARY_PATH and PKG_CONFIG_PATH seem not to be enough - cmake scripts for gazebo seem not to be prepared for this (I must say, I had no problem with that while compiling Stage!). Some hints are:
- although assimp library provides assimp.pc file, cmake scripts look for headers in /usr/include only, a symlink /usr/include/assimp => <your_install_path>/include/assimp is a workaround for this
- although player provides *.pc files, linker can't find player libs, following environment variables need to be set for cmake: LIBS=-L<your_install_path>/lib LDFLAGS=-L<your_install_path>/lib
- FLTK comat headers are required during compilation, they can't be found in standard installation directory (compile time error, cmake didn't find this issue), following environment variables need to be set for cmake: CFLAGS=-I/usr/include/fltk/compat CXXFLAGS=-I/usr/include/fltk/compat


  • Paul Osmialowski

    I'm also attaching tbb.pc for those who have no one with Debian around.

  • Paul Osmialowski

  • scpeters

    scpeters - 2014-02-17

    I think this is no longer an issue. I just made a quick-and-dirty home-brew formula for player and was able to successfully build the player trunk (3.0.2 didn't compile), and then gazebo as well:

    brew tap osrf/simulation
    brew install player --HEAD
    brew install gazebo

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks