To use MuPDF source code in Android
1.Install Android develop environment,including SDK,NDK,Cygwin.
2.Download MuPDF source code. Uncompress it.
http://code.google.com/p/mupdf/downloads/list You can choose mupdf-1.2-source.zip
3.Open the source folder,enter android folder.You can find that the android source code is there, but no library .The libs folder is empty.So you have to compile the library by yourself.
①open mupdf-*.*-source/android/local.properties.sample, save as local.properties, and add the location of sdk.dir.
②cd to mupdf-*.*-source folder,run "make",and you will get the“generated” folder which the project will need.
I got the following errors when I execute this step.
I noticed that most of the errors are from function "win**",so I think these errors are for Windows system.Besides,the "generated" folder isgenerated already,so I ignore these errors and move on.
I believe some problem is with X11..
Use: make NOX11=yes and you should find it works fine.
③cd to mupdf-*.*-source/android folder,run "ndk-build" and you will get the libmupdf.so file in lib(s) folder
......
④......
then you android code can run normally.
For details :http://mupdf.com/doc/how-to-build-mupdf-for-android
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer