Skip to content

Building

Giovanni Petrantoni edited this page Nov 7, 2020 · 11 revisions

Building chainblocks

Windows

Requirements

Instructions

We use gcc and clang a lot, MSVC might work but it's uncharted territory.

Make sure you pull this repository with dependencies git submodule update --init --recursive

  1. Open mingw prompt (use mingw64.exe from msys2 folder), run those commands:
    1. pacman -Syu --noconfirm - to do a full update, you might have to reopen the prompt window
    2. pacman -S --needed --noconfirm base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-ninja mingw-w64-x86_64-clang mingw-w64-x86_64-lld - to install dependencies
  2. Add mingw bin to your system environment PATH variable (the windows one, control panel), in otder to run from powershell, vscode, etc
    • Usually C:\msys64\mingw64\bin
  3. Open your favorite terminal (could be within visual studio code) pointing to this repo folder
  4. Run those commands:
    1. mkdir build
    2. cd build
    3. cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ..
    4. ninja format; ninja cbl
Clone this wiki locally