Search code examples
cmakemakefilewebkitubuntu-22.04backtrace

how do I install 'libbacktrace' in Ubuntu 22.04


I can't find instructions to use this

I want to compile WebKit and there I get this error

-- Could NOT find LibBacktrace (missing: LIBBACKTRACE_INCLUDE_DIR LIBBACKTRACE_LIBRARY) 
CMake Error at Source/cmake/OptionsGTK.cmake:425 (message):
  libbacktrace is required for USE_LIBBACKTRACE
Call Stack (most recent call first):
  Source/cmake/WebKitCommon.cmake:237 (include)
  CMakeLists.txt:21 (include)

so I have confirmed that they are using ianlancetaylor/libbacktrace package only

but here in I can't find any instructions to use it, can anyone please help.

please give commands for make, cmake, ninja, etc.

i can see there are some make something files there, so make script might be used. But i am not that an expert in these, if anyone could help.


Solution

  • found the solution

    for anyone who comes and face this later on follow this

    git clone https://github.com/ianlancetaylor/libbacktrace.git
    cd libbacktrace 
    mkdir build 
    cd build 
    ../configure 
    sudo make 
    sudo make install