Installing Player/Stage on Mac OS X

by Jamie McDonald

For me, installing Player/Stage was a bit of a nightmare. There isn’t a wealth of information about installing Player/Stage on any operating system, let alone on a Macbook Pro.

I tried running an Ubuntu install in VirtualBox and using the install script on this wiki page but the script failed and I didn’t understand enough to figure out what went wrong (I don’t think I would understand any better now!). I then tried using the package manager to install the Debian/Ubuntu packages but I got lots of errors about missing models and drivers. That’s when I gave up on Ubuntu.

MacPorts seemed to offer a golden solution, however after running the install for hours on end to have the process throw an error and fail numerous times made me give up on that avenue. Then, I found some magical instructions on this website. Thank you Serge Stinckwich. I’m not sure whether it was these instructions alone, or the combination of those and the attempts with MacPorts however I have a working installation of Player/Stage on Mac OS X 10.6.7. For the sake of my paranoia about things that may someday disappear on the internet, I’m reposting the instructions here, but full credit goes to the original poster.

How to install Player/Stage 3 on Mac OS X

Install MacPorts packages: cmake, pkg-config

Set INSTALL_DIR to the appropriate directory. All Player/Stage tools will be installed in this directory. For example: export INSTALL_DIR=/Users/username/playerstage3

Player 3.0.1 installation

cd
mkdir $INSTALL_DIR
curl -O http://nchc.dl.sourceforge.net/project/playerstage/Player/3.0.1/player-3.0.1.tar.gz
export CXXFLAGS="-arch x86_64" tar -xzvf player-3.0.1.tar.gz
cd player-3.0.1
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_OSX_ARCHITECTURES=x86_64 -DBUILD_PLAYERCC_BOOST=OFF ../
make
make install

FLTK 1.3.X installation

The URL below didn’t work for me, I downloaded the latest version of FLTK at their website, which happened to beĀ fltk-1.3.x-r8207.tar.gz at the time.

cd
curl -O http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-r7243.tar.gz
tar -xzvf fltk-1.3.x-r7243.tar.gzcd fltk-1.3.x-r7243
./configure --with-archflags="-arch x86_64" --prefix=$INSTALL_DIR
make
make install

Stage 3.2.2 installation

cd
curl -O http://nchc.dl.sourceforge.net/project/playerstage/Stage/3.2.2/Stage-3.2.2-Source.tar.gz
export PKG_CONFIG_PATH=$INSTALL_DIR/lib/pkgconfig/tar -xzvf Stage-3.2.2-Source.tar.gz
cd Stage-3.2.2-Source/
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_OSX_ARCHITECTURES=x86_64 ../
make
make install

Test your P/S installation

export DYLD_LIBRARY_PATH=$INSTALL_DIR/lib/
export PATH=$INSTALL_DIR/bin:$PATH
cd
player
stage Stage-3.2.2-Source/worlds/simple.world
player Stage-3.2.2-Source/worlds/simple.cfg

Hopefully, you should now have a working installation of Player/Stage! Good Luck!