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!
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
On Windows, I had to download zstd from the zstd Github releases page and add these arguments to cmake (adjust your zstd location):
-D ZSTD_LIBRARY="C:/zstd-v1.5.6-win64/dll/libzstd.dll" -D ZSTD_INCLUDE_DIR="C:/zstd-v1.5.6-win64/include"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With