player/stage 学习---安装

环境 ubuntu 14.04

一,工具安装

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-dev

二,环境设置

1,安装建立安装目录

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/pkgconfig

export STG=$HOME/bin/stage
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$STG/lib:$STG/lib64
export PATH=$PATH:$STG/bin

3,使能环境变量

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

image

posted on 2016-01-05 18:21  joseph_伽拉  阅读(920)  评论(0编辑  收藏  举报