ailiboy / ebookdroid

Automatically exported from code.google.com/p/ebookdroid
0 stars 0 forks source link

Couldn't load ebookdroid: findLibrary returned null #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I checked out project and downloaded to eclipse ( using Mac os x)

So i tried to compile it int my device. Everything wen well. However when i 
tried to open .pdf file app crashed. 

I started debugging and found that exception was there:
IN: public class EBookDroidLibraryLoader
LINE: System.loadLibrary("ebookdroid");
EXCEPTION: UnsatisfiedLinkError e
Log.v("test", e.getLocalizedMessage());
OUTPUT: Couldn't load ebookdroid: findLibrary returned null

So i believe that i something didn't done till end. Maybe somewhere i need to 
link "ebookdroid" library to project ?

Or i need to edit and change some path to other libs in
Android.mk
file ?

Thanks.

Original issue reported on code.google.com by nerijus....@gmail.com on 21 Mar 2012 at 10:15

GoogleCodeExporter commented 9 years ago
Try to build with ant build.xml script

Original comment by Alexander.V.Kasatkin@gmail.com on 21 Mar 2012 at 10:36

GoogleCodeExporter commented 9 years ago
Then it BUILD FAILED

Documents/workspace/EBookDroid/${svnant.dir}/lib does not exist.

There are some wornings in lines:

Warning:
Documents/workspace/EBookDroid/${svnant.dir}/lib does not 
 exist.

<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" 
classpathref="svnant.classpath" />

Warning:
taskdef class com.android.ant.XPathTask cannot be found using the classloader 
 AntClassLoader[]

<taskdef name="xpath" classname="com.android.ant.XPathTask" 
classpathref="android.antlibs" />

Warning:
Documents/workspace/EBookDroid/${sdk.dir}/tools/ant/build.xml imported from 
Documents/workspace/EBookDroid/
 build.xml

<import file="${sdk.dir}/tools/ant/build.xml" />

Original comment by nerijus....@gmail.com on 21 Mar 2012 at 11:50

GoogleCodeExporter commented 9 years ago
svnant missing in your configuration.

Original comment by mc.creat on 21 Mar 2012 at 12:00

GoogleCodeExporter commented 9 years ago
UnsatisfiedLinkError mean that you does not compile native library.

Original comment by mc.creat on 21 Mar 2012 at 12:03

GoogleCodeExporter commented 9 years ago
Hmm what is native library android SDK for 3.0 or i need to insert java native 
library JDK for example 1.6 ?

Sorry if am asking silly questions, but i am beginner and want to run this 
project.

I think i configured my svnant.
I did everything that was written here:

http://code.google.com/p/gwtsrwc/wiki/InstallSvnAntInEclipse

Now i don't see BUILD FAILED, but still nothing and i can see this messege:

 <terminated> EBookDroid build.xml [Ant Build] /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java  

But still warnings are there. in build.xml

Original comment by nerijus....@gmail.com on 21 Mar 2012 at 12:34

GoogleCodeExporter commented 9 years ago
Install android ndk and compile native library

Original comment by Andrei.K...@gmail.com on 21 Mar 2012 at 12:42

GoogleCodeExporter commented 9 years ago
I downloaded android NDK and using ndk-build compiled all source in jni 
directory but still error is the same.

Maybe something more need to do ?

Original comment by nerijus....@gmail.com on 21 Mar 2012 at 1:17

GoogleCodeExporter commented 9 years ago
i did saw in my terminal after compiling this line:
Install        : libebookdroid.so => libs/armeabi/libebookdroid.so

This want from me something more ? 

Original comment by nerijus....@gmail.com on 21 Mar 2012 at 2:02

GoogleCodeExporter commented 9 years ago
any update on this. I experience the same issue. Downloading NDK now

Original comment by alesm...@gmail.com on 23 Apr 2012 at 8:18

GoogleCodeExporter commented 9 years ago
I made it go without ant. Just compiled c, c++ code for this needed Android ndk

Original comment by nerijus....@gmail.com on 23 Apr 2012 at 8:32

GoogleCodeExporter commented 9 years ago
@nerijus 
sorry I am new to C (and NDK). So I understand that you use C compiler for 
library stored in /jni folder?

Original comment by alesm...@gmail.com on 24 Apr 2012 at 7:16

GoogleCodeExporter commented 9 years ago
I downloaded android ndk from http://developer.android.com/sdk/ndk/index.html

it has ndk-build compiler, where you give a path to your android project in 
this case ebookdroid:

ndk-build PATH_TO_PROJECT

and that is all for now it just compile c,c++ classes

Original comment by nerijus....@gmail.com on 24 Apr 2012 at 8:11