Comments (4)
Inside ebookdroid-legacy-1.5.7-dev-r1908.apk, there is a lib libebookdroid.so.
from ebookdroid.
Actually it is located in the folder, ebookdroid/app/src/main/jniLibs/armeabi.
But System.loadLibrary("ebookdroid") fails.
from ebookdroid.
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.
Also create an x86 lib using ndk.
- 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
-
Run ndk build in the folder bookdroid/app/src/main/jni.
ebookdroid/app/src/main/jni$ ~/Android/android-ndk-r9d/ndk-build -
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 -
Copy x86 lib from libs to ebookdroid/app/build/intermediates/jniLibs/debug.
There must be an x86 folder under debug, where the lib locates. -
Run with AVD Galaxy Nexus api 10 (Android 4.0.3).
-
Set cool booting, don't use snapshot booting.
-
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebookdroid.