DanBloomberg / leptonica

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.
Other
1.79k stars 391 forks source link

Building static libraries both Leptonica and Tesseract #535

Open m0beenali opened 4 years ago

m0beenali commented 4 years ago

Hi everyone!

I'm working on a project for which i need tesseract and leptonica to be built static. I have read the Readme of leptonica followed the instructions but i couldn't get through and build a working and stable version of the libraries. Following is the error i get while running tesseract, pytesseract.pytesseract.TesseractError: (127, '/home/mysite/tesseractWi/bin/tesseract: error while loading shared libraries: libtesseract.so.5: cannot open shared object file: No such file or directory')

This error shows that i have error in linking of libraries. Please i request to kindly guide me to build these libraries statically. P.S. I'm working on Linux.

zdenop commented 4 years ago

https://github.com/Phreak87/LeptonicaSharp/issues/2 https://github.com/DanBloomberg/leptonica/issues/375

m0beenali commented 4 years ago

@zdenop Thanks alot... but i forgot to mention I'm working on Linux and this is for windows...