Skip to content

Building on Windows

Gwilherm Baudic edited this page Jan 28, 2020 · 6 revisions

Building on Windows

Visual Studio

A VS solution and project file for VS 2017 or later can be found at the root of the repository. Make sure the dependencies (SDL2, SDL2_ttf, SDL2_image, SDL2_mixer) are available; you may have to edit their location in the project properties depending on your exact configuration.
The demos can also be built this way if needed, using the same solution file.

MSYS2

The locations are slightly different from the usual ones on a real Linux system. Make sure to use the shell named MSYS2 MinGW 32-bit or 64-bit (NOT MSYS!).

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/mingw{32,64}/lib/pkgconfig  # pick the right value
scons prefix=/mingw{32,64}
scons install prefix=/mingw{32,64}

On Appveyor: the system seems to be quite different.
Two conflicting versions of pkg-config are installed. Consequently, in addition to the MSYS2 general instructions above, the two instructions below have to be added somewhere in your appveyor.yml file:

set MSYSTEM=MINGW64
bash -lc "pacman -R --noconfirm mingw-w64-x86_64-pkg-config"
Clone this wiki locally