ddisasm
ddisasm copied to clipboard
Problem when building ddisasm
trafficstars
I want build ddisasm. I follow
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:mhier/libboost-latest
echo "deb [trusted=yes] https://grammatech.github.io/gtirb/pkgs/bionic ./" | sudo tee -a /etc/apt/sources.list.d/gtirb.list
sudo apt-get update
sudo apt-get install libgtirb gtirb-pprinter ddisasm
And I can use ddisasm in command
ddisasm --help
Usage: ddisasm [OPTIONS...] INPUT_FILE
Disassemble INPUT_FILE and output assembly code and/or gtirb.
Allowed options:
-h [ --help ] produce help message
--version display ddisasm version
However when I build it in cmake, the error occur
~/Desktop/ddisasm-master$ cmake ./ -Bbuild
CMake Error at CMakeLists.txt:149 (find_package):
By not providing "Findgtirb.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "gtirb", but
CMake did not find one.
Could not find a package configuration file provided by "gtirb" (requested
version 1.10.0) with any of the following names:
gtirbConfig.cmake
gtirb-config.cmake
Add the installation prefix of "gtirb" to CMAKE_PREFIX_PATH or set
"gtirb_DIR" to a directory containing one of the above files. If "gtirb"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/qun/Desktop/ddisasm-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/qun/Desktop/ddisasm-master/build/CMakeFiles/CMakeError.log".
could you tell me how to solve it since I could run ddisasm in command line (means I satisfy all requirements).
I had lots of problem too and I made a docker image to solve this: https://hub.docker.com/r/jeshan/ddisasm
Source code: https://github.com/jeshan/ddisasm-docker
Let me know how it goes. Later, we should merge it to this repository.
@qunqunqun are you on unbuntu focal? It is the only version to install ddisasm on.