I followed below steps to create Library for android NDK
1. Copied 'jni' folder from the <mupdf>/android folder into your existing
Eclipse project.
2. Copied the <mupdf>/thirdparty folder into the 'jni' folder in your project.
3. Copied the <mupdf>/cbz folder into the 'jni' folder in your project.
4. Copied the <mupdf>/draw folder into the 'jni' folder in your project.
5. Copied the <mupdf>/fitz folder into the 'jni' folder in your project.
6. Copied the <mupdf>/generated folder into the 'jni' folder in your project.
7. Copied the <mupdf>/pdf folder into the 'jni' folder in your project.
8. Copied the <mupdf>/scripts folder into the 'jni' folder in your project.
8. Copied the <mupdf>/xps folder into the 'jni' folder in your project.
Changed
MUPDF_ROOT := ..
to
MUPDF_ROOT := $(TOP_LOCAL_PATH)
And Changed
MY_ROOT := ../..
to MY_ROOT := $(LOCAL_PATH) in Core.mk file same changes in LOCAL_C_INCLUDES to
$(LOCAL_PATH)
In ThirdParty.mk changed LOCAL_C_INCLUDES to $(LOCAL_PATH)
executed 'ndk-build' in your project's 'jni' directory.
steps followed from this link http://pastebin.com/YzHUhzE7
and also ready me file from the project
while using ndk-build following log i found in cygdrive
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup : libs/armeabi-v7a/gdb.setup
Cygwin : Generating dependency file converter script
Compile thumb : mupdf <= mupdf.c
make: *** No rule to make target `jni/jni/fitz/base_context.c', needed by
`obj/local/armeabi/objs-debug/mupdfcore/jni/fitz/base_context.o'. Stop.
In libs directory of my eclipse project .so library for mupdf is not generating
mupdf-1.1-source/android
mupdf-thirdparty-2012-08-14 for thirdparty
in windows system
so am i doing wrong related to directory path? as i am able to compile other
ndk projects.
Need help for this problem which m facing
Thanks..
Original issue reported on code.google.com by toneerav@gmail.com on 4 Oct 2012 at 5:05
Original issue reported on code.google.com by
toneerav@gmail.com
on 4 Oct 2012 at 5:05