在整合mupdf库的错误 [英] error in integration of mupdf library
本文介绍了在整合mupdf库的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我工作的一个项目中,我要处理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
我的Android.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
这篇关于在整合mupdf库的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文