there may be something wrong with your android.mk, i guess.
> --
>
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
>
>
I am facing a problem thou not similar one but I think there is link.
I am having an external shared library libexternall.so. I want to link
this library dynamically in my native code.
So in my Android.mk I add the line LOCAL_LDLIBS = -lexternall (this is
in the ndk docs to load external libraries.).
Now I am not able to figure out where exactly should I place my
libexternall.so so that the compiler takes the path of sharedlibrary
while it compiles my code.
Can anyone please help me out with this?
Thanks.
Regards,
Purvi
On Dec 25 2009, 6:07 pm, Eugene Mymrin <emym...@gmail.com> wrote:
> Thank you, David!
> Reordering static libraries using "most dependent library is the
> first" rule solved the problem.
> I suspected linker wanted the libraries to be properly ordered, but I
> listed them in reverse order, putting dependent libraries at the end
> of the list.
> I should have been thinking more flexibly...
>
>
>
> On Sat, Dec 26, 2009 at 12:11 AM, David Turner <di...@android.com> wrote:
> > On Unix, the order of static libraries listed in your LOCAL_STATIC_LIBRARIES
> > is important.
> > Dependent libraries must appear _before_ the other libraries they depend on,
> > otherwise the
> > static linker will not be able to resolve symbols properly.
> > In this specific case, you could probably try something like:
> > LOCAL_STATIC_LIBRARIES := libavformat libavcodec libavutil
> > Let me know if this doesn't work. Also, I assume that your "no circular
> > dependencies" statement is correct.
> > Otherwise, you'll probably need to repeat libraries in this definition to
> > overcome this.
>
> >http://groups.google.com/group/android-ndk?hl=en.- Hide quoted text -
>
> - Show quoted text -
HeHe - can I ask how are you accessing your android device's audio
hardware? Are you using a third-party media module in C as well?
Best regards
Eugene
> > >http://groups.google.com/group/android-ndk?hl=en.-Hide quoted text -
> > > >http://groups.google.com/group/android-ndk?hl=en.-Hidequoted text -
I copied my external shared library into
\android-ndk-1.6_r1\build\prebuilt\windows\arm-eabi-4.2.1\arm-eabi\lib
and then my android.mk file could find it using LOCAL_LDLIBS := -
lname