After quite some struggles, I finally managed to get the Player / Stage stack installed exactly the way I wanted it. It gave me quite a headache, so I thought it would be a good thing to share (so other people don’t have to go through the same thing).
First of all, my perfect setting was to set my environement up through VirtualBox. This is because Player / Stage is still quite rough and requires packets and tinkering I did not want to occur on my stable work machine. However, I wanted to develop through my normal Eclipse (in my host operating system) as that was already all set-up and I didn’t want to get into performance issues through the Virtual Machine. Knowing all of that, I made the following choices :
Easy to install, widespread and I knew it already
- Fedora 15
This was an easy choice, as it was recommended on the player / stage download page – Fedora already has the player / stage packets in it’s official repositories, making things a lot easier.
I wasn’t 100% sure it would all work on OpenJDK, but I wanted to try and… it all worked out for the best 🙂 (so no need to install the Oracle Java dependencies)
- Shared folder of my Eclipse workspace that could be accessed directly through the virtual machine
That was my perfect setting and it turned out not too hard to set up.
Further along this article, I explain what problems I had. This can be helpful if you have specific questions, but here is the full set of instructions to get everything working :
- Download the Fedora 15 CD image from their website and install a clean virtual machine
Be sure to allocate enough space to the root partition for installation of different packages (I allocated 3.5 GB)
- Prepare fedora to install VirtualBox Guest Additions
yum install kernel-headers kernel-devel
- Install gcc : yum install gcc
- Install VirtualBox Guest Additions
- Install player / stage
yum install player player-devel player-doc player-examples player-python player-ruby
yum install stage stage-devel stage-playerplugin
For more information on this step, see here : http://playerstage.sourceforge.net/wiki/Download
- Install OpenJDK and all Java utils you will need (through “Add software GUI)
- Shut down machine
- Go to “settings” in your Fedora VirtualBox and add your workspace as a shared folder. Select “auto-mount”
- Start your Fedora VirtualBox
(You can now find your folder under /media)
- Run “system-config-users” and add your local user to the “vboxsf” group
- Done !
The problems I encountered
- Player wouldn’t show my robot
It was really weird when everything seemed to work, but for some reason Player wouldn’t show my robot (a little red thing driving around). This was very easily fixed by installing the VirtualBox Guest Additions
- Guest Additions wouldn’t install properly
I needed to install kernel-headers and kernel-devel first, for Guest Additions to install correctly (‘yum install kernel-headers kernel-devel’ -> reboot)
- I couldn’t access my shared folder
I needed to add my personal user (under the fedora virtualbox) to the vboxsf user group