编译为Android MUPDF 1.7A [英] Compile MUPDF 1.7a for android

查看:505
本文介绍了编译为Android MUPDF 1.7A的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译mupdf 1.7A源获得mupdflib.so为Android平台。
我也跟着在文档中的步骤,但我得到这个错误:

I'm trying to compile mupdf 1.7a source to get mupdflib.so for android platform. I followed the steps in documentation but I got this error:

mupdf / PDF /名称table.h:没有这样的文件或目录

mupdf/pdf/name-table.h : No such file or directory

谁能帮助我如何得到这个文件?

Could anyone help me how to get this file ?

推荐答案

RTFM?中的readme.txt项目10说明:

RTFM?? Item 10 in the ReadMe.txt explains:

=============================================== ======================

=====================================================================

最后,你需要一个'产生'目录的副本。这不是
目前可供下载。

Finally, you will need a copy of a 'generated' directory. This is not currently available to download.

正常mupdf构建过程涉及到主机上运行一些code
(在机器上,你正在编译),而不是目标(
机器/设备上,你最终要运行mupdf)。这code
信息重新包装各种比特(字体的CMap等)融入了更多
结构紧凑,可用的形式。

The normal mupdf build process involves running some code on the host (the machine on which you are compiling), rather than the target (the machine/device on which you eventually want to run mupdf). This code repacks various bits of information (fonts, CMAPs etc) into a more compact and usable form.

不幸的是,Android的SDK不提供主机的编译器
机器,所以我们不能自动由于Android的一部分来运行这个步骤
建立。您将需要通过运行一个不同的生成,这种生成它
作为Windows或Linux原生的基础之上。

Unfortunately, the android SDK does not provide a compiler for the host machine, so we cannot run this step automatically as part of the android build. You will need to generate it by running a different build, such as the windows or linux native builds.

我们不使生成的目录的快照可用
下载,因为这目录的内容经常变化,我们会
要保持多个版本的网站。我们假设,任何人
能够建立针对Android的是能够做一个普通的托管
建立。

We do not make a snapshot of the generated directory available to download as the contents of this directory change frequently, and we'd have to keep multiple versions on the website. We assume that anyone capable of building for android is capable of doing a normal hosted build.

在窗口(这里使用的是Cygwin的),或在Linux / MacOS的,这可能是
简单,只要运行使产生在顶级目录。

On windows (where you are using cygwin), or on linux/macos, this can be as simple as running 'make generate' in the top level directory.'

=============================================== ======================

=====================================================================

所以在mupdf树的顶级目录,请生成将让你所有那些在构建生成的文件。

So in the "top" directory of the mupdf tree, "make generate" will get you all those in-build generated files.

这篇关于编译为Android MUPDF 1.7A的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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