bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.68k stars 467 forks source link

cmake requires minimum version 3.10, and stack information does not show function names #286

Open yongxiangzheng opened 1 year ago

yongxiangzheng commented 1 year ago

image Hello, I am in my project requiring cmake minimum version 3.10 and appear stack does not show the function name. Then backward project only modified cmake to require the minimum version of 3.10, which is the same problem, may I ask what causes this?

bombela commented 1 year ago

You appear to be targeting Linux x86_64, you might have forgotten to install the stack walking and stack resolver libraries. Read the doc to find out which library you can use and what they do. And use whatever package manager of your Linux distribution to install it.

backward-cpp is a simple header only library. It is configured via the preprocessor. And you have to link to the libraries you want to use for walking the stack and resolving traces.

The CMake support is supposed to make it convenient to find and add the #define and link to the libraries. But it can only find what is installed of course.