Compiling

From NetHackWiki
Revision as of 13:34, 20 September 2006 by Paxed (talk | contribs) (streamline a bit. no need to dl mingw32-make separately if you remember to tick it during install...)
Jump to navigation Jump to search

Here is help on Compiling the NetHack's sources

On Windows

This was tested on Win2k.

  • Install MinGW. If you use the 'minimal' installation, remember to also select the optional 'MinGW make' -component, so it gets installed. 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\