New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsatisfiedLinkError couldn't find "libpngt.so" #113

Closed
achinverma opened this Issue Sep 25, 2015 · 6 comments

Comments

Projects
None yet
3 participants
@achinverma

achinverma commented Sep 25, 2015

hi
i am using this library but when import this library and i run in eclipse i got error
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/edu.sfsu.cs.orange.ocr-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libpngt.so"
09-25 16:32:04.866: E/AndroidRuntime(30754): at java.lang.Runtime.loadLibrary(Runtime.java:366)
09-25 16:32:04.866: E/AndroidRuntime(30754): at java.lang.System.loadLibrary(System.java:988)
09-25 16:32:04.866: E/AndroidRuntime(30754): at com.googlecode.tesseract.android.TessBaseAPI.(TessBaseAPI.java:43)
09-25 16:32:04.866: E/AndroidRuntime(30754): at edu.sfsu.cs.orange.ocr.CaptureActivity.initOcrEngine(CaptureActivity.java:711)
09-25 16:32:04.866: E/AndroidRuntime(30754): at edu.sfsu.cs.orange.ocr.CaptureActivity.onResume(CaptureActivity.java:368)
09-25 16:32:04.866: E/AndroidRuntime(30754): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257)

@rmtheis

This comment has been minimized.

Show comment
Hide comment
@rmtheis

rmtheis Sep 25, 2015

Owner

Please reopen with more details. Did you follow the build instructions, and did you get BUILD SUCCESSFUL?

Owner

rmtheis commented Sep 25, 2015

Please reopen with more details. Did you follow the build instructions, and did you get BUILD SUCCESSFUL?

@rmtheis rmtheis closed this Sep 25, 2015

@achinverma

This comment has been minimized.

Show comment
Hide comment
@achinverma

achinverma Sep 26, 2015

i am using eclipse , i have followed the build instructions but after importing when i run this sample i got the above error,i will post my workspace screen shot. i do not know how build NDK library Tesseract and Leptonica which are persent in tess-two/jni folde , because i never worked on NDK, I need your help OR is there any alternate to this process to build it ?
untitled2

untitled

achinverma commented Sep 26, 2015

i am using eclipse , i have followed the build instructions but after importing when i run this sample i got the above error,i will post my workspace screen shot. i do not know how build NDK library Tesseract and Leptonica which are persent in tess-two/jni folde , because i never worked on NDK, I need your help OR is there any alternate to this process to build it ?
untitled2

untitled

@rmtheis

This comment has been minimized.

Show comment
Hide comment
@rmtheis

rmtheis Sep 26, 2015

Owner

The libs folder is missing from your tess-two project. To fix it, re-run the steps in the build instructions, be sure you get BUILD SUCCESSFUL, and do a fresh import of the project into Eclipse.

Owner

rmtheis commented Sep 26, 2015

The libs folder is missing from your tess-two project. To fix it, re-run the steps in the build instructions, be sure you get BUILD SUCCESSFUL, and do a fresh import of the project into Eclipse.

@achinverma

This comment has been minimized.

Show comment
Hide comment
@achinverma

achinverma Sep 28, 2015

hi @rmtheis , thanks for your reply, i got your point and now i understand the cause of error,
but i don't know about ndk I am struggling with it.
Please Help Me, can you please mail me tess-two project with the missing libs folder, if you have in your pc, my mail id is
achinverma1990@gmail.com

achinverma commented Sep 28, 2015

hi @rmtheis , thanks for your reply, i got your point and now i understand the cause of error,
but i don't know about ndk I am struggling with it.
Please Help Me, can you please mail me tess-two project with the missing libs folder, if you have in your pc, my mail id is
achinverma1990@gmail.com

@achinverma

This comment has been minimized.

Show comment
Hide comment
@achinverma

achinverma Sep 28, 2015

hi i have downloaded the libs folder from here https://github.com/hareeshganesan/tesseractstuff/tree/master/tesseract-android-tools/libs

and now i am getting below error
No implementation found for boolean com.googlecode.tesseract.android.TessBaseAPI.nativeInitOem(java.lang.String, java.lang.String, int) (tried Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem and Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem__Ljava_lang_String_2Ljava_lang_String_2I)

09-28 16:13:48.109: E/AndroidRuntime(13435): java.lang.RuntimeException: An error occured while executing doInBackground()
09-28 16:13:48.109: E/AndroidRuntime(13435): at android.os.AsyncTask$3.done(AsyncTask.java:304)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.lang.Thread.run(Thread.java:818)
09-28 16:13:48.109: E/AndroidRuntime(13435): Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean com.googlecode.tesseract.android.TessBaseAPI.nativeInitOem(java.lang.String, java.lang.String, int) (tried Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem and Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem__Ljava_lang_String_2Ljava_lang_String_2I)
09-28 16:13:48.109: E/AndroidRuntime(13435): at com.googlecode.tesseract.android.TessBaseAPI.nativeInitOem(Native Method)
09-28 16:13:48.109: E/AndroidRuntime(13435): at com.googlecode.tesseract.android.TessBaseAPI.init(TessBaseAPI.java:357)
09-28 16:13:48.109: E/AndroidRuntime(13435): at edu.sfsu.cs.orange.ocr.OcrInitAsyncTask.doInBackground(OcrInitAsyncTask.java:297)
09-28 16:13:48.109: E/AndroidRuntime(13435): at edu.sfsu.cs.orange.ocr.OcrInitAsyncTask.doInBackground(OcrInitAsyncTask.java:1)
09-28 16:13:48.109: E/AndroidRuntime(13435): at android.os.AsyncTask$2.call(AsyncTask.java:292)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.run(FutureTask.java:237)

untitled

achinverma commented Sep 28, 2015

hi i have downloaded the libs folder from here https://github.com/hareeshganesan/tesseractstuff/tree/master/tesseract-android-tools/libs

and now i am getting below error
No implementation found for boolean com.googlecode.tesseract.android.TessBaseAPI.nativeInitOem(java.lang.String, java.lang.String, int) (tried Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem and Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem__Ljava_lang_String_2Ljava_lang_String_2I)

09-28 16:13:48.109: E/AndroidRuntime(13435): java.lang.RuntimeException: An error occured while executing doInBackground()
09-28 16:13:48.109: E/AndroidRuntime(13435): at android.os.AsyncTask$3.done(AsyncTask.java:304)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.lang.Thread.run(Thread.java:818)
09-28 16:13:48.109: E/AndroidRuntime(13435): Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean com.googlecode.tesseract.android.TessBaseAPI.nativeInitOem(java.lang.String, java.lang.String, int) (tried Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem and Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem__Ljava_lang_String_2Ljava_lang_String_2I)
09-28 16:13:48.109: E/AndroidRuntime(13435): at com.googlecode.tesseract.android.TessBaseAPI.nativeInitOem(Native Method)
09-28 16:13:48.109: E/AndroidRuntime(13435): at com.googlecode.tesseract.android.TessBaseAPI.init(TessBaseAPI.java:357)
09-28 16:13:48.109: E/AndroidRuntime(13435): at edu.sfsu.cs.orange.ocr.OcrInitAsyncTask.doInBackground(OcrInitAsyncTask.java:297)
09-28 16:13:48.109: E/AndroidRuntime(13435): at edu.sfsu.cs.orange.ocr.OcrInitAsyncTask.doInBackground(OcrInitAsyncTask.java:1)
09-28 16:13:48.109: E/AndroidRuntime(13435): at android.os.AsyncTask$2.call(AsyncTask.java:292)
09-28 16:13:48.109: E/AndroidRuntime(13435): at java.util.concurrent.FutureTask.run(FutureTask.java:237)

untitled

@vivekmishra0511

This comment has been minimized.

Show comment
Hide comment
@vivekmishra0511

vivekmishra0511 Aug 18, 2017

do not update any gradle aur sdk update... i repeat ..do ignore all the update if asking and it will work smoothly. Just import the project of priyankverma######## from github and IGNORE all the updates ... i am sure you wont get this libpngt.so error.

vivekmishra0511 commented Aug 18, 2017

do not update any gradle aur sdk update... i repeat ..do ignore all the update if asking and it will work smoothly. Just import the project of priyankverma######## from github and IGNORE all the updates ... i am sure you wont get this libpngt.so error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment