[MacPorts] #32907: tesseract @3.00_2+eng Not using leptonica
MacPorts
noreply at macports.org
Mon Jan 16 14:41:08 PST 2012
#32907: tesseract @3.00_2+eng Not using leptonica
-----------------------------+----------------------------------------------
Reporter: jack@… | Owner: emer@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: tesseract
-----------------------------+----------------------------------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => emer@…
* type: defect => enhancement
* port: => tesseract
Old description:
> 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.
New description:
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.
--
Comment:
Please remember WikiFormatting.
--
Ticket URL: <https://trac.macports.org/ticket/32907#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list