Skip to content

Installing

FloweyTheFlower420 edited this page Aug 5, 2021 · 5 revisions

Dependancies

Make sure that you have the supported compilers:

  • MSVC
  • g++
  • clang

Windows

No deps needed

Linux/MacOS

You need either libbacktrace or libbfd. Depending on which you use, you'll need to add the flags -DUSE_LIBBDF_DECODE=ON or -DUSE_BACKTRACE_DECODE=ON

Building

Linux

Make sure you have cmake and make installed, then run

mkdir build
cd build
cmake .. [FLAGS]
sudo make install

Windows

Usage

To use this after you installed it, add

find_package(stacktrace CONFIG REQUIRED)
target_link_libraries(yourapp stacktrace)

to your cmake file to be able to use #include <stacktrace.h>

Clone this wiki locally