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.
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.
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 .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With