Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when building ddisasm #26

Open
qunqunqun opened this issue Apr 27, 2021 · 2 comments
Open

Problem when building ddisasm #26

qunqunqun opened this issue Apr 27, 2021 · 2 comments
Assignees
Labels
binary fails DDisasm fails to correctly disassemble a binary

Comments

@qunqunqun
Copy link

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).

@qunqunqun qunqunqun added the binary fails DDisasm fails to correctly disassemble a binary label Apr 27, 2021
@jeshan
Copy link

jeshan commented Apr 27, 2021

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.

@gogo2464
Copy link
Contributor

@qunqunqun are you on unbuntu focal? It is the only version to install ddisasm on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binary fails DDisasm fails to correctly disassemble a binary
Projects
None yet
Development

No branches or pull requests

5 participants