简体   繁体   English

编译MuPDF

[英]Compiling MuPDF

I'm trying to compiling the latest release (cloned git repo today) of MuPDF library. 我正在尝试编译MuPDF库的最新版本(今天已克隆git repo)。

  1. Check out a copy of the mupdf source from git: 从git中检出mupdf源的副本:

    git clone git://git.ghostscript.com/mupdf.git git克隆git://git.ghostscript.com/mupdf.git

  2. Check out the third party library submodules: 查看第三方库子模块:

    git submodule update --init git子模块更新--init

  3. Populate the generated directory with the necessary files: 用必要的文件填充生成的目录:

    make generate 使生成

But, when I enter the last command, I got these errors: 但是,当我输入最后一条命令时,出现以下错误:

LINK build/debug/cmapdump
build/debug/cmapdump.o: In function `fz_free_context':
/home/luca/Java/Extra/libraries/mupdf/scripts/../fitz/base_context.c:55: undefined     reference to `fz_drop_colorspace_context'
build/debug/cmapdump.o: In function `fz_new_context':
/home/luca/Java/Extra/libraries/mupdf/scripts/../fitz/base_context.c:142: undefined reference to `fz_new_colorspace_context'
build/debug/cmapdump.o: In function `fz_clone_context_internal':
/home/luca/Java/Extra/libraries/mupdf/scripts/../fitz/base_context.c:186: undefined    reference to `fz_keep_colorspace_context'
collect2: ld returned 1 exit status
make: *** [build/debug/cmapdump] Error 1

Seems that the linker cannot resolve the required objects...so I cannot go on. 似乎链接器无法解析所需的对象...所以我无法继续。

I wonder if someone else tried to compile (this release) and had the same problem. 我想知道是否有人尝试编译(此版本)并遇到相同的问题。

这已得到修复,实际上是在最近几分钟内,我建议您更新到最新的源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM