Building tesseract without leptonica

173 views
Skip to first unread message

Harsha Jayaweera

unread,
Jul 5, 2015, 7:43:09 AM7/5/15
to tesser...@googlegroups.com
I need to build tesseract without leptonica dependency for some work(to porting using emscripten).
I looked into the make files and it seems tesseract requires leptonica header files and lib files in order to build.

Providing header files is not an issue but i can't provide lib files because of some reason(emscripten doesn't generate lib files of leptonica). and i tried to stop tesseract asking for leptonica by editing make files but it seems i'm heading in wrong way. 

I'm very new to make/autotools stuff and what i did was removing $LIB flag from "ac_link" variable throughout the script and also in more few places i thought it was calling. But i guess these build system might have a way to remove dependencies in a cleaner way without editing the arbitrary places in configure script(may be some places like makefile.am, or somewhere). Or is there any other way i can build tesseract without leptonica and how can i exactly do it ?. 

Sorry if i have used wrong terminologies like i said i'm not much familiar with above build systems.

Jeff Breidenbach

unread,
Jul 17, 2015, 11:45:41 PM7/17/15
to tesser...@googlegroups.com
Forget it. Leptonica is a core requirement and provides the primary in memory image data structure, Pix.

Jim O'Regan

unread,
Jul 18, 2015, 4:29:22 AM7/18/15
to tesser...@googlegroups.com
On 5 July 2015 at 12:43, Harsha Jayaweera
<harshapl400so...@gmail.com> wrote:
> I need to build tesseract without leptonica dependency for some work(to
> porting using emscripten).

Leptonica provides all of the image handling for Tesseract, so step
one for an emscripten/javascript port would be to port Leptonica.

Step two would be to rewrite the data loading to something that makes
sense for javascript, which is not a small task.

If you just need OCR in javascript, gocr and ocrad have been ported;
if you absolutely must use Tesseract, I'd suggest you try to find a
version from the 2.0 series, which can be built without Leptonica, and
has simpler data requirements.

--
<Sefam> Are any of the mentors around?
<jimregan> yes, they're the ones trolling you
Reply all
Reply to author
Forward
0 new messages