|
Compiling NetHack - Falcon's Eye
For Windows 95 or greater:
- Get the free MinGW compiler, available from www.mingw.org.
- Download the source code and uncompress it into a suitable directory (e.g. "nethack").
Remember to use the directory names in the package.
- Read the files README in the top directory and the file Install.nt in the
subdirectory sys\winnt.
- Go into the sys\winnt subdirectory and run fesetup.bat.
- Go into the src subdirectory and type make install. The game will now
compile for a long time.
- If you get an error after a line that looks like "touch ../include/dgn_comp.h",
just open the file (in this example, dgn_comp.h) in a text editor and save it
without making any changes. The idea is to change the file's modification date so
the compiler knows to process it.
- After everything has been compiled, the game files will be copied to the subdirectory
compiled. The directory now holds a complete playable version of NetHack -
Falcon's Eye.
For DOS:
- Get the free DJGPP compiler, available from
www.delorie.com/djgpp/.
- Download the source code and uncompress it into a suitable directory (e.g. "nethack").
Remember to use the directory names in the package.
- Read the files README in the top directory and the file Install.dos in the
subdirectory sys\msdos.
- Go into the sys\msdos subdirectory and run setup.bat GCC.
- Go into the src subdirectory and type make install. The game will now
compile for a long time.
- If you get an error after a line that looks like "touch ../include/dgn_comp.h",
just open the file (in this example, dgn_comp.h) in a text editor and save it
without making any changes. The idea is to change the file's modification date so
the compiler knows to process it.
- After everything has been compiled, the game files will be copied to the subdirectory
compiled. The directory now holds a complete playable version of NetHack -
Falcon's Eye.
For Linux:
- You should already have a GCC compiler installed with your Linux distribution.
However, you need to install version 1.2 of the SDL libraries, available from
www.libsdl.org. You might be able to compile against
an older version of SDL, but the newest version is the surest way.
- Download the source code and unzip it in a suitable directory (e.g. "nethack").
- Go into the sys/unix subdirectory and run setup.sh (if your path
variable isn't configured correctly, you might need to type e.g. /bin/sh
setup.sh).
- Go into the src subdirectory and type make. The game will now
compile for a long time.
- Go into the top directory and type make install. The game files will now
be copied to the subdirectory compiled. The directory now holds a complete
playable version of NetHack - Falcon's Eye.
- If you have trouble compiling, or want to change the default settings,
read the files README in the top directory and the file
Install.unx in the subdirectory sys/unix.
Note: even though Install.unx mentions
other "window ports" (Gnome, X11, Qt), you don't need to compile them to play
NetHack - Falcon's Eye. The default installation includes the Falcon's Eye
and tty window ports.
- The game does not use setuid or setgid by default. If you want
to change that, or you want to install to a different directory, edit
Makefile.top in the top directory.
- There's an example configuration file defaults.nh in the compiled
subdirectory. Copy it into your home directory with the name .nethackrc,
and modify it to suit your playing tastes.
- The Linux version supports all the features in the Windows version, including
MIDI music. The Linux version also supports MP3 music. Both types
are played by an external player; default players are TiMidity for
MIDI files and mpg123 for MP3 files. If you wish to use some other
player, edit jtp_opts.txt in the config subdirectory.
For BeOS:
- You need the development tools (the GCC compiler), which you can download
from www.be.com/products/freebeos/.
You also need version 1.2 of the SDL libraries, available from
www.libsdl.org. You might be able to compile against
an older version of SDL, but the newest version is the surest way.
- Download the source code and unzip it in a suitable directory (e.g. "nethack").
- Read the files README in the top directory and the file Install.be in the
subdirectory sys/be.
- Go into the sys/be subdirectory and run setup.sh (if your path
variable isn't configured correctly, you might need to type e.g. /bin/sh
setup.sh).
- Go into the src subdirectory and type make. The game will now
compile for a long time.
- Go into the top directory and type make install. The game files will now
be copied to the subdirectory compiled. The directory now holds a complete
playable version of NetHack - Falcon's Eye.
- The game does not use setuid or setgid by default. If you want
to change that, or you want to install to a different directory, edit
Makefile.top in the top directory.
- There's an example configuration file "NetHack Defaults" in the
compiled/games/lib/nethackdir subdirectory. Modify it to suit your playing tastes.
- The BeOS version supports all the features in the Windows version, except
for music and sound. You need to disable them before playing: to do that,
edit jtp_opts.txt in the compiled/games/lib/nethackdir/config
subdirectory.
If you have any trouble compiling NetHack - Falcon's Eye,
e-mail me about the problem.
|
|