Install
From Playerstage
Installation Instructions for Gazebo
Below are instructions for both Linux and Max OSX. These instructions build everything from source. If your linux distribution has a package management system (such as apt or emerge), then you should try using that method to install the 3rd party libraries.
Linux
- 3rd Party Prerequisites
- pkg-config: http://pkg-config.freedesktop.org/wiki/
- $ tar zxvf pkg-config-<version>.tar.gz
- $ cd pkg-config-<version>
- $ ./configure
- $ sudo make install
- $ tar zxvf pkg-config-<version>.tar.gz
- zziplib: http://zziplib.sourceforge.ne
- $ tar jxvf zziplib-<version>.tar.bz2
- $ cd zziplib-<version>
- $ ./configure
- $ sudo make install
- freeimage: http://freeimage.sourceforge.net/
- $ unzip FreeImage<version>.zip
- $ cd FreeImage
- $ make
- $ sudo make install
- ogre: http://www.ogre3d.org/
- $ tar jxvf ogre-<version.tar.bz2
- $ cd ogre
- $ ./configure --disable-cg
- $ make
- $ make install
- ode: http://ode.org/
- $ svn co https://opende.svn.sourceforge.net/svnroot/opende/trunk opende
- $ cd opende
- $ sh autogen.sh
- $ ./configure; make
- $ sudo make install
Mac OSX
- 3rd Party Prerequisites
- pkg-config: http://pkg-config.freedesktop.org/wiki/
- $ tar zxvf pkg-config-<version>.tar.gz
- $ cd pkg-config-<version>
- $ ./configure
- $ sudo make install
- $ tar zxvf pkg-config-<version>.tar.gz
- zziplib: http://zziplib.sourceforge.ne
- $ tar jxvf zziplib-<version>.tar.bz2
- $ cd zziplib-<version>
- $ ./configure
- $ sudo make install
- $ sudo sed -i -e 's/${datarootdir}/\/usr\/local\/share' /usr/local/lib/pkgconfig/zziplib.pc
- freeimage: http://freeimage.sourceforge.net/
- $ unzip FreeImage<version>.zip
- $ cd FreeImage
- $ cp Makefile.gnu Makefile.osx
- $ sed -e 's/$(CC) -s -shared -Wl,-soname,$(VERLIBNAME) -o $@ $(MODULES) $(LIBRARIES)/$(CC) -s -dynamiclib -o $@ $(MODULES) $(LIBRARIES)/' -e 's/-g root/-g wheel/g' Makefile.gnu > Makefile.osx
- $ make
- $ sudo make install
- ode: http://ode.org/
- $ svn co https://opende.svn.sourceforge.net/svnroot/opende/trunk opende
- $ cd opende
- $ sh autogen.sh
- $ ./configure; make
- $ sudo make install
- ogre: http://www.ogre3d.org/
- $ tar jxvf ogre-<version.tar.bz2
- $ cd ogre
- $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
- $ sed -i -e 's/<Ogre\/OgrePrerequisites.h>/\"OgrePrerequisites.h\"/' OgreMain/include/OSX/OgreTimerImp.h
- $ sed -i -e "s/macPlugins.h/..\/..\/Mac\/Ogre\/include\/macPlugins.h/" OgreMain/src/OgreDynLib.cpp
- $ sed -i -e "s/static OSStatus/\/\/static OSStatus/" OgreMain/include/OgreWindowEventUtilities.h
- $ sed -i -e 's/Plugin_BSPSceneManager_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src -Wl,-z,defs/Plugin_BSPSceneManager_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src/' PlugIns/BSPSceneManager/src/Makefile.in
- $ sed -i -e 's/Plugin_ParticleFX_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src -Wl,-z,defs/Plugin_ParticleFX_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src/' PlugIns/ParticleFX/src/Makefile.in
- $ sed -i -e 's/Plugin_OctreeSceneManager_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src -Wl,-z,defs/Plugin_OctreeSceneManager_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src/' PlugIns/OctreeSceneManager/src/Makefile.in
- $ sed -i -e 's/Plugin_PCZSceneManager_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src -Wl,-z,defs/Plugin_PCZSceneManager_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src/' PlugIns/PCZSceneManager/src/Makefile.in
- $ sed -i -e 's/Plugin_OctreeZone_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src -Wl,-z,defs/Plugin_OctreeZone_la_LDFLAGS = -module $(PLUGIN_FLAGS) -L$(top_builddir)\/OgreMain\/src/' PlugIns/OctreeZone/src/Makefile.in
- $ ./configure --disable-cg
- $ make
- $ make install
