I would strongly suggest basing your work on the new sample code for writing a new platform library. If you aren't going to have Java bindings, just use the native code part of it, which provides a good Android.mk to start from.
On Sun, Dec 28, 2008 at 11:43 PM, waterblood <[email protected]> wrote: > > Thanks. > > I have find something on it. > The cause should be that my.so i built is linked with a armcc-complied > static library. they are not use the same compiling tool to compile > it. > Dont know why it cannnot be done that way. Since the static library i > build has no reference with c lib, and all should follow the eabi > format. > > > On Dec 29, 11:28 am, rktb <[email protected]> wrote: > > It would require more debugging to find the exact cause. I can't think > > of anything specific at the top of my head. > > > > For starters, instead of dynamically loading the library, can you link > > the library to your test app executable to see if that works? > > > > -Ravi > > > > On Dec 29, 7:55 am, waterblood <[email protected]> wrote: > > > > > Thanks for your reply. > > > > > I have set the LOCAL_PRELINK_MODULE := false and include $ > > > (BUILD_SHARED_LIBRARY) in my android.mk to build my.so > > > But when I use a dlopen() in a test c app to open that my.so. Got a > > > fail message "cannot find the library". I have checked the my.so have > > > been put into /system/lib. Do you have any idea about this? > > > > > Best Regards > > > > > On Dec 29, 10:30 am, rktb <[email protected]> wrote: > > > > > > If you want to prelink the shared library, yes. This is the default > > > > option. > > > > > > If not, to bypass the prelinking step, one would need to add the > > > > following line in their Android.mk that is creating the shared > > > > library: > > > > > > LOCAL_PRELINK_MODULE := false > > > > <<< > > > > > > -Ravi > > > > > > On Dec 29, 7:11 am, waterblood <[email protected]> wrote: > > > > > > > Hello all, > > > > > > > There are so files entry defined in /build/core/prelink-linux- > > > > > arm.map. my question is when I add a new dynamic library, should i > > > > > also add an entry for this so in prelink-linux-arm.map? > > > > > > > Thanks for any replay! > > > > > Guoyin Chen > > > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
