incorrect libraries causing tesseract and leptonic to give errors

Daniel Bertrand danieljamesbertrand at me.com
Mon Aug 20 06:55:27 PDT 2012


Something is wrong with macports install of tesseract and/or leptonica.

I did sudo port install leptonica, sudo port install tesseract, no errors.



Then, when trying to run

tesseract training-text.tiff da

I get:

Tesseract Open Source OCR Engine v3.01 with Leptonica
TIFFstream: Sorry, can not handle image.
Error in pixReadFromTiffStream: failed to read tiffdata
Error in pixReadStreamTiff: pix not read
Error in pixReadStream: tiff: no pix returned
Error in pixRead: pix not read
Unsupported image type.


libraries linked in:

ldd /opt/local/bin/tesseract 

/opt/local/bin/tesseract:
	/opt/local/lib/libtesseract.3.dylib (compatibility version 4.0.0, current version 4.1.0)
	/opt/local/lib/liblept.3.dylib (compatibility version 4.0.0, current version 4.0.0)
	/opt/local/lib/libpng14.14.dylib (compatibility version 27.0.0, current version 27.0.0)
	/opt/local/lib/libgif.4.dylib (compatibility version 6.0.0, current version 6.7.0)
	/opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0)
	/opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/local/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0)
	/opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libtiff.3.dylib (compatibility version 13.0.0, current version 13.5.0)
	/opt/local/lib/libjpeg.8.dylib (compatibility version 13.0.0, current version 13.0.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
	/opt/local/lib/libwebp.2.dylib (compatibility version 3.0.0, current version 3.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)


Please help. very exasperating.





More information about the macports-users mailing list