Building Dune Legacy
This page describes how to build Dune Legacy on Linux/Unix. For information on how to build on Mac OS X or Windows have a look at Packaging Dune Legacy.
Prerequirements
- gcc or any other standard compliant C++ compiler
- autotools
- SDL 1.2
- SDL-mixer
Data Location
Dune Legacy can read the needed data from different locations. If you want to keep everything in one directory you should use the first method. You also may decide to install Dune Legacy on your system. Then use the second method.
Method 1: Data read from local directory
Get the Dune Legacy source code and run at the top level directory the following commands:
autoreconf --install
./buildlocal.sh
This will configure and build Dune Legacy and you will find afterwards a "dunelegacy" binary in the top level directory. The data is read from the data subdirectory. You should copy all the PAK-files from Dune 2 into this subdirectory.
If you want to build a binary with debug symbols use ./builddebug.sh. For subsequent builds it is not necessary to run autoreconf again but ./buildlocal.sh or ./builddebug.sh is sufficient.
Method 2: Install Dune Legacy on your system
Extract the Dune Legacy source code and run at the top level directory the following commands:
autoreconf --install
./configure
make
make install
You may decide to change configure's default prefix to something else, e.g. ./configure --prefix=/usr