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
|git||sudo apt-get install git||yum install git|
|buildtools||sudo apt-get install build-essential||yum install gcc make|
|dependencies||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 Git repository. If you don't have a Git client installed you can do that easily on Ubuntu or Debian simply with:
sudo apt-get install git
In an rpm-based distribution (like Fedora), use
yum install git
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 git, download, compile and run like this:
git clone https://github.com/mangband/mangband git checkout v1.1.3 cd mangband/src ./configure make cd ..
Then run with:
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 MSYS2 Guide useful.
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 MSYS2. 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.