Changes between Version 2 and Version 3 of Compiling


Ignore:
Timestamp:
06/29/19 18:36:09 (6 months ago)
Author:
nckmccnnll
Comment:

Add Windows console compiling instructions

Legend:

Unmodified
Added
Removed
Modified
  • Compiling

    v2 v3  
    78783. Run make -f makefile.win. Add " MINGW=yes" to the end of that iff you're using MinGW. 
    7979 
     80== Windows Console using MinGW == 
     81 
     82(Thanks to Once on the Angband forums for these instructions; read at http://angband.oook.cz/forum/showthread.php?p=133963#post133963) 
     83 
     841. You need a compiler... I assume that you have installed MingW and the base development libraries. If not, there are posts explaining how to do this in this forum. 
     85 
     862. Make sure you have the *ncurses* library installed. Contrary to what is written in the Makefile, pdcurses will not be sufficient. You need term.h, which only comes with ncurses.  To do that, type mingw-get in a console, then select and install libncurses-dev 
     87 
     883. Move to the angband/src folder 
     89 
     90 
     914. Modify Makefile.win lines 50 and 51 with the correct install path of ncurses (Yes, the keyword says PDCURSES, but it doesn't matter). 
     92{{{ 
     93PDCURSES_INC = C:/MinGW/include/ncurses 
     94PDCURSES_LIB = C:/MinGW/lib/libncurses.a 
     95}}} 
     96 
     97 
     98 
     995. If you try to compile the console version right now it will fail because a few headers do not exist on Windows. These are the locale stuff, and the sound. We do not need either for this version so we can comment these problems out. 
     100{{{ 
     101In main.c 
     102comment out line 38 "#include "langinfo.h" 
     103}}} 
     104{{{ 
     105lines 467-473 
     106Comment out the full section "if (setlocale(LC_CTYPE, "")) {..." 
     107}}} 
     108{{{ 
     109In sound-core.c, line 62 
     110Comment out the line "  { "win", "Windows sound module", init_sound_win }, " 
     111}}} 
     112{{{ 
     113In main-gcu.c replace line 66 
     114"_stdcall void Sleep(int);" with "void Sleep(int);" 
     115}}} 
     116 
     1176. Compile 
     118{{{ 
     119mingw32-make -f Makefile.win CONSOLE=yes MINGW=yes 
     120}}} 
     121 
     122 
    80123== Windows + Dev-C++ == 
    81124