Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure: error: leptonica library missing (when building tesseract-ocr-3.01 on MinGW)

When running configure it fails with

checking for leptonica... yes
checking for pixCreate in -llept... no
configure: error: leptonica library missing

But I have leptonica 1.69 built (downloaded source and ran ./configure && make install)


Edit

I think configure: error: leptonica library missing is a bit misleading, please note that it first says checking for leptonica... yes, and then fails on checking for pixCreate in -llept... no. So maybe the problem is not that the library is missing, but something else.

like image 628
sashoalm Avatar asked Oct 19 '12 09:10

sashoalm


People also ask

What is Leptonica library?

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation and recent releases.

How do I install Tesseract from source?

To do this: Download the latest SW (Software Network https://software-network.org/client/ ) client from https://software-network.org/client/ . Checkout tesseract sources git clone https://github.com/tesseract-ocr/tesseract tesseract && cd tesseract . Run sw build .


1 Answers

I am working on redhat linux 7.2 . None of the solution worked for me
I was getting following errors in config.log.
Package lept was not found in the pkg-config search path. Perhaps you should add the directory containing `lept.pc' to the PKG_CONFIG_PATH environment variable

PKG_CONFIG_PATH
configure script uses pkg-config utility to check for packages .
It was not able to find lept package ( although i had installed leptonica seperately )
By setting PKG_CONFIG_PATH pointing to the directory where lept.pc is present , i was able to resolve the issue .
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

like image 120
Tanmay Patil Avatar answered Sep 28 '22 06:09

Tanmay Patil