Player Installation:
The instructions given on this link worked for me with some changes.
Install the necessary dependencies:
$ sudo apt-get install linux-headers-generic autotools-dev build-essential cmake cpp libboost-signals1.46.1 libboost-signals1.46-dev libboost-thread1.46.1 libboost-thread1.46-dev libcv-dev libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-dev libopencv-features2d-dev libopencv-calib3d-dev libgnomecanvas2-0 libgnomecanvas2-dev libgsl0-dev libgtk2.0-dev libjpeg-dev libtool libxmu-dev swig python2.7-dev libcv-dev libcvaux-dev libhighgui-dev
Download the source code:
$ wget http://sourceforge.net/projects/playerstage/files/Player/3.0.2/player-3.0.2.tar.gz
Build and install as usual. See this link for more information.
Now set the following two variables:
$ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
You may like to put this into your ~/.bashrc file to avoid repeating every time you log into your system.
Stage Installation:
Install the dependencies:
$ sudo apt-get install freeglut3 freeglut3-dev libfltk1.1 libfltk1.1-dev libltdl7 libltdl-dev libpng12-dev libpng12-0
Usual building process should work, this link (same as given in the beginning) tells you to make some changes in the file 'CMakeLists.txt'.
After the installation, you should be able to execute the following command without any error:
$
cd ~/Downloads/Stage-3.2.2-Source/worlds
$ player simple.cfg
You may get error if it fails to find the libstage plugin. Just 'locate' libstage library and add this folder into /etc/ld.so.conf and run 'ldconfig'.
While installing stage, make sure that the cmake command finds the Player Installation. You should be able to run the following command:
$ pkg-config playercore --libs
and you should see something like this:
-L/usr/local/lib64 -lplayercore -lpthread -lltdl -ldl -lplayerinterface -lplayercommon