Code Monkey home page Code Monkey logo

modpdfium's Introduction

modpdfium

Instructions for building Pdfium from tag android-7.1.2_r36 with modified makefiles. This library is used by PdfiumAndroid.

How to build?

I recommend building on Linux (virtual machine will suffice), because Windows is officially not supported and there are many problems on newer versions of OS X.

You will need about 60 GB of free space.

  • install git

  • install OpenJDK 8

  • install repo

  • $ mkdir ~/android_src && cd ~/android_src or select any other path

  • $ repo init --depth=1 -u https://android.googlesource.com/platform/manifest -b android-7.1.2_r36

    (detailed description available here)

  • $ repo sync -c -j 6 and wait...

  • clone this repo (or download zip with its content)

  • replace makefiles in ~/android_src with corresponding makefiles from this repo

  • apply the fixes for barteksc/AndroidPdfViewer#253 described here

  • $ source build/envsetup.sh

  • $ cd external/pdfium/fpdfsdk

  • $ lunch and select architecture

  • $ mma -j 6 and wait ~5 minutes

  • library is available in ~/android_src/out/target/product/generic*/obj/lib/libmod*.so, copy it somewhere

  • $ rm -r ~/android_src/out before next build

It worked for me, on a Ubuntu 16.04.4 64-bit VM I got from OSBoxes. Just had to configure apt and install git/JDK.

modpdfium's People

Contributors

barteksc avatar ncruces avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.