KeeperFX can be build in Linux. Windows users can use WSL (Windows Subsystem for Linux).

To install WSL:
  1. Open a PowerShell as an admin
  2. Type wsl --install
  3. Reboot your PC
Used packages

The following packages are needed. It is likely some or all packages come pre-installed with your Linux/WSL version:

  • make
  • unzip
  • gcc
  • g++
  • gcc-mingw-w64-i686
  • g++-mingw-w64-i686

A package could be installed by typing sudo apt install [packetname]

Get the source

Download or Clone the KeeperFX source code from this github repository. Using Github Desktop for this is an easy method, add the git link:

Navigate to the source directory from your shell

Go to the directory of the makefile. WSL users type : cd "/mnt/[drive letter]/[directory]"

Use a make command

Next run a make command, for example type make standard.

command description
standard build binaries for 'standard release' of KeeperFX
heavylog build binaries for 'heavylog release' of KeeperFX
pkg-languages generate text strings DAT files from PO/POT translation sources
pkg-gfx* generate all graphics DAT/TAB/RAW/PAL files from PNG bitmaps
pkg-landviews* generate only landview graphics
pkg-menugfx* generate only menu graphics
pkg-enginegfx* generate only engine graphics
pkg-sfx* generate sound DAT files from wave files.
package compress binaries and other files into 7z archive
all just an alias for 'standard'
clean removes files created during previous builds

*Not all commands currently work with WSL. You need MinGW with MSYS for those.

Get binaries

Having just the keeperfx.exe file does not allow you to run the game. The easiest way to get started is to install the latest alpha version first and replace files from that with your newly build version. See here.

There's a development channel on the Keeperklan Discord, accessible for everybody who wants to join. Just ask here.