Goblin Camp is long abandoned project. It is based on libboost and libboost is quite sensitive to version changes (even compiler changes are seems to be important), so it is hard to build it in modern systems. I managed to build and run it in Debian Jessie chroot. It was not easy, I even had to change building system from bjam to cmake (moving to cmake was more easy than finding out why bjam fails)
So here goes explanation how to do it yourself.
- Creating chrootred environment
1.1 Create chroot-container using debootstrap
# debootstrap jessie ./jessie http://archive.debian.org/debian
1.2 Create mount scrip that will mount all special filesystems to your container
#!/bin/sh
sudo mount /tmp ./jessie/tmp -o bind
sudo mount /proc ./jessie/proc -o bind
sudo mount /dev ./jessie/dev -o bind
sudo mount /sys ./jessie/sys -o bind
xhost +
you should run this script once after reboot. Do not run it twice. xhost +
is about
telling the xserver to accept connections from everywhere (including your chrooted system).
This will allow you to run programs in chroot and see it's window on your host xwindows system.
1.3. Checking chroot
# chroot ./jessie
you should get another root prompt. Try
# cat /etc/issue
if you get Debian GNU/Linux 8 \n \l
you are right inside the chroot
1.4. Check if you can run graphical programs from your chroot. To do this
we will install mesa-utils
that has glxgears
program, that is often
used to test the graphic system
# apt-get install mesa-utils
and then try to run
# glxgears
This should show you window with three rolling gears.
- Installing build envoirement and get the source
2.1. Inside the chroot container run
# apt-get install git build-essential cmake libsdl1.2-dev libsdl-image1.2-dev libsdl-image1.2-dev libboost-system1.55.0 \
libboost-iostreams1.55-dev libboost-filesystem1.55-dev libboost-python1.55-dev libboost-thread1.55-dev locales
2.2. Go to the root's home dir, clone the repo and go to that dir
# cd ~; git clone -b cmake-build https://gitlab.com/dhyannataraj/goblin-camp.git
# cd goblin-camp/
- Building
3.1. create build dir and change to it
# mkdir cmake-build ; cd cmake-build
3.2. Run cmake, and then make
# cmake ..
# make
- Running
4.1 To run Goblin Camp you need to create an en_US.UTF8 locale. To do this run
# dpkg-reconfigure locales
and choose 'en_US.UTF-8 UTF-8' locale in both dialog windows
4.2. For some reason Goblin Camp will look for shared files in /root/goblin-camp/share/goblin-camp
.
Let's not spend time figuring out why, and just put all needed files there
# mkdir -p ../share/goblin-camp
# cd ../share/goblin-camp ; ln -s ../../Goblin\ Camp/lib lib; cd ../../cmake-build
# cp ../Goblin\ Camp/terminal.png ../share/goblin-camp
4.3 Let's run it
# LANG=en_US.UTF8 ./GoblinCamp
- Enjoy playing Goblin Camp!