OpenDUNE:Development/Linux

From OpenDUNE

Jump to: navigation, search

To compile OpenDUNE on linux, you need a compiler (gcc for example), LibSDL (the headers and the libs), and a bit of time.

Contents

LibEMU

First of all, you need LibEMU. LibEMU is an emulator layer we designed which takes care of all the Assembly/DOS calls OpenDUNE currently makes. Slowly this will be merged out, but this takes time. Till that time, you will need this library in order to play the game. For linux you can compile both a dynamic version or a static. The dynamic version makes developing a bit easier, the static is easier for distributing.

You have to get the source via Subversion:

svn checkout svn://svn.opendune.org/extra/libemu

Then run:

make


OpenDUNE

Download the source via Subversion:

svn checkout svn://svn.opendune.org/trunk

When the checkout is done, copy libemu.so and libemu.a to this directory and simply run:

make

If you want a static version, run:

make STATIC:=1

This should compile OpenDUNE. If you don't like the default settings, please edit Makefile yourself. Just remember to compile with -O1 -foptimize-sibling-calls (on by default) to avoid massive stack consumption.


Data files

Now you need to fill your data/ with the Dune2 data files. Those files are available at:

http://devs.opendune.org/~truebrain/releases/opendune-data.tar.bz2


Finally

Now you are all set, and you can run

./opendune

This should start OpenDUNE. It can happen it crashes with a nice crash-log. In such cases, please make a bug report at http://bugs.opendune.org/ and upload the report together with your memory/crash.bin. If possible add what you were doing. This helps us to improve the game.

Personal tools