环境 ubuntu 14.04
一,工具安装
sudo apt-get install git cmake g++ fltk1.1-dev libjpeg8-dev libpng12-dev libglu1-mesa-dev libltdl-dev
二,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
安装
1,安装工具 cmake
sudo apt-get install cmake
2,编译安装player
cd player-3.0.2
mkdir build
cd build
cmake ..
make
sudo make install
echo “export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib64/” >> ~/.bashrc
三,stage 下载
git clone https://github.com/rtv/Stage.git
编译:
cd Stage
mkdir build
cd build
export STG=$HOME/stg
cmake -DCMAKE_INSTALL_PREFIX=$STG ..
make
make install
四,使用
echo “export STG=\$HOME/stg” >> ~/.bashrc
echo “export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$STG/lib:\$STG/lib64” >> ~/.bashrc
echo “export PATH=\$PATH:\$STG/bin” >> ~/.bashrc
source ~/.bashrc
stage Stage/worlds/simple.world
原文:http://www.cnblogs.com/joseph-linux/p/5103403.html