Compiling

From NetHackWiki
Revision as of 13:07, 20 September 2006 by Paxed (talk | contribs) (just managed to compile nethack on W2k, this is what I did...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here is help on Compiling the NetHack's sources

On Windows

This was tested on Win2k.

  • Install MinGW and MinGW32-Make. I used C:\mingw\ as the path to install to.
  • Unpack NetHack's sources somewhere; I used c:\nh343\. You will need WinZip or some other utility that can uncompress it.
  • Go to c:\nh343\sys\winnt\ and run nhsetup.bat
  • If you want to run the graphical windows GUI, edit c:\mingw\nh343\src\makefile.gcc and change the line
#GRAPHICAL=Y

to

GRAPHICAL=Y
  • Go to c:\nh343\ and create a new file called 'install.bat' with the following contents:
PATH=c:\mingw\bin
cd src
mingw32-make -f makefile.gcc install
  • Run the install.bat you just created.
  • The NetHack binary should now be in c:\nh343\binary\