So after too many hours finally it's been solved. It goes like this:
- Download libdwarf-20130207.tar.gz
Extract the archive and in a new terminal type:
cd dwarf-2013-02-07/libdwarf ./configure --enable-shared make -j$(nproc)If you need a 32 bit library (as in my case), just open the
MakeFileand add-m32toCFLAGSCFLAGS = -m32 $(PREINCS) -g -O2 $(INCLUDES) $(dwfpic) $(POSTINCS)At the end, just copy the
libdwarf.sointo/usr/lib
So after too many hours finally it's been solved. It goes like this:
- Download libdwarf-20130207.tar.gz
Extract the archive and in a new terminal type:
cd dwarf-2013-02-07/libdwarf ./configure --enable-shared make -j$(nproc)If you need a 32 bit library (as in my case), just open the
MakeFileand add-m32toCFLAGSCFLAGS = -m32 $(PREINCS) -g -O2 $(INCLUDES) $(dwfpic) $(POSTINCS)At the end, just copy the
libdwarf.sointo/usr/lib
I suspect this wasn't true when the question was asked, but in 2018:
sudo apt-get install libelf-dev libdwarf-dev
You might also be interested in https://github.com/aclements/libelfin.
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"