I was able to build the mupdf library for android (libmupdf.so) and I got it working on the emulator. I have used the ndk: android-ndk-r5b & android-ndk-r4b, both work fine.
I have an app. that calls the mupdf library to read a PDF & save it as jpg files to the sdcard.
This works fine on the emulator (both 2.1 and 2.2) as well as on an Android 2.2 device API level 8 (LG Optimus).
However, on the Samsung Galaxy S (Android 2.1-update1 API level 7), the app installs fine, but on running, I'm getting the error :
ERROR/AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: Library mupdf not found
I have tried building the library with ndk-r5b as well as prev. versions - ndk-r4, ndk-3 and ndk-r4b. There seems to be no change :(
Any ideas on what might be causing the error?!?! Any suggestions / help is appreciated.
There are some suggestions in the Dalvik JNI Tips document. The first thing to do is look at the logcat output above the exception and see if there's a dlopen() diagnostic.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With