Closed dylib closed 8 years ago
For some reason you appear to have not installed capstone.pc
, which is how EDB finds Capstone (via pkg-config
). If pkg-config --modversion capstone
doesn't tell you the correct version, Capstone is not installed correctly.
If you do have the file installed (which I don't see in the log you provided), they you may want to try setting PKG_CONFIG_PATH
environment variable before running cmake
.
@10110111 : Well that would certainly make some sense, although where do I find capstone.pc
and what is the process for installing it correctly? I searched around, although came up empty.
Before I was just following the docs from the capstone documentation, and hoping for the best.
I've just cloned capstone's v3 branch, and simple make && make DESTDIR=/tmp/cpst install
installed the files like this:
mkdir -p /tmp/cpst/usr/lib
install -m0755 ./libcapstone.so /tmp/cpst/usr/lib
cd /tmp/cpst/usr/lib && \
mv libcapstone.so libcapstone.so.3 && \
ln -s libcapstone.so.3 libcapstone.so
install -m0644 ./libcapstone.a /tmp/cpst/usr/lib
mkdir -p /tmp/cpst/usr/include/capstone
install -m0644 include/*.h /tmp/cpst/usr/include/capstone
mkdir -p /tmp/cpst/usr/lib/pkgconfig
install -m0644 ./capstone.pc /tmp/cpst/usr/lib/pkgconfig/
From your output I see you used cmake to build capstone. I guess their CMakeLists.txt
has a bug you may want to report. Meanwhile, try the simple make
approach I've described above.
Thanks, your tips / information helped ( successfully installed ):
$ pkg-config --modversion capstone
...
Perhaps you should add the directory containing `capstone.pc'
to the PKG_CONFIG_PATH environment variable
No package 'capstone' found
$ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/tmp/cpst/usr/lib/pkgconfig/
$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/usr/bin/pkg-config:/tmp/cpst/usr/lib/pkgconfig/
$ make && make DESTDIR=/tmp/cpst install
$ pkg-config --modversion capstone
3.0.4
So now onto the next next issue, which seems to be related to Qt5XmlPatternsConfig.cmake
... I'm reinstalling it, but that's another story I guess...
Yeah, just make sure that you don't consider /tmp/cpst
a permanent location: it'll be lost on reboot. I was using it just as a test.
While trying to compile on CentOS 6.5 cmake fails with a vague error:
I've compiled and installed capstone 3.0.4:
I'm really unclear as to what the exact issue is and where the failure might be.