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.