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.
In the Android.mk file, there was a library being linked, named – ‘libjnigraphics’. After the reference to this was removed, I was able to build for the Galaxy SI9000 Android 2.1-update1.