Skip to content

Compiling for Windows

Melkogotto edited this page May 11, 2012 · 4 revisions

(This page about compiling SimpleCiv for Windows under Linux.)

Explanation about ncurses

ncurses is library for *nix. So you can't use it under Windows. Instead of ncurses we use pdcurses library for compiling for Windows.

Preparations

Install gcc-mingw-w64 package (it provides gcc compilers for 32- and 64-bit Windows).

Download pdcurses files (pdc*dllw.zip) from there.

Download expat files from there.

Then copy:

  • libexpat.lib, libpdcurses.dll.a to /usr/i686-w64-mingw32/lib
  • libexpat.dll, pdcurses.lib to /usr/i686-w64-mingw32/bin
  • expat.h, curses.h to /usr/i686-w64-mingw32/include

(Or to x86_64-w64-mingw32 directory, if you want compile for 64-bit system.)

Compilation

It's really simple:

make win32=1

Clone this wiki locally