[MacPorts] #62832: Enable Tesseract support for ghostscript
MacPorts
noreply at macports.org
Thu May 6 20:56:12 UTC 2021
#62832: Enable Tesseract support for ghostscript
-------------------------+-------------------------
Reporter: nickgaya | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: ghostscript
-------------------------+-------------------------
Ghostscript 9.53.0 added optional support for the Tesseract OCR engine. In
9.54.0, Tesseract/Leptonica sources were added to the release archive.
However, I was not able to successfully build Ghostscript 9.54.0 with
Tesseract enabled, due to errors such as this:
{{{
:info:build tesseract/include/tesseract/unichar.h:24:10: fatal error:
'cstring'
file not found
:info:build #include <cstring>
:info:build ^~~~~~~~~
}}}
I think this warning is relevant, but I'm not familiar enough with C++ to
know how to fix it:
{{{
:info:build warning: include path for stdlibc++ headers not found; pass
'-stdlib
=libc++' on the command line to use the libc++ standard library instead
[-Wstdli
bcxx-not-found]
}}}
Perhaps it might be possible to use the tesseract/leptonica ports instead
of the Ghostscript versions, although this might require modifying the
build.
See also:
* https://www.ghostscript.com/doc/9.54.0/News.htm
* https://www.ghostscript.com/ocr.html
--
Ticket URL: <https://trac.macports.org/ticket/62832>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list