-
Notifications
You must be signed in to change notification settings - Fork 14
Building
Giovanni Petrantoni edited this page Nov 7, 2020
·
11 revisions
- msys2 - https://www.msys2.org/
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
- Open mingw prompt (use
mingw64.exe
from msys2 folder), run those commands:-
pacman -Syu --noconfirm
- to do a full update, you might have to reopen the prompt window -
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
-
- 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
- Usually
- Open your favorite terminal (could be within visual studio code) pointing to this repo folder
- Run those commands:
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ..
ninja format; ninja cbl