Compiled JNI library (libmupdf.so), works fine for Android 2.2 and Android emulator, but does not work on Android 2.1

I managed to create the mupdf library for android (libmupdf.so) and I got her work on the emulator. I used ndk: android-ndk-r5b and android-ndk-r4b, both work fine.

I have an application. which calls the mupdf library to read the PDF file and saves it as jpg files on the SD card.

This works great on the emulator (both 2.1 and 2.2) , as well as on the Android API level 8 device (LG Optimus).

However, on the Samsung Galaxy S (Android 2.1-update1 API level 7) , the application installs normally, but when I start, I get an error message:

ERROR / AndroidRuntime: caused by: java.lang.UnsatisfiedLinkError: mupdf library not found

I tried to build a library with ndk-r5b, as well as before. versions are ndk-r4, ndk-3 and ndk-r4b. There seems to be no change :(

Any ideas on what might cause the error?!?! Any suggestions / help are appreciated.

+3
source share
4 answers

The mupdf assembly file - Android.mk included the jnigraphics library, which is not required.

Linking this library to running Android 2.2 or the emulator (2.2 or 2.1) does not cause any problems. However, if this library is turned on and then runs on Android 2.1, (I used the Galaxy SI9000 Android 2.1-update1), it causes Android a runtime error, 'The mupdf library was not found.

Android.mk , - libjnigraphics. , , Galaxy SI9000 Android 2.1-update1.

0

Dalvik JNI Tips . , , logcat , dlopen().

+3

mupdf - Android.mk jnigraphics, .

Android 2.2 (2.2 2.1) . , Android 2.1 ( Galaxy SI9000 Android 2.1-update1), Android, " mupdf ".

0

I had problems loading the JNI library using android-ndk-r5b on Android 2.1-update1 devices (in particular, the Samsung Galaxy I9000), it worked fine on Android 2.2 / 2.3. Using android-ndk-r7 gave me some compilation problems, but after I updated NDK to android-ndk-r5c version - my native library works fine on Android 2.1-update1 / 2.2 / 2.3 devices.

0
source

All Articles