Code Monkey home page Code Monkey logo

Comments (6)

marcinslusarz avatar marcinslusarz commented on June 2, 2024

Where do you have capstone.pc installed?

from syscall_intercept.

maceip avatar maceip commented on June 2, 2024

I compiled and make install'd libcapstone from git, then did an apt-get install libcapstone-dev:

$ sudo apt list --installed | grep capstone
libcapstone-dev/xenial,now 3.0.4-0.2 amd64 [installed]
libcapstone3/xenial,now 3.0.4-0.2 amd64 [installed,automatic]

and i'm still getting

CMake Error at cmake/find_capstone.cmake:42 (message):
capstone library not found

capstone.pc is inside of my compiled capstone directory:

$ pwd
/home/maceip/capstone
$ cat capstone.pc
Name: capstone
Description: Capstone disassembly engine
Version: 3.0.5
libdir=/usr/lib
includedir=/usr/include/capstone
archive=${libdir}/libcapstone.a
Libs: -L${libdir} -lcapstone
Cflags: -I${includedir}

from syscall_intercept.

marcinslusarz avatar marcinslusarz commented on June 2, 2024

Ubuntu, like any modern distro, can "have" pkg-config. You just need to install it.
apt-get install pkg-config

from syscall_intercept.

maceip avatar maceip commented on June 2, 2024

I updated my comment. I installed pkg-config but i'm still not sure how to get CMAKE to understand where the lib is

from syscall_intercept.

marcinslusarz avatar marcinslusarz commented on June 2, 2024

Put capstone.pc in /usr/lib/pkgconfig/ and cmake will find it. Or you can set PKG_CONFIG_PATH environment variable to /home/maceip/capstone.

from syscall_intercept.

maceip avatar maceip commented on June 2, 2024

thanks for your help here, now cmake succeeds.

from syscall_intercept.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.