Sunday, October 26, 2008

Instalando PlayerStage no Ubuntu

Ubuntu 8.04.1 (gnome ou kde)


Dependências:

Usando o Terminal com usuário root:
  • apt-get update
  • apt-get install python2.5 python2.5-dev
  • apt-get install libltdl3-dev libtool libltdl3
  • apt-get install cmake libfltk1.1 libfltk1.1-dev
  • apt-get install build-essential
  • apt-get install libboost-*
  • apt-get install libcv-dev libcv1 gsl-bin libgsl0-dev
  • apt-get install libraw1394-8 libraw1394-dev
  • apt-get install libavc1394-0 libavc1394-dev
  • apt-get install libdc1394-13 libdc1394-13-dev
  • apt-get install libjpeg62 libjpeg62-dev
  • apt-get install libplayerc2 libplayerc2-dev
  • apt-get install libglu1-xorg libglu1-xorg-dev swig
  • apt-get install libpng12-0-dev libglib2.0-dev

Link Python:
  • cd /usr/local/lib/python2.5
  • rmdir ./site-packages
  • ln -s /usr/lib/python2.5/site-packages

Variáveis de ambiente:
  • nano /etc/bash.bashrc

...
export PATH=/usr/local/bin:$PATH
export CPATH=/usr/local/include:$CPATH
export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
export PYTHONPATH=/usr/local/lib/python2.5/site-packages:$PYTHONPATH


Instalando o Player:
  • tar xvzf player-2.1.1.tar.gz
  • cd player-2.1.1
  • ./configure

Aqui é importante checar o retorno desse comando:

**************************************
Player will be build on a ...

Support for plugin drivers will be included.
...
Python bindings to libplayerc will be built

libplayerc++ will be built
signaling included
multithreading included
...

Se a resposta tem a forma acima, continuar a instalação, senão, verificar as dependências:
  • make
  • make install
  • exit

Testando, usando o terminal como root:
  • player /usr/local/share/player/config/pioneer.cfg

Resultado esperado:

Player v.2.1.1
...
Listening on ports: 6665


Instalando o Stage:

Usando o terminal com root:
  • tar xvzf Stage-3.0.1-Source.tar.gz
  • cd Stage-3.0.1-Source
  • cmake .
  • make
  • make install
  • exit

Testando (usando terminal, não root):
  • stage worlds/fasr.world


PlayerStage Info: