Linux-howto

From DoonLunacy

This is just an initial version of Howto concerning compiling and running doon lunacy (aka dunelegacy) under linux. Ok, so what do you need? Two things:

  • The original Dune 2 data files

If you have bzr type the following commands

bzr branch lp:doonlunacy
bzr branch lp:libeastwood
  • On Ubuntu and derivates you might need to install bzr:
sudo apt-get install bzr
  • or if on Mandriva Linux:
urpmi bzr

So how do I compile it? (Note: This howto is meant for people who know what a compiler is. if you get many errors with -o something make sure you have a compiler e.g. execute

$gcc -v

in command line. If you get

bash:  gcc -v: command not found

then you don't have any compiler installed. Install it e.g. sudo apt-get install gcc)

  • Now ensure that you have everything required to build installed:
  • On debian/ubuntu you need the following packages:
    • cmake
    • libsdl-dev
    • libsdl-mixer1.2-dev
    • libsamplerate0-dev
    • libboost-dev - version 1.35 or higher, f.e. in Ubuntu 9.04 default is libboost-dev v1.34.1 - there you have to choose libboost1.35-dev (there is also a v1.37 but there is an issue with gcc4.3 so that you have to change a libboost file - https://svn.boost.org/trac/boost/changeset/53050 )
    • libboost-python-dev
  • As a single command:
sudo apt-get install cmake libsdl-dev libsdl-mixer1.2-dev libsamplerate0-dev libboost1.35-dev libboost-python1.35-dev
  • On Mandriva Linux and derivates you need the following packages:
    • cmake
    • SDL-devel
    • SDL_mixer-devel
    • libsamplerate-devel
    • boost-devel
  • As a single command:

urpmi SDL-devel SDL_mixer-devel libsamlerate-devel boost-devel

  • Or if you're using smart:

sudo smart install SDL-devel SDL_mixer-devel libsamlerate-devel boost-devel

First we have to compile libeastwood, which is needed for doonlunacy to access the original Dune 2 files.

cd libeastwood
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
sudo make install

Now we are able to compile doonlunacy

cd ../doonlunacy
mkdir build
cd build
cmake ..
make

Now we are putting the original files, our compiled doonlunacy and the python folder together:

cd ..
mkdir [MyDoonDirName]
cd [MyDoonDirName]
cp -R ../doonlunacy/python .
cp ../doonlunacy/doonlunacy .
mkdir paks
cp ../[Dune2/ALL-Original-PAK-files] paks/
  • Now you can start your own:
./dunelegacy
  • If it doesn't work ask somebody in #dunelegacy at irc.freenode.net or report your error at the Launchpad project page.
  • If you want to compile the old sourceforge.net dunelegacy read this.
Personal tools
SDL powered