7

I had an issue while installing headptrack with CMake when running cmake -DCMAKE_BUILD_TYPE=Release .. in heaptrack/build

-- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR) 
CMake Error at 3rdparty/libbacktrace/CMakeLists.txt:160 (message):
  Could not find dwarf.h, try installing the dwarf or elfutils development
  package.


-- Configuring incomplete, errors occurred!
trincot
  • 317,000
  • 35
  • 244
  • 286
Hugo Sohm
  • 2,872
  • 4
  • 23
  • 40

1 Answers1

11

The solution is to install the zstd dev package instead of the regular, here is the command:

sudo apt install -y libzstd-dev

The solution with the dwarf dev package for the second error:

sudo apt install libdwarf-dev 
Hugo Sohm
  • 2,872
  • 4
  • 23
  • 40
  • Installing libzstd-dev didn't work for me. Installing zstd was fine for me: sudo apt install -y zstd – oml Nov 19 '22 at 17:55