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

更多相关文章

  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(安卓)近百个项目的源代码,覆盖And
  2. Android(安卓)TextUtils类介绍
  3. SharedPreferences
  4. Android(安卓)Button
  5. Android布局属性全面剖析
  6. ImageView的属性android:scaleType,即Imag
  7. Android(安卓)WebView调起支付宝微信支付
  8. Android基于XMPP Smack Openfire开发IM【
  9. 使用Android自带的DownloadManager下载文
  10. 在Android中把SQLite的数据库文件存储在S