one mail for difference between LOCAL_LDLIBS and LOCAL_SHARED_LIBRARIES of Android
2012-01-10 09:51
579 查看
RaviY
thanks for your explanation
also i found that LOCAL_LDLIBS in mydroid can only work for
HOST_SHARED_LIBS
but not for TARGET SHARED LIBS
thanks
On Nov 30, 11:52 am, RaviY <yend...@xxxxxx> wrote:
> Libraries that are linked via LOCAL_LDLIBS will not have any
> dependencies generated for them. So, typically, LOCAL_LDLIBS should be
> used when you don't want to or don't have the resources to build the
> specific library. So, if you are using a library provided by the NDK,
> you *technically* don't need to rebuild the provided libraries.
>
> So, in your case, in your "mydrdoid", if you use:
> LOCAL_LDLIBS := -lskia" ...then, libskia.so *need not* be rebuilt.
> whereas, if you use:
> LOCAL_SHARED_LIBRARIES := libskia ... then libskia.so *will* be
> rebuilt if there are any changes in it's dependencies.
>
> -Ravi
>
> On Nov 30, 7:20 am, allstars <allstars....@xxxxxxxxx> wrote:
>
> > hello
> > i would like to ask the differences between
> > LOCAL_SHARED_LIBRARIES and LOCAL_LDLIBS
>
> > for example , i try to link skia
>
> > in mydroid
>
> > i need to use LOCAL_SHARED_LIBRARIES = libskia
>
> > but in NDK
> > i need to use LOCAL_LDLIBS = -lskia
>
> > so i am wondering what's the differences
> > and why do i need to two different ways for my Android.mk
>
> > thanks
>
>
thanks for your explanation
also i found that LOCAL_LDLIBS in mydroid can only work for
HOST_SHARED_LIBS
but not for TARGET SHARED LIBS
thanks
On Nov 30, 11:52 am, RaviY <yend...@xxxxxx> wrote:
> Libraries that are linked via LOCAL_LDLIBS will not have any
> dependencies generated for them. So, typically, LOCAL_LDLIBS should be
> used when you don't want to or don't have the resources to build the
> specific library. So, if you are using a library provided by the NDK,
> you *technically* don't need to rebuild the provided libraries.
>
> So, in your case, in your "mydrdoid", if you use:
> LOCAL_LDLIBS := -lskia" ...then, libskia.so *need not* be rebuilt.
> whereas, if you use:
> LOCAL_SHARED_LIBRARIES := libskia ... then libskia.so *will* be
> rebuilt if there are any changes in it's dependencies.
>
> -Ravi
>
> On Nov 30, 7:20 am, allstars <allstars....@xxxxxxxxx> wrote:
>
> > hello
> > i would like to ask the differences between
> > LOCAL_SHARED_LIBRARIES and LOCAL_LDLIBS
>
> > for example , i try to link skia
>
> > in mydroid
>
> > i need to use LOCAL_SHARED_LIBRARIES = libskia
>
> > but in NDK
> > i need to use LOCAL_LDLIBS = -lskia
>
> > so i am wondering what's the differences
> > and why do i need to two different ways for my Android.mk
>
> > thanks
>
>
相关文章推荐
- Android.mk中LOCAL_SHARED_LIBRARIES和LOCAL_LDLIBS的区别
- 【转】 NDK LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- the differences between local and shared object repositories
- [INS-41107]eth0 selected for one or more of the public or private interfaces is not on a shared subn
- 请问大家ndk中LOCAL_SHARED_LIBRARIES LOCAL_LDLIBS什么区别
- What’s the difference between Catia, SolidWorks and Inventor? Which one for me?
- Python, difference between two ways for removing last elem of list
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /embedded-
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- One of the difference between JDK1.6.0 and JDK1.7.0
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- Local Caching of Remote Images in AIR for Android
- The problem of one shared object reference between 100 threads.