Opened 13 years ago
Last modified 13 years ago
#32907 closed enhancement
tesseract @3.00_2+eng Not using leptonica — at Version 1
Reported by: | jack@… | Owned by: | emer@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | ||
Port: | tesseract |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
TL;DR version: tesseract isn't building with leptonica. Long version:
If install tesseract using:
$ sudo port selfupdate $ sudo port install tesseract
... I get an install in /opt/local that gives me this on invocation:
Tesseract Open Source OCR Engine with LibTiff
... and fails to handle any PNG I pass it, telling me something like this:
name_to_image_type:Error:Unrecognized image type:fe-1.png IMAGE::read_header:Error:Can't read this image type:fe-1.png Read of file fe-1.png failed.
When I look in the configure script, I see that the leptonica check looks like:
16433 # Check location of leptonica/liblept headers. 16434 have_lept=no 16435 for incd in /usr/local/include /usr/include 16436 do 16437 for lept in . leptonica liblept 16438 do 16439 if test -r "$incd/$lept/allheaders.h" ; then 16440 CPPFLAGS="$CPPFLAGS -I$incd/$lept" 16441 have_lept=yes 16442 fi 16443 done 16444 done
... and adding /opt/local/include to line 16435, then re-building, gets me a binary that gives me this on invocation:
Tesseract Open Source OCR Engine with Leptonica
... which happily processes whatever PNG I pass it.
Change History (1)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to emer@… |
Port: | tesseract added |
Type: | defect → enhancement |
Note: See
TracTickets for help on using
tickets.
Please remember WikiFormatting.