Gazebo local installation with compilation
From DGC Wiki
Local installation of Gazebo 0.4.0 and Player 1.5
IMPORTANT NOTE: If you're going to develop current software for Team Caltech, you want to check Player_Gazebo_CVS page instead of this, since the 0.4.0 release is quite out of date.
These are the instructions how to make a local installation into ~/local from scratch (compiling all the sources). It should be enough to just copy the compiled binaries and libs if you are running the same kernel as the grandchallenge server (2.4).
In the instructions below I decided to write in the version numbers that I used so that you can at least download those and it should work (if newer versions in the future will give problems)
Downloading
- download Gazebo and Player (gazebo-src-0.4.0.tar.gz and player-src-1.5.tar.gz) from http://playerstage.sourceforge.net/gazebo/gazebo.html
- download OpenSceneGraph (OSG) + OpenThreads + Open Producer in one package (OSG_OP_OT-0.9.6-2.tar.gz) from http://openscenegraph.sourceforge.net/downloads/index.html
- download GDAL (gdal-1.2.0.tar.gz) from http://dl2.maptools.org/gdal/
NOTE: don't download the 1.2.0b version, since it wasn't compiling on grandchallenge (at least not 06/23/04). - download Open Dynamics Engine (ODE) (ode-0.039.tgz) from http://sourceforge.net/project/showfiles.php?group_id=24884
NOTE: version 0.5 seems not be recognized by Gazebo yet. Therefore, use 0.039 in the meantime! This package also includes OPCODE. - download libRTK (librtk-src-2.3.0.tar.gz) from http://sourceforge.net/project/showfiles.php?group_id=42445
- extract the tarballs into ~ (for example, but they are assumed to be there in the instructions below)
Notes for Linux users on their own computers
There's quite a few other packages you need to compile these things. Install at least pkgconfig, gtk, gtk-devel, gtk2, gtk2-devel, libtools, automake, aclocal etc if you don't have them already.
OpenThreads, Producer and OpenSceneGraph (OSG) Installation:
- Run in a shell:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/local/lib
export LIBRARY_PATH=$LD_LIBRARY_PATH
export CPATH=$CPATH:~/local/include
export OPENTHREADS_INC_DIR=~/OSG_OP_OT-0.9.6-2/OpenThreads-v1.2dev3-osg0.9.6/include
export OPENTHREADS_LIB_DIR=~/OSG_OP_OT-0.9.6-2/OpenThreads-v1.2dev3-osg0.9.6/lib/Linux32
export PRODUCER_INC_DIR=~/OSG_OP_OT-0.9.6-2/Producer-0.8.4-2/include
export PRODUCER_LIB_DIR=~/OSG_OP_OT-0.9.6-2/Producer-0.8.4-2/lib/Linux32
<li> Don't forget to check that the dir names' version numbers match your tarballs.
<li> Also add the first two to your .bashrc! The other ones are just required for compiling.
<li> Go on with:
$ cd ~
$ cd OSG_OP_OT-0.9.6-2
$ cd OpenThreads-v1.2dev3-osg0.9.6
$ make
$ make INST_LOCATION=~/local install
$ cd ..
$ cd Producer-0.8.4-2
$ make
$ make INST_LOCATION=~/local install
$ cd OpenSceneGraph-0.9.6-2
$ make
$ make INST_LOCATION=~/local install
<li> follow the instructions for adding the paths
<li> notice the compile flag needed when compiling with OSG header files!
</ul>
[edit]
OPtimized COllision DEtection (OPCODE) Installation:
$ cd ode-0.039/OPCODE $ make $ mkdir ~/local/include/opcode $ cp -r Ice *.h ~/local/include/opcode $ cp libopcode.a ~/local/lib
[edit]OpenDynamicsEngine (ODE) Installation:
$ cd ode-0.039 $ sed 's/#OPCODE/OPCODE/; s/DOUBLE/SINGLE/' config/user-settings > config/user-settings.new $ mv config/user-settings.new config/user-settings $ make $ cp -r include/ode ~/local/include $ cp lib/libode.a ~/local/lib
[edit]Geospatial Data Abstraction Library (GDAL) Installation:
$ cd gdal-1.2.0 $ ./configure --prefix=$HOME/local --without-python $ make $ make install
[edit]Gazebo Local Installation:
$ cd gazebo-src-0.4.0 $ ./configure --prefix=$HOME/local
NOTE: on grandchallenge, you need to add this to be able to make:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib$ make $ make install
NOTE: for local installation, you need to add this to be able to run the binaries (also add it to your .bashrc)
$ export PATH=$PATH:$HOME/local/bin
[edit]libRTK installation:
NOTE: running on a personal linux installation I had to use the configure switch --disable-tests because I got strange linking errors for this package. --Henrik 16:13, 10 Aug 2004 (PDT)
$ cd librtk-src-2.3.0 $ ./configure --prefix=$HOME/local $ make $ make install
[edit]Player installation:
$ cd player-src-1.5 $ export PKG_CONFIG_PATH=<path-to>/librtk-src-2.3.0:<path-to>/gazebo-src-0.4.0 $ ./configure --prefix=$HOME/local $ make $ make install
![[Main Page]](../../../../upload/alice.jpg)