How To Compile
MAngband comes with an autotools based build system and compiling is easy on most platforms (once you have the required tools).
Compiling on Linux
| Debian/Ubuntu | RedHat/Fedora | |
|---|---|---|
| subversion | sudo apt-get install subversion | yum install subversion |
| buildtools | sudo apt-get install build-essential | yum install gcc make |
| dependancies | sudo apt-get install libsdl-dev | yum install ncurses-devel SDL SDL-devel libX11-devel |
The first step is to get the latest source code! You can grab this from the download page or alternatively download it directly from the online Subversion repository. If you don't have a Subversion client installed you can do that easily on Ubuntu or Debian simply with:
sudo apt-get install subversion
In an rpm-based distribution (like Fedora), use
yum install subversion
On Ubuntu (and probably Debian) you can install all the required dependencies with:
sudo apt-get install build-essential libsdl-dev
On Fedora (and probably other rpm-based distributions) you can install all the required dependencies with:
yum install gcc make ncurses-devel SDL SDL-devel libX11-devel
Once you have subversion, download, compile and run like this:
svn co http://mangband.org/svn/mangband/tags/release-1_1_2 mangband cd mangband/src ./configure make cd ..
Then run with:
./mangclient
If you wish to use the SDL (single window) client on a lower resolution such as 1024x768 run with:
./mangclient --width 1024 --height 768 --hexfont font/misc6x13.hex --fullscreen
Note that if you have the SDL libraries installed but don't want the SDL (one window) client, run configure as "./configure --without-sdl"
Compiling on Windows
Beginners will find Murdin's Beginner's Guide to Compiling useful.
To checkout the latest stable sources on Windows using something like TortoiseSVN enter the repository path:
http://mangband.org/svn/mangband/tags/release-1_1_2
There are pre-built installers for both the client and server available on the download page and it's recommended you simply use them.
If you really want to compile your own Windows client or server you can do this in several ways. The method supported out-of-the-box is compiling with MinGW. If you install this along with msys you can follow the same simple ./configure then make approach as the Linux instructions above. The build system will then automatically take care of everything.
There is a Visual Studio project for the 1.1.0 client floating around, asking around in the forums is probably the best way to get this right now.
ARGH! My eyes bleed! Give me the old theme!