Angband/65\Compiling

From RogueBasin
Revision as of 11:56, 23 April 2009 by PaulBlay (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

With Visual C++ (IDE)

  • Copy 'angband.ico' into the \src\win directory.
  • Start the VC++ IDE and create a new empty project
  • Add all the *.c, *.h and *.rc files from the \src directory and the monster, object, player and win subdirectories.
  • From Project -> Properties -> Linker -> Input set "additional dependencies" to winmm.lib
  • From Project -> Properties -> C/C++ -> Advanced set "Compile as" to "Compile as C code /TC"

With Visual C++ (Command prompt)

  • Start Visual C++ Command Prompt
  • Change to source directory
  • Enter "nmake /fMakefile.nmake"

With Dev-C++

NOTE: Earlier builds compiled with Dev-C++ were associated with segment fault crashes. Now seems to be OK.

  • Create an empty C project, located in the source directory
  • Add every C file from src/, src/win, src/monster, src/object and src/player.
  • From Project -> Project Options, General tab set "Win32 console application"
  • From Project -> Project Options, Build Options tab, set the executable output directory to "..\".
  • From Project -> Project Options, parameters tab, add -mwindows -DWINDOWS -I. to the compiler options and -lmingw32 -lwinmm -mwindows to the linker options.

With Linux

Compiling with Linux should be possible (now that some initial problems have been fixed). Compiling guides, hints, etc. are welcome.