通过参考How to build for Android中的文档, 我遵循了所有步骤,
1>从 git 查看 mupdf 源的副本:
~/src $ git clone git://git.ghostscript.com/mupdf.git
2>查看第三方库子模块:
~/src/mupdf $ git 子模块更新 --init
3>用必要的文件填充生成的目录:
~/src/mupdf $ 生成
但是当我运行第三步时,我收到了这个错误:
cygwin warning:
MS-DOS style path detected: d:/mupdf
Preferred POSIX equivalent is: /cygdrive/d/mupdf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
CC build/debug/cmapdump.o
/bin/sh: cc: command not found
Makefile:142: recipe for target `build/debug/cmapdump.o' failed
make: *** [build/debug/cmapdump.o] Error 127
我跳过了这一步并运行
~/src/mupdf/android $ ndk-build
我得到这个错误:
jni/../../../source/pdf/pdf-cmap-table.c:1: 错误: 'cmap_78_H' undeclared here (not in a function) jni/../../../source /pdf/pdf-cmap-table.c:2: error: 'cmap_78_RKSJ_H' undeclared here (not in a function)。. . .
jni/../../../source/pdf/pdf-cmap-table.c:161:错误:此处未声明“cmap_V”(不在函数中)jni/../../../ source/pdf/pdf-cmap-table.c:162: 错误: 'cmap_WP_Symbol' undeclared here (not in a function) make: * [obj/local/armeabi-v7a/objs/mupdfcore/ / /__/source/pdf /pdf-cmap-tab le.o] 错误 1
谁能帮帮我吗?