configure: error: GOCR API check failed; make sure you have installed...
Brought to you by:
igor_filippov
I installed all required dependancies (gocr, poppler, ocrad, etc.).
When I try to ./configure osra, I always get the same error:
"configure: error: GOCR API check failed; make sure you have installed libgocr-dev package or check config.log."
I tried sudo apt-get install libgocr-dev but it gives:
"Unable to locate package libgocr-dev."
I cannot find this package anywhere. I installed gocr-dev which was located but still cannot configure osra.
Any suggestions?
Lyobomir,
Please download and build patched versions of gocr and openbabel available from osra.sf.net:
https://sourceforge.net/projects/osra/files/gocr-patched/
https://sourceforge.net/projects/osra/files/openbabel-patched/
If osra configure script does not detect GOCR or OpenBabel headers you can use command-line options to point to the installation folders, for example:
--with-gocr-include=/usr/local/include/gocr/
--with-openbabel-include=/usr/local/include/openbabel3/
Hope this helps,
Igor
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
Lyubomir,
When you were building gocr did you run:
make libs
make all install
The header should not be installed in src folder, and there certainly needs to be a library built.
Works now, thanks