環境 ubuntu 14.04git
一,工具安裝github
sudo apt-get install git cmake g++ fltk1.1-dev libjpeg8-dev libpng12-dev libglu1-mesa-dev libltdl-dev libgtk2.0-dev build-essential libgnomecanvas2-dev gsl-bin libgsl0-dev libopencv-devcanvas
二,環境設置ubuntu
1,安裝創建安裝目錄bash
mkdir ~/bin工具
2,在~/.bashrc中預先添加以下內容測試
export PLY=$HOME/bin/player
export PATH=$PATH:$PLY/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PLY/lib:$PLY/lib64
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PLY/lib64/pkgconfiguiexport STG=$HOME/bin/stage
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$STG/lib:$STG/lib64
export PATH=$PATH:$STG/bin.net3,使能環境變量blog
source ~/.bashrc
三,player
下載 官網(有錯誤產生)
http://sourceforge.net/projects/playerstage/files/Player/3.0.2/
個人倉庫 (有修改):
git clone https://git.oschina.net/joseph_lee2633/player.git –b my_player player-3.0.2
安裝
cd player/player-3.0.2
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$PLY ..
make
make install
四,stage 下載
git clone https://github.com/rtv/Stage.git
編譯:
cd Stage
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$STG ..
make
make install
五,使用
1,player測試
cd Stage
player worlds/simple.cfg
2,stage測試
stage worlds/simple.world