Nethack - Falcon's Eye
NewsFeaturesDownloadMessage ForumLinks
Cogwheels

Compiling NetHack - Falcon's Eye

For Windows 95 or greater:
  1. Get the free MinGW compiler, available from www.mingw.org.
  2. Download the source code and uncompress it into a suitable directory (e.g. "nethack"). Remember to use the directory names in the package.
  3. Read the files README in the top directory and the file Install.nt in the subdirectory sys\winnt.
  4. Go into the sys\winnt subdirectory and run fesetup.bat.
  5. Go into the src subdirectory and type make install. The game will now compile for a long time.
  6. 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.
  7. 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:
  1. Get the free DJGPP compiler, available from www.delorie.com/djgpp/.
  2. Download the source code and uncompress it into a suitable directory (e.g. "nethack"). Remember to use the directory names in the package.
  3. Read the files README in the top directory and the file Install.dos in the subdirectory sys\msdos.
  4. Go into the sys\msdos subdirectory and run setup.bat GCC.
  5. Go into the src subdirectory and type make install. The game will now compile for a long time.
  6. 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.
  7. 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:
  1. 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.
  2. Download the source code and unzip it in a suitable directory (e.g. "nethack").
  3. 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).
  4. Go into the src subdirectory and type make. The game will now compile for a long time.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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:
  1. 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.
  2. Download the source code and unzip it in a suitable directory (e.g. "nethack").
  3. Read the files README in the top directory and the file Install.be in the subdirectory sys/be.
  4. 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).
  5. Go into the src subdirectory and type make. The game will now compile for a long time.
  6. 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.
  7. 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.
  8. There's an example configuration file "NetHack Defaults" in the compiled/games/lib/nethackdir subdirectory. Modify it to suit your playing tastes.
  9. 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.
Last updated 10th December, 2005 by
Jaakko Peltonen.
SourceForge.net Logo