Search code examples
android-ndkjava-native-interfacemupdf

Android NDK: No rule to make target with MuPDF


I am using this link, the answer by star18bit, to integrate MuPDF with my Android project.

I am able to run the ndk-build that is inside the MuPDF's android folder. But when I copied all MuPDF's files to my own project, and ran ndk-build from my project's jni folder, it gives this error:

make: *** No rule to make target ../jni/fitz/base_context.c', needed by ../jni/fitz/base_context.o'. Stop.

Any help to resolve this would be greatly appreciated!

I am following this link as it is, i.e., using the mupdf version 1.2 and android ndk r8e


Solution

  • I was trying to build this on MAC, but gave up.

    Finally I did it on Windows 7, encountered a lot of issues while doing it. So I made a tutorial for it, for other users so that they don't have to go through the pain that I went through!

    Here's the link:

    http://howtojava.net/tutorials/android/integrate-mupdf-with-android-in-windows-7