paradiso/docs/COMPILATION.md
Hartmut Seichter 317cde6fa1 - update copyright
- add instructions for cross-compilation
- add utility function for Windows and Linux executable path
2025-05-25 12:31:16 +02:00

624 B

Cross Compiling with MinGW 64

As I do not own any Windows machine, builds on Windows rely on MinGW which is install with the ArchLinux package group mingw-64-toolchain (contains MinGW64 Crosscompilation parts)

Install MinGW

pacman -S mingw-w64-toolchain

Create Build

The root folder adds a .gitignore rule to leave out everything build*

mkdir -p build_w64
cd build_w64

Configure

cmake . -DCMAKE_TOOLCHAIN_FILE=../etc/cmake/mingw64-toolchain.cmake

Build

cmake --build .