Tesseract: leptonica library with pdf support (>= 1.71) is missing

Created on 30 Sep 2016  Â·  8Comments  Â·  Source: tesseract-ocr/tesseract

leptonica
I followed the steps of installation of tesseract-ocr. After autogen.sh , I tried ./configure but terminal is showing leptonica library with pdf support (>= 1.71) is missing and no further installation is happening.
I searched for this problem extensively. I installed leptonica-17.3 from source. Then I tried ./configure again. The problem persisted. I again searched. In one closed issue, there was suggestion for ./configure --with-extra-includes=/usr/local/include --with-extra-libaries=/usr/local/lib instead of ./configure. I didn't work.
The problem is still the same.
What to do?
Any suggestion is welcome.

All 8 comments

Please use tesseract user forum for asking support.

I have the same bug. Since it is telling you that you have the wrong version, but that is not the real issue.

this is bug and not a "asking support".

@canny07 i made it work by setting the library path diffierntly. It is probably a old version of leptonica that is "blocking the sight" for the config script .

@Neppord Yeah It seems so. For my case, I found that the older version was the reason of trouble. So, I removed it and downloaded and installed the latest version from the source.
Thanks for answering :)

First, it is recommended to uninstall an older Leptonica before you install new one.

Running sudo ldconfig after sudo make install in both Leptonica and Tesseract installation should prevent the issue you had.

Anyway, it's not a bug in Tesseract.

Anyway, it's not a bug in Tesseract.

In some way it is. I had to fix my Tesseract configuration to get PDF support for the Windows version. Maybe I should have sent a PR earlier – I'll do it now.

Please test and review pull request #473 which should fix this issue.

The cause of their issue is not related to libpng.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samiles picture samiles  Â·  4Comments

clarkk picture clarkk  Â·  6Comments

ivder picture ivder  Â·  7Comments

johnthagen picture johnthagen  Â·  6Comments

clarkk picture clarkk  Â·  7Comments