mupdf 编译
最新的mupdf已经更新了android,还是不错的,使用了AdapterView效果还算好的。简单地编译下就可以使用了,只是在滑动时不是很好。容易向各方面滑动。 这次简单介绍下编译的过程。默认它是支持中文的。 先下载源码,这次第三方库是使用git下来的。 所以先到thirdparty目录下,可以看到几个目录。还有一个readme,在外层目录执行这个文件里面的两条命令,下载所需要库。然后在这目录下会将对应的源码下载。 过程:
git clone git://git.ghostscript.com/mupdf.git --depth=1 加后面的参数,不会下载所有的branch,
就是先在mupdf目录执行:
$ git submodule init
$ git submodule update
让它下载源码,然后进入thirdparty目录
比如:freetype-2.4.9,下载完后,到这个目录,执行 ./autogen.sh,完了会产生make文件,然后再./configure 如果产生了配置文件。
另一个目录如:openjpeg-1.5.0,里面就可以直接执行./configure 就行了
第三方库都编译完成了,再回到外层mupdf目录,执行make
最后进入android,执行ndk-build 就差不多了。再用ant或ide产生apk文件。
没人叫你执行ltmain.sh是./configure而且也说明了你的libtool版本可能较低 要2.4.2的,
$ ./ltmain.sh ./ltmain.sh: line 126: CDPATH: command not found ./ltmain.sh: line 199: -e: command not found ./ltmain.sh: line 205: -e: command not found : Version mismatch error. This is libtool 2.4.2, but the : definition of this LT_INIT comes from an older release. : You should recreate aclocal.m4 with macros from libtool 2.4.2 : and run autoconf again. 还是出现错误,这个thirdparty\jpeg下面的我执行了ltmain.sh
谢谢了我再试试
:cry:
linux系统 64位的,可以,windows不知道。
我下载最新的也不行,我下载的是1.1的
已经更新了。请查看,我下载的是git最新版
请问怎么编译的怎么我编译总是出错的,好像少cmap_cns.h,cmap_gb.h ..... 这些头文件,thirdparty\jpeg总是编译不过去总是说格式configure格式不对