编译droidreader PDF阅读器
DroidReader 是 Android 手机平台下的 开源PDF 文档阅读软件。使用Mupdf为解析核心。
下载源码编译的时候,出了些小问题,顺便记录一下。
源码地址主页:http://code.google.com/p/droidreader/
主文件夹下有一个Readme文件,一定要看一下,这样才知道怎么去编译,需要哪些包,下面是截取Readme里最重要的一段
Optionally, you might want to use Eclipse and the Android plugin for development. The sources are structured to easily have them imported as a new project. When you have done this, do the following: - copy or symlink the libjpeg sources to the jni/jpeg/ folder. Within that folder, make a copy of "jconfig.txt" with the name "jconfig.h". The NDK-based build run will otherwise complain on the missing "jconfig.h". - copy or symlink the freetype2 sources into the jni/freetype/ folder. - copy or symlink the jbig2dec sources into the jni/jbig2dec/ folder. - copy or symlink the openjpeg sources into the jni/openjpeg/ folder. //连mupdf整个文件夹一起拷贝过来 - copy or symlink the MuPDF sources into the jni/mupdf/ folder. //把NDK设位环境变量 - make a symlink to the project root directory (containing this file) into the Android NDK's app/ folder. Your project tree is now ready.
仅是这样还是不行,还需要将ftiz和draw文件夹一起拷贝过来,这样就可以编译成功了,原因看一下jni目录下的Android.mk文件就知道了
导入到eclipse就可以编译运行了,顺便说以下,要想打开pdf文件,还需要像OI filemanager这样的文件管理器才可以。