Backend Instructions for Windows
Visual Studio Code
MinGW64 (including gcc, gdb, cmake and boost)
How to setup tools on Windows using MSYS2 (MinGW64)
Get the MSYS2 64 bit installer
install to default location C:\msys64
start msys2 in C:\msys64\msys2.exe
inside the msys2 shell type: pacman -Syuu
(close the shell when you are asked to)
type this command pacman -Syuu
multiple times until there are no updates left ;)
install gcc, gdb and cmake via MSYS2
start msys2.exe and type in msys2 shell:
pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
add C:\msys64\mingw64\bin
to your system PATH
type gcc --version
or g++ --version
to ensure gcc installation is fine
type gdb --version
to ensure gdb installation is fine
type cmake --version
to ensure gdb installation is fine
install missing libraries via MSYS2
start msys2.exe and type in msys2 shell:
pacman -Sy mingw-w64-x86_64-boost
configure VisualStudio Code
add the following lines to .vscode\settings.json
: (cannot be commited due to platform incompatibility)
"cmake.generator" : " MinGW Makefiles" ,
"cmake.cmakePath" : " C:/msys64/mingw64/bin/cmake.exe" ,
"cmake.mingwSearchDirs" : [
" C:/msys64/mingw64" ,
],
"cmake.preferredGenerators" : [
" MinGW Makefiles"
],
select compiler kit [GCC 10.2.0]
in the bottom bar
run cmake:Configure
again
run cmake_Build
run cmake: Run without debugging
open Command Palette Ctrl+Shift+P
and run CMake: Configure
/build
should be created (contains build system)
open Command Palette Ctrl+Shift+P
and run CMake: Build
Run and debug the service
open Command Palette Ctrl+Shift+P
and run CMake: Run without Debugging
With Debugger: open Command Palette Ctrl+Shift+P
and run CMake: Debug