Android JNI loading mupdf (compile with NDK?)

I am creating an Android Xoom application that displays a pdf file in one of the Acts.

I downloaded the mupdf source files: mupdf.c, Android.mk, Application.mk, Core.mk and ThirdParty.mk.

I was also on mupdf.com and tried to download various precompiled packages from here: http://ccxvii.net/mupdf/download/

I just switched to Android from the iPhone and learned something about the C code. I put the mk / c files in / jni / in my project. I also tried copying the precompiled files downloaded from the website above to / jni / in my project.

I have a simple class:

import android.graphics.*;

    public class PDFView {  
        static {
            System.loadLibrary("mupdf");
        }
    }

, , , "ExceptionInInitializerError", " mupdf: findLibrary null" LogCat.

android NDK . mupdf.h fitz.h. , .

Mac Snow Leopard. , , , , NDK, . , .

- ?

+3
2

Android.mk

Android.mk , NDK samples, NDK.

, jni/Android.mk, , make .

docs NDK Android.mk.

, NDK, C. , make, gcc ld .

- , mupdf git. Android, .

, git , . readme . , , .

+2

mupdf Android. , , . . , , .

0

All Articles