Closed GoogleCodeExporter closed 9 years ago
The issue has been solved. It was installation of tesseract. I had to reinstall
everything as root and then it worked ! Still I guess the post gives a good
installation case in Fedora for whoever might need it.
Original comment by sourasis...@gmail.com
on 26 Oct 2010 at 12:06
Original comment by zde...@gmail.com
on 26 Oct 2010 at 12:25
Actually, it looks very much like you forgot to run 'ldconfig' as root.
Reinstalling sometimes accidentally invokes that, in some odd situations, but
this is Linux 101 stuff.
Original comment by joregan
on 29 Oct 2010 at 5:59
moved to FAQ:
http://code.google.com/p/tesseract-ocr/wiki/FAQ?ts=1331068532&updated=FAQ#Error_
in_pixReadStream:
Original comment by zde...@gmail.com
on 6 Mar 2012 at 9:18
I had this same issue on fedora core 16. libpng wasn't enough. I had to yum
install libpng-devel, then reinstall leptonica (after make clean) which got rid
of this error.
Original comment by jebbe...@gmail.com
on 23 Apr 2012 at 3:02
@jebbeich: this is not problem of tesseract and IMO neither of leptonica.
Original comment by zde...@gmail.com
on 23 Apr 2012 at 7:12
is there a libpng-devel equivalent for mac?
Original comment by dyua...@gmail.com
on 2 Aug 2012 at 9:32
I don't think you need libpng-devel.
For mac, I did this:
`sudo port install jpeg tiff libpng`
After this, I located the directories where port installed files corresponding
to these packages for e.g.
sudo port contents jpeg
Port jpeg contains:
/opt/local/bin/cjpeg
/opt/local/bin/djpeg
/opt/local/bin/jpegtran
/opt/local/bin/rdjpgcom
/opt/local/bin/wrjpgcom
/opt/local/include/jconfig.h
/opt/local/include/jerror.h
/opt/local/include/jmorecfg.h
/opt/local/include/jpeglib.h
/opt/local/lib/libjpeg.9.dylib
/opt/local/lib/libjpeg.a
/opt/local/lib/libjpeg.dylib
/opt/local/share/doc/jpeg/README
/opt/local/share/doc/jpeg/change.log
/opt/local/share/doc/jpeg/libjpeg.txt
/opt/local/share/doc/jpeg/structure.txt
/opt/local/share/doc/jpeg/usage.txt
/opt/local/share/doc/jpeg/wizard.txt
/opt/local/share/man/man1/cjpeg.1.gz
/opt/local/share/man/man1/djpeg.1.gz
/opt/local/share/man/man1/jpegtran.1.gz
/opt/local/share/man/man1/rdjpgcom.1.gz
/opt/local/share/man/man1/wrjpgcom.1.gz
Next, I went back to leptonica source folder and ran:
`./configure LDFLAGS=-L/opt/local/lib/ CFLAGS=-I/opt/local/include/`
`make`
`sudo make install`
At this point, your leptonica should be installed with support for png, jpeg
and tiff.
Now, when I run `tesseract some.jpg output`, it runs without error.
Original comment by prateekb...@gmail.com
on 19 Sep 2014 at 6:01
Original issue reported on code.google.com by
sourasis...@gmail.com
on 26 Oct 2010 at 11:20