Skip to content

Build ‐ Windows on Linux

Parracodea edited this page Mar 23, 2024 · 1 revision

Be sure to check Build for generic instructions.

Requirements

This guide assumes a Debian-based Linux distribution, which includes Ubuntu.

Official releases are built on Debian Stretch, and this has been tested on Debian Buster as well. Newer versions are expected to work as well.

NOTE: These steps won't work on distros not based on Debian, such as Fedora. The CMake toolchain assumes the presence of a separate compiler executable with a statically-linked POSIX thread model library in its MinGW package, something other distros doesn't provide.

Setup

Execute the following command in a terminal window to install the required tools to build:

sudo apt-get update
sudo apt-get install git build-essential cmake python3-minimal mingw-w64 ninja-build p7zip-full zip unzip

Next, execute the following to get the required source code from GitHub:

git clone https://github.com/daid/EmptyEpsilon.git
git clone https://github.com/daid/SeriousProton.git

Build latest version

Run the following commands to build the latest source code:

cd SeriousProton
git checkout master
git pull
cd ../EmptyEpsilon
git checkout master
git pull
mkdir -p _build_win32
cd _build_win32
cmake .. -G Ninja -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw.toolchain -DSERIOUS_PROTON_DIR=../../SeriousProton
ninja package

This builds a EmptyEpsilon.zip archive in EmptyEpsilon/_build_win32 that contains the whole game, including everything required, just like the official releases.

Clone this wiki locally