Re: [tesseract-ocr] difficulty in compiling tesseract 4 file (libtesseract.so) for Android

45 views
Skip to first unread message
Message has been deleted

René Hansen

unread,
Apr 9, 2020, 3:10:54 AM4/9/20
to tesser...@googlegroups.com
Hey Nikko,


Could you provide an MRE? 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 <nikkob...@gmail.com> 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:


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 tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/75fc9a93-ab4e-4b0b-b56e-43d4e38e99d8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages