Menu

#9 configure: error: GOCR API check failed; make sure you have installed libgocr-dev package or check config.log

1.0
closed
nobody
None
2024-09-09
2024-09-04
No

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?

Discussion

  • Igor

    Igor - 2024-09-05

    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

     
  • Lyubomir Kotopanov

    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

     
  • Igor

    Igor - 2024-09-05

    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.

     
  • Lyubomir Kotopanov

    Works now, thanks

     
  • Igor

    Igor - 2024-09-09
    • status: new --> closed
     

Log in to post a comment.