thanks a lot for this post! it was very helpful for me.btw: I had to inslatl a few extra packages to get this to work (libcvaux-dev, libhighgui-dev, gtk2.0, at least). also, I had to change `pkg-config libs opencv` into `pkg-config libs opencv cflags`, so g++ would know where to find the library. do these look like changes you should incorporate into your patch?