Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.02 KB

build-msys2.md

File metadata and controls

53 lines (37 loc) · 1.02 KB

Windows (MSYS2) Build Notes

This guide describes how to build gridcoinresearchd, command-line utilities, and GUI on Windows.

Preparing the Build

First, install MSYS2. All commands below are supposed to be run in the MSYS2 UCRT64 shell.

Run the following to install the base dependencies for building:

pacman -S make ninja pactoys
pacboy -S boost:p cmake:p curl:p libzip:p openssl:p toolchain:p
pacboy -S qrencode:p qt5-base:p qt5-tools:p  # optional for the GUI

To Build

1. Configuration

To configure with gridcoinresearchd:

mkdir build && cd build
cmake .. -DBUILD_SHARED_LIBS=OFF

To configure with GUI:

mkdir build && cd build
cmake .. -DENABLE_GUI=ON -DBUILD_SHARED_LIBS=OFF

Note

See also: CMake Build Options

2. Compile

cmake --build .  # use "-j N" here for N parallel jobs

3. Test

cmake .. -DENABLE_TESTS=ON
cmake --build .
ctest .