Skip to content

Installing

Floweynt edited this page Dec 22, 2022 · 5 revisions

Dependancies

Make sure that you have the supported compilers:

  • MSVC
  • g++
  • clang

Compatibility

Stacktrace

OS WinApi execinfo.h libbacktrace libunwind
Windows ✔️ ✔️
Linux ✔️ ✔️ ✔️
MacOS ✔️ ✔️ ✔️

Symbols

OS No-op WinApi libbfd libbacktrace
Windows ✔️ ✔️ ✔️
Linux ✔️ ✔️ ✔️
MacOS ✔️ ✔️ ✔️

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

Clone the project as a sub(directory|module), and add

add_subdirectory(stacktrace)
target_include_directories(<project> PUBLIC "${PROJECT_SOURCE_DIR}/stacktrace/include")
add_dependencies(<project> stacktrace)
target_link_libraries(<project> PRIVATE stacktrace)
Clone this wiki locally