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:
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
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:
- 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 )
- 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:
- 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
- Excursus: Installing libeastwood into custom directory
If you chose to install libeastwood into a different directory (some people cannot install in system wide dirs) then you need to persuade the CMake to find the libeastwood module (cmake specific) and the pkg-config file (cmake-independent). Huh?
Just set to environment variables before running the cmake .. as follows: export PKG_CONFIG_PATH=<YOUR_CUSTOM_CMAKE_INSTALL_PREFIX_PATH>/lib/pkgconfig (After that running pkg-config --libs libeastwood should return something valid.) export CMAKE_MODULE_PATH=<YOUR_CUSTOM_CMAKE_INSTALL_PREFIX_PATH>/share/cmake/Modules
With this CMake is able to find the little cmake file that comes with libeastwood. 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:
- 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.