Cross-Compile

In order to compile for Windows from Linux you will need mingw and the build-dependencies for the needed libraries installed. The following steps assumes that you will be using mingw-w64 on an i686 machine and compile for win32:

On Debian, you would install mingw and the library build-dependencies via:

Then use the script to invoke autotools to compile both the needed libraries and lierolibre itself:

scripts/cross-compile

Note that the underlying autotools cross-compile process is somewhat stuck together with duct tape, so you may have to tweak it yourself to fit, the relevant places to look is at "windows-includes" and "windows-libraries" in configure.ac and "$(WINDOWS_LIBS)" along with its dll file make targets in Makefile.am.

Jam

It is also possible to compile lierolibre using ftjam, in this case the lierolibre binary will be located in the _bin/ directory, and you will need to assemble the SND and CHR files manually:

Visual Studio C++ 2010 on Windows

The windows subdirectory is a git submodule for the windows build files and library dependencies. To get the contents use:
git submodule update windows

A project for Visual Studio 10 is available in the visualC/ directory, only minimal testing has gone into this, so expect it to need some tweaking; you will need a directx library to link against; use the "ReleaseWithoutMAsm" configuration in VC to make the final build.

Things to try out

To start lierolibre normally with and EXE file use:

./lierolibre path/to/LIERO.EXE

To start lierolibre with the plaintext config use:

./lierolibre data/liero.cfg

To start lierolibre with an EXE file and write its variable contents to a new plaintext config use:

./lierolibre mymod/LIERO.EXE -w mymod_liero.cfg

NOTE: The directories of the input files (argument 1) must contain the data files (DAT CHR SND) as well