Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid mupdf libmupdf.so runtime error "No implementation found for native openFile"
    text
    copied!<p>I just finished compiling mupdf from mupdf.com on my mac. Took some time to figure it out but now I have a libmupdf.so in my libs/armeabi folder. </p> <p>They provide an example of this class called MuPDFCore.java which is viewable here: <a href="http://mupdf.com/repos/mupdf/android/src/com/artifex/mupdf/MuPDFCore.java" rel="noreferrer">http://mupdf.com/repos/mupdf/android/src/com/artifex/mupdf/MuPDFCore.java</a></p> <p>I used this class in my project and it says the following in LogCat:</p> <blockquote> <p>Trying to load lib /data/data/com.myapp.android/lib/libmupdf.so 0x4070e050</p> <p>Added shared lib /data/data/com.myapp.android/lib/libmupdf.so 0x4070e050</p> <p>No JNI_OnLoad found in /data/data/com.myapp.android/lib/libmupdf.so 0x4070e050, skipping init</p> <p>No implementation found for native Lcom/myapp/android/viewer/MuPDFCore;.openFile (Ljava/lang/String;)I</p> <p>DEBUG/AndroidRuntime(27523): Shutting down VM</p> <p>WARN/dalvikvm(27523): threadid=1: thread exiting with uncaught exception (group=0x400ee760)</p> <p>ERROR/AndroidRuntime(27523): FATAL EXCEPTION: main</p> <p>ERROR/AndroidRuntime(27523): java.lang.UnsatisfiedLinkError: openFile</p> </blockquote> <p>As far as I know the library is loading, before I figured out how to compile the library it kept crashing and saying the "mupdf" is a null link. </p> <p>Their example pretty much says that openFile is a native function ... Just when I thought I figured this out another problem pops up. Ive been working on it all day. Any input would be great!</p> <p>Is it a bad compile? I didn't get any errors in the terminal.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload