This project uses CMake as its buildsystem with dependencies fetched automatically via FetchContent You just need CMake, git and a C++ compiler that supports c++17 or higher.
sudo apt update && sudo apt install cmake git build-essential libomp-devsudo dnf install cmake git gcc-c++ libomp-develsudo pacman -Syu cmake git base-devel openmp- install Xcode Command Line Tools (includes compiler + git)
xcode-select --install- install cmake via homebrew (it will also work if you install it manually)
brew install cmake libomp- clone the repository
git clone "https://github.com/G-rox-y/DAGReader" && cd ./DAGReader- create the build (if you want a debug version, change the -D flag to
-DCMAKE_BUILD_TYPE=Debug)
cmake -B ./build -S . -DCMAKE_BUILD_TYPE=Release- build the project
cmake --build build- And you can now run the program thats inside the
buildfolder with
./build/DAGReaderThe following method uses MSYS2 to build the program, I am aware this is also possible to do with Visual Studio, but this method requires less external tools.
First, you will have to install MSYS2 (https://www.msys2.org/).
After that, you should run the newly installed UCRT64 shell.
Warning
If MSYS2 was already installed on your system you should open the MSYS2 shell and run pacman -Syu, then close it and do the same in the UCRT64 shell, this is important to make sure the environment is up to date. If MSYS2 was not on your system you can safely ignore this warning
After starting the shell install dependencies
pacman -S --needed git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninjaImportant
Use only the UCRT64 shell for the build steps below. Don’t mix different shells (UCRT, MINGW, CLANG) within the same build directory.
- From inside the MSYS2 UCRT64 shell, navigate to the folder where you want to clone the project, and clone the repo
git clone "https://github.com/G-rox-y/DAGReader" && cd ./DAGReaderNote
If you dont know how to navigate, doing cd /c/ will put you on the root of the C drive, same goes for cd /d/ and the D drive, then you can cd into the correct folder
- After that, create the build
cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release- And build the project
cmake --build build -j- And finally run the newly created binary
./build/DAGReader.exe