GithubHelp home page GithubHelp logo

Comments (4)

clockwiser avatar clockwiser commented on July 18, 2024

Inside ebookdroid-legacy-1.5.7-dev-r1908.apk, there is a lib libebookdroid.so.

from ebookdroid.

clockwiser avatar clockwiser commented on July 18, 2024

Actually it is located in the folder, ebookdroid/app/src/main/jniLibs/armeabi.
But System.loadLibrary("ebookdroid") fails.

from ebookdroid.

clockwiser avatar clockwiser commented on July 18, 2024

Must run with the armeabi emulator, but there is no armeabi images in android studio 3.1.4. At last, create the library again for armeabi-v7a using android ntk. The intermediate folder holds libraries created for different versions of emulators. The folder is described in iml file as "output url" tag.

from ebookdroid.

clockwiser avatar clockwiser commented on July 18, 2024

Also create an x86 lib using ndk.

  1. Add x86 to Application.mk in bookdroid/app/src/main/jni.

APP_ABI := armeabi armeabi-v7a x86

APP_CFLAGS := -DHAVE_CONFIG_H -DTHREADMODEL=POSIXTHREADS -DDEBUGLVL=0 -D__ANDROID__
APP_CFLAGS += -O3

APP_MODULES := jpeg libdjvu mupdf ebookdroid hqx


  1. Run ndk build in the folder bookdroid/app/src/main/jni.
    ebookdroid/app/src/main/jni$ ~/Android/android-ndk-r9d/ndk-build

  2. Check log if x86 lib created.
    [x86] Compile : ebookdroid <= jni_concurrent.c
    [x86] Compile : hqx <= hq4x.c
    [x86] Compile : hqx <= hq2x.c
    [x86] Compile : hqx <= hq3x.c
    [x86] StaticLibrary : libhqx.a
    [x86] StaticLibrary : libstdc++.a
    [x86] SharedLibrary : libebookdroid.so
    [x86] Install : libebookdroid.so => libs/x86/libebookdroid.so

  3. Copy x86 lib from libs to ebookdroid/app/build/intermediates/jniLibs/debug.
    There must be an x86 folder under debug, where the lib locates.

  4. Run with AVD Galaxy Nexus api 10 (Android 4.0.3).

  5. Set cool booting, don't use snapshot booting.

  6. Upload file to mnt/asec using Device file explorer in Android studio.

Then start playing with ebookdroid.

from ebookdroid.

Related Issues (3)

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.