Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Cross Compiling for Windows on Linux & macOS

Hansem Ro edited this page Jun 14, 2022 · 2 revisions

Status: Builds with MinGW-w64 cross-compiler and works in Wine/Windows.

  1. Install mingw-w64 toolchain (version 8.0.0 or newer).
# Arch Linux
sudo pacman -S mingw-w64-gcc
# Ubuntu 21.10
sudo apt-get install mingw-w64
# macOS w/ brew
brew install mingw-w64
  1. Clone repo
git clone https://github.com/hansemro/GDClip
  1. Retrieve submodules
cd GDClip && make prep
  1. Build with CXX=x86_64-w64-mingw32-g++ make PLATFORM=windows (parallelize build by setting NPROC variable)

  2. Retrieve built library at ./bin/libgdclip.dll