Hey Nikko,
Could you provide an MRE <https://stackoverflow.com/help/minimal-reproducible-example>? That would make it easier to troubleshoot. Alternatively you could also try to build and run the provided tesseract test apps on an android device, providing the proper path to the shared libs you built: https://github.com/rhardih/bad/tree/master/tests /René On Wed, 8 Apr 2020 at 06:21, nikko bellic <[email protected]> wrote: > I am trying to compile tesseract 4 (libtesseract.so) for ARM_64 bit & > ARM_32 bit architectues for android (compiling on a windows 10 PC). I am > using this doc for reference: > tesseract_compilation_android > <https://tesseract-ocr.github.io/tessdoc/Compiling.html#android>. > > > Problem with 1st approach: > The problem is, i am not able to run the steps of the first approach of > ndk-build -C tess-two-git/tess-two tesseract APP_ABI=arm64-v8a > > Tried with Cgywin for windows, and also with virtual box (with ubuntu 18). > Get the same error > >> "ndk-build command not found" > > Now, are there any additional steps i need to follow to make it work? > Where to run it, how to run? Any suggestions would be great. > > > Problem with 2nd approach: > When i tried the 2nd docker based approach, i was able to succesfully > create a libtesseract.so file for ARM8 (64bit). But, when i tried it on > actual android device, tesseract initialization failed at > tessHandle = TessBaseAPICreate(); > with the error > >> "Unable to load DLL "libtesseract.so": The specified module could not be >> found." > > What did I do wrong here? Any suggestions about what could have caused > this failure? > [ libtesseract.so has been compiled using virtual machine (with ubuntu > 18), following the steps mentioned in above doc] > [this compiled libtesseract.so file is present in attachement, if anyone > wants to check it out] > > Thanks > Nikko > > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/75fc9a93-ab4e-4b0b-b56e-43d4e38e99d8%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/75fc9a93-ab4e-4b0b-b56e-43d4e38e99d8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAB-60njtLvfP1gwrsHtXgLG0ZUS%3DfrkEKOygzy4NbGDqjCbEHw%40mail.gmail.com.

