User Tools

Site Tools


compiling:android

Compiling Voxelands on Android

As of currently, we do not have a full fledged port over to Android but we do have a nifty way of hosting a Voxelands server on Android using an app, that has a special place in my heart, GNURoot. GNURoot allows you to run a full Debian (or other) chroot parallel to Android without root access unlike others like Linux Deploy.

Install GNURoot

First off, you need to install GNURoot and GNURoot Wheezy on your Android device, open GNURoot, create new rootfs with wheezy, and launch the chroot as fake root.

Note: Currently, we have not been successful in compiling Voxelands with GNURoot Debian which contains Debian 8 (Jessie).

Install needed packages

You're going to need some software in order to compile Voxelands successfully on your Android device.

# apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libfreetype6-dev git

After executing this command, you will need to clone the Voxelands git repository:

# git clone https://gitlab.com/voxelands/voxelands.git

Now it's time to configure and compile Voxelands on your device by executing the following commands:

# cd voxelands
# cmake . -DRUN_IN_PLACE=1 -DBUILD_CLIENT=0
# make -jX

X being the number of CPU cores to use while compiling voxelands + 1

If all went well, you'll have an executable in bin/. Before executing voxelands-server, make sure you copy voxelands.conf.example as voxelands.conf to the root of the voxelands directory and modify the configuration file to your needs.

Finally, start the Voxelands server by executing:

# cd bin
# ./voxelands-server

Note: Without root access on your device, you cannot use any ports >1024.

compiling/android.txt · Last modified: 2015/08/06 17:00 by pentium44