Skip to content

Building

Korrow edited this page Jun 11, 2016 · 1 revision

Building on Windows (MYS2 x86_64)

These steps are based off of the steps for building Allegro with MSYS2

Get MSYS2 x86_64

  1. Install MSYS2 x86_64 from https://msys2.github.io/
  2. Run MSYS2 in MinGW w64 mode

Install the build dependencies

  1. CMake

    pacman -S mingw64/mingw-w64-x86_64-cmake
    
  2. GCC

    pacman -S mingw64/mingw-w64-x86_64-gcc
    
  3. SDL2

    pacman -S mingw64/mingw-w64-x86_64-SDL2
    pacman -S mingw64/mingw-w64-x86_64-SDL2_image
    
  4. pkg-config

    pacman -S mingw64/mingw-w64-x86_64-pkg-config
    
  5. make (MSYS version)

    pacman -S msys/make
    

Perform the build

  1. Run the build using MSYS Makefiles, specifying the mingw64 toolchain

    cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64/x86_64-w64-mingw32 ..
    make
    
  2. When you run the built executables Windows will complain about several missing DLL files. You search for these and place them next to the executable for the time being (not yet sure what the long term solution to this is).

Clone this wiki locally