Skip to main content
Ant on Windows is built using the MSYS2 MINGW64 toolchain.
Native MSVC builds are not currently supported. You must use the MSYS2 MINGW64 environment.

Prerequisites

1

Install MSYS2

Download and install MSYS2
2

Install dependencies

Open the MINGW64 shell and install dependencies:
pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-meson \
  mingw-w64-x86_64-ninja mingw-w64-x86_64-cmake \
  mingw-w64-x86_64-openssl mingw-w64-x86_64-libsodium \
  mingw-w64-x86_64-lld mingw-w64-x86_64-nodejs git
3

Install Rust

Install Rust via rustup (select the x86_64-pc-windows-gnu target)
4

Install Zig

Install Zig >= 0.15

Building Ant

From the MSYS2 MINGW64 shell:
1

Clone the repository

git clone https://github.com/theMackabu/ant.git
cd ant
2

Download subprojects

meson subprojects download
3

Configure the build

meson setup build -Dc_std=gnu2x
Windows builds use -Dc_std=gnu2x instead of gnu23 due to MinGW toolchain compatibility.
4

Compile

meson compile -C build

Verifying the Build

To verify:
./build/ant.exe --version

Required DLLs

Windows builds require bundling the following DLLs alongside ant.exe:
  • libssl-3-x64.dll
  • libcrypto-3-x64.dll
  • libsodium-26.dll
These are found in the MSYS2 MINGW64 bin directory (/mingw64/bin/ or equivalent).
You can copy these DLLs to the same directory as ant.exe:
cp /mingw64/bin/libssl-3-x64.dll ./build/
cp /mingw64/bin/libcrypto-3-x64.dll ./build/
cp /mingw64/bin/libsodium-26.dll ./build/

Build docs developers (and LLMs) love