mupdf库集成错误 [英] error in integration of mupdf library

查看:17
本文介绍了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)

提前致谢.

推荐答案

你应该调用 ./scripts/build-native.sh(Windows 使用 cygwin),然后运行 ​​ndk-构建

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

这篇关于mupdf库集成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆