This morning I tried to use tesseract and I'm getting the following error messages:
$ tesseract --list-langs
Error in pixReadMemTiff: function not present
Error in pixReadMem: tiff: no pix returned
Error in pixaGenerateFontFromString: pix not made
Error in bmfCreate: font pixa not made
List of available languages (6):
eng
fra
ita
mlt
osd
spa
I tried sudo apt purge tesseract* followed by a reinstall of tesseract-ocr and language files, but the error message remains.
Last week, I manually installed leptonica-1.7.8 and jbig2-enc libraries to use with ocrmypdf and everything was working fine.
Any clues on how to proceed to solve this issue?
libjpeg,libtiff,libpngand then compileleptonica. – BeastOfCaerbannog Oct 07 '19 at 12:15sudo apt install libpng-dev libtiff5-dev libwebp-dev libopenjp2-7-dev libgif-dev. Then I recompiled leptonica and everything worked. However it still remains a mystery why I didn't have problems the first time round. – To Do Oct 07 '19 at 16:28