Works now, thanks
I have already downloaded and built gocr and openbabel from osra.sf.net. I noticed that the lib folder is empty - not sure if that should be the case. I tried this: ./configure --with-gocr-include=/home/kotop/gocr-0.50pre-patched/src --with-gocr-lib=/home/kotop/gocr-0.50pre-patched/lib But not it says it can't find pgm2asc.h which I tripled checked that it's in the src folder. I also tried pointing it to only gocr folder (/home/kotop/gocr-0.50pre-patched) but still can't find pgm2asc.h
configure: error: GOCR API check failed; make sure you have installed libgocr-dev package or check config.log