Macro wrote:
> I compile the c file as library with arm-none-linux-gnueabi-gcc,
> then put the so file in emulator's directory :"/system/lib",
> while execute System.loadLibrary, there is a dialog said :"Library not
> found".

Building JNI libraries is strange and complicated --- you need a custom 
linker script to make it work. Check out this page:

http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/

You may also want to search the archives for JNI, as a number of us have 
been trying this for a while...

-- 
David Given
[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to