using codesourcery for static libs

220 views
Skip to first unread message

Guian

unread,
Nov 23, 2010, 11:07:01 AM11/23/10
to android-ndk
Is it possible to use codesourcery to generate valid static libraries
and link them in our shared lib
for Android?

( what a simple question ! :) )

Onur Cinar

unread,
Nov 23, 2010, 2:01:33 PM11/23/10
to andro...@googlegroups.com

Hi Guian,

It worked well for me. I could even use it to generate the actual shared libraries as well, not just the static libraries. Here is what I did:

1. Extract the CodeSourcery's compile under $NDK/build/prebuilt/linux-x86/arm-2010q1 (I'm on Linux by the way).

2. Go to build/toolchains, create a directory called arm-2010q1

3. Copy the attached files into that directory

4. Set environment variable NDK_TOOLCHAIN to arm-2010q1:

export NDK_TOOLCHAIN=arm-2010q1

5. Now build your library with ndk-build.  Use V=1 to double check that the correct toolchain is used.

Regards,

-onur




--
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.


---
www.zdo.com

config.mk
setup.mk

Guian

unread,
Nov 24, 2010, 8:09:25 AM11/24/10
to android-ndk
great, seems every thing works fine
thank you!
> > android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-ndk?hl=en.
>
> ---www.zdo.com
>
>  config.mk
> 1KAfficherTélécharger
>
>  setup.mk
> 8KAfficherTélécharger
Reply all
Reply to author
Forward
0 new messages