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.

    To use MuPDF source code in Android

    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

    To use MuPDF source code in Android

    ......

    To use MuPDF source code in Android

  ④......

then you android code can run normally.

For details :http://mupdf.com/doc/how-to-build-mupdf-for-android

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)TabWidget/TabHost的使用
  2. Android:关闭软键盘自动弹出的解决方案
  3. Android(安卓)SDK无法更新解决方式(非常有
  4. Android(安卓)资源文件中的符号含义与说
  5. 【Android(安卓)应用开发】GitHub 优秀的
  6. Android阿拉伯适配rtl
  7. 快速下载 Android(安卓)framework 源码
  8. mac 下 android studio 识别不出真机
  9. Android(安卓)popupWindow响应back按键并
  10. Android类似于滚动通知栏信息播报功能