在整合mupdf库的错误错误、mupdf

2023-09-05 01:51:59 作者:这辈子ˇ要定你了

我工作的一个项目中,我要处理PDF浏览。我想在我的项目整合mupdf库,但得到的错误如下所述。我已经遵循了自述文件中提到的所有步骤。请帮我解决这个错误。

I am working on a project in which i have to deal with pdf view. I am trying to integrate mupdf library in my project but getting error as mentioned below. I have followed all steps mentioned in readme document. please help me to solve 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

我的Andr​​oid.mk文件

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.

推荐答案

您应该调用 ./脚本/ build-native.sh (适用于Windows用cygwin),然后运行 NDK建造

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