Error in mupdf library integration

I am working on a project in which I have to deal with viewing PDF. I am trying to integrate the mupdf library in my project, but am getting an error as follows. I followed all the steps mentioned in the readme document. please help me resolve this error.

Compile thumb : mupdf <= mupdf.c jni/mupdf.c:10:18: fatal error: fitz.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs-debug/mupdf/mupdf.o] Error 1 

My Android.mk file

  LOCAL_PATH := $(call my-dir) TOP_LOCAL_PATH := $(LOCAL_PATH) MUPDF_ROOT := $(call my-dir) include $(TOP_LOCAL_PATH)/Core.mk include $(TOP_LOCAL_PATH)/ThirdParty.mk include $(CLEAR_VARS) LOCAL_C_INCLUDES := \ $(MUPDF_ROOT)/draw \ $(MUPDF_ROOT)/fitz \ $(MUPDF_ROOT)/mupdf LOCAL_CFLAGS := LOCAL_MODULE := mupdf LOCAL_SRC_FILES := mupdf.c LOCAL_STATIC_LIBRARIES := mupdfcore mupdfthirdparty LOCAL_LDLIBS := -lm -llog -ljnigraphics include $(BUILD_SHARED_LIBRARY) 

Thanks in advance.

+6
android android-ndk mupdf
Aug 28 2018-12-12T00:
source share
5 answers

You should call ./scripts/build-native.sh (use cygwin for Windows), then run ndk-build

0
Feb 10 '13 at 15:51
source share

This is how I succeeded in MuPDF.

download ndk and extract. download cygwin and extract. upload mupdf files and third party files.

source extraction and third part extract file add here.

go to the project directory using cygwin.

open project in eclipse and add this to application.mk

  NDK_TOOLCHAIN_VERSION=4.4.3 

create a header file using this command in cygwin

 javah -jni -classpath bin/classes/ -d jni/ com.artifex.mupdf.MuPDFActivity 

use cd .. and go back to the MupdfSource extraction directory and run

  make 

.Use error appears

 make NOX11=yes 

go to the project directory (android folder) in cygwin and

 ndk-build 

all you get is a .so file

run the project.

Sorry for the bad english.

+6
Sep 05
source share

You need to run the make command using Cygwin.

+1
Aug 28 2018-12-12T00:
source share

Follow these steps

also take care of the readme file steps

0
Aug 28 2018-12-12T00:
source share

Replace MUPDF_ROOT := $(call my-dir) with MUPDF_ROOT := ..

0
Aug 28 2018-12-12T00:
source share



All Articles