PWMAngband source (Tangaria’s game engine) comes with several batch files that actually do the job. PWMAngband using Borland C++ builder (version 6); makefiles are only compatible with Borland (you can use visual studio but you would need your own makefiles).
Libraries (WIN client)
- Download and unzip ZLIB 1.2.11 in the same root directory as your
\PWMAngband
folder (not inside of PWMAngband folder, but in ../ folder!) - Download and unzip LIBPNG 1.6.37 in the same root directory as your
\PWMAngband
folder - Replace the
pngwrite.c
file by the one from the\PWMAngband\src\fix
folder to fix a linker error - Edit
makefile.bc32
in thelpng1637\scripts
directory:ZLIB_DIR=..\zlib-1.2.11
- Run
\PWMAngband\src\WIN.bat
. This will generate the ZLIB and LIBPNG libraries.
Libraries (SDL client)
Prerequisite: Build the static libraries libpng.lib and zlib.lib (see previous paragraph).
- Create a
\SDL
directory in the same root directory as your\PWMAngband
folder - Download and unzip SDL 1.2.15 in the
\SDL
directory - In
\SDL\SDL-1.2.15
, replace the following files by the ones from\PWMAngband\src\_SDL
:\include\begin_code.h \include\SDL_stdinc.h
- Download and unzip FreeType 2.10.2 in the
\SDL
directory - In
\SDL\freetype-2.10.2
, replace the following file by the one in\PWMAngband\src\fix
:
\include\freetype\config\ftconfig.h
- Download and unzip SDL_ttf 2.0.11 in the
\SDL
directory - Download and unzip SDL_image 1.2.12 in the
\SDL
directory - Download and unzip MAD 0.15.1b in the
\SDL
directory - In
\SDL\libmad-0.15.1b
, replacelayer3.c
by the one in\PWMAngband\src\fix
to remove compile errors - Download and unzip SDL_mixer 1.2.12 in the
\SDL
directory - Run
\PWMAngband\src\SDL.bat
. This will generate the SDL, FREETYPE, SDL_TTF, SDL_IMAGE, LIBMAD and SDL_MIXER libraries.
Client
To build client: run the client.bat
file in the /src
directory. This will generate the mangclient_gcu.exe
, mangclient_sdl.exe
and mangclient.exe
executable files corresponding to the GCU, SDL and WIN client.
Server
To build server: run the server.bat
file in the /src
directory. This will generate the mangband.exe
executable file corresponding to the server.
The clean.bat
file will delete all generated binaries in case you want to recompile everything from scratch.
Setup
To build setup (all executables in one folder): run the setup.bat
file in the /src
directory. This will generate all the files required to run PWMAngband. Setup will appear in \PWMAngband\setup
The cleansetup.bat
file will delete all generated files in case you want to regenerate everything from scratch.
Archive (outdated):
Easiest is to download free command-line tools which is a free Borland compiler version 5 and use the makefiles.
After you will download free command-line tools, unpack it to C:\BCC55 and:
1. Add “C:\BCC55\bin” to the Windows OS PATH
2. Create a bcc32.cfg file which will set the compiler options for the Include
and Lib paths (-I and -L switches to compiler) by adding these lines:
-I"C:\BCC55\include"
-L"C:\BCC55\lib"
3. Create an ilink32.cfg file which will set the linker option for the Lib path by
adding this line:
-L"C:\BCC55\lib"