Could NOT find LIBBACKTRACE (missing: LIBBACKTRACE_STATIC_LIBRARY LIBBACKTRACE_INCLUDE_DIR)
时间: 2023-09-12 20:05:22 浏览: 204
This error message usually indicates that the LIBBACKTRACE library is not installed on your system or the CMake cannot find it. To resolve this issue, you need to install LIBBACKTRACE library or specify the location of the library to CMake.
If you are using Linux, you can install the library using your package manager. For example, on Debian-based systems, you can run the following command:
```
sudo apt-get install libbacktrace-dev
```
If you have already installed the library, you can specify the location of the library to CMake by setting the LIBBACKTRACE_ROOT_DIR variable. For example:
```
cmake -DLIBBACKTRACE_ROOT_DIR=/path/to/libbacktrace ..
```
Make sure to replace "/path/to/libbacktrace" with the actual path where the library is installed on your system.