davidcarne / pcbre

Personal development branch for pcbre (probably not what you want)
http://github.com/pcbre/pcbre
78 stars 7 forks source link

Installation is very hard #1

Open trou opened 9 years ago

trou commented 9 years ago

Hello, first, thank you for your presentation at Recon which was really cool. Also thanks for releasing this tool.

I am mainly opening this issue to document the problems that I have when trying to install pcbre on Debian sid :

Once most libraries are installed : rtree and opengl module are missing, fix with :

apt install libspatialindex-dev
pip install rtree PyOpenGL

THEN pcbre starts :)

Note that python3-opengl from Debian does not work.

davidcarne commented 9 years ago

First of, thanks for giving pcbre a go. It being a huge pain to install is unfortunately a known issue - but one I'm very interested in fixing!

Comments inline:

the readme does not clearly state that Python 3 is needed

Good catch, I'll update this

apt-get install libcapnp-dev python3-numpy python3-scipy libgeos-dev python3-mock python3-pyside cython3 libpotrace-dev libagg-dev cover most dependancies

Thanks, I'll add this to the README, along with the libraries below

your fork of pypotrace where you changed "agg_pic" to "agg" in setup.py breaks compilation on Debian

Hmm, good point. I'd forgotten I had to do this - the main point of the fork was Python3 compatibility. This was due to some kind of Gentoo issue. I'll back it out and look for a better fix.

pycapnp doesn't find schema.capnp when installing, PYTHONPATH must be modified by hand

Now thats a bit odd. Do you mean that schema.capnp doesn't get installed into pcbre.model.serialization? I'll get a debian VM up and check this out

opencv-2 doesn't have python3 bindings, one must install opencv-3 to have python3 bindings.

Yes - I'm using cv3. Does debian have an opencv3 package?

trou commented 9 years ago

For pycapnp I'm not really sure of what's going on. I've been messing with it so it may be my fault.

Debian has no opencv3 package, I compiled it from source.

deactivated commented 9 years ago

Hi,

I also really enjoyed your presentation at Recon! Here are my notes from installing pcbre on OS X:

I ran into a few issues with OpenGL support. Some of these might merit a separate issue:

balr0g commented 9 years ago

@deactivated: how did you patch PyQt4? I was able to make it work with PySide by patching Qt4 itself, but that's quite annoying.

deactivated commented 9 years ago

@balr0g I manually applied this patch from prideout/coregl-python/pyqt-hacks to a recent version of PyQt4.

It's also possible to build PyQt4 directly against Qt 5—I tried that, and it solves the OpenGL profile issue, however the UI was a bit buggy, and I couldn't tell which issues were related to Qt 5 and which were in pcbre.