Is there any possibility to pack an apk with native libraries with
names not ending with .so? Let's say I have ported libraries and have
files libnative.so & libnative.so.5.0 and I need both of the files
included in apk package. But if I copy those files into /libs/ only
libnative.so got packed into apk. (I'm using eclipse w/ adt plugin for
development). Is there any simple solution? How to overcome this
"problem"?
Thank you!
--
Regards,
Mateusz
--
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.
--
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.
On Mar 24, 3:39 am, murali raju <manutd...@gmail.com> wrote:
> did u add those libraries?
>
> i mean right click(in eclipse) on package>properties>java
> build>libraries>add libraries.
>
> On Wed, Mar 24, 2010 at 7:27 AM, leoha <kramarc...@gmail.com> wrote:
> > Hello,
>
> > Is there any possibility to pack an apk with native libraries with
> > names not ending with .so? Let's say I have ported libraries and have
> > files libnative.so & libnative.so.5.0 and I need both of the files
> > included in apk package. But if I copy those files into /libs/ only
> > libnative.so got packed into apk. (I'm using eclipse w/ adt plugin for
> > development). Is there any simple solution? How to overcome this
> > "problem"?
>
> > Thank you!
>
> > --
> > Regards,
> > Mateusz
>
> > --
> > 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<android-ndk%2Bunsu...@googlegroups.com>
On Mar 24, 6:45 am, Dianne Hackborn <hack...@android.com> wrote:
> We don't do shared library versioning, so you really should use just .so as
> the suffix.
>
>
>
> On Tue, Mar 23, 2010 at 6:57 PM, leoha <kramarc...@gmail.com> wrote:
> > Hello,
>
> > Is there any possibility to pack an apk with native libraries with
> > names not ending with .so? Let's say I have ported libraries and have
> > files libnative.so & libnative.so.5.0 and I need both of the files
> > included in apk package. But if I copy those files into /libs/ only
> > libnative.so got packed into apk. (I'm using eclipse w/ adt plugin for
> > development). Is there any simple solution? How to overcome this
> > "problem"?
>
> > Thank you!
>
> > --
> > Regards,
> > Mateusz
>
> > --
> > 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<android-ndk%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-ndk?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
--
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.
> > android-ndk...@googlegroups.com<android-ndk%2Bunsubscribe@googlegr oups.com>
This file will then be considered a java resource and will be put
inside the apk. Howerver, It will not however be copied to
/data/data/<appname>/lib alongside the .so upon your application's
installation, so you may have to do this manually if you want.
Xav
> 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.
>
>
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
Please do not send me questions directly. Thanks!
Is there any way to make a package which during installation copies
those .so files to /data/data/app/lib directory? If so please give me
some details. Any help is welcome. Tia.
--
Mateusz
> > For more options, visit this group athttp://groups.google.com/group/android-ndk?hl=en.
Hi
I found this post from 2010 its been years since then but I am having the same problem at the moment.
I wonder how the original author leoha solved this problem before.
Did you copy shared libraries in your application?
I think its still the same in Android now. Only *.so libraries are copied on actual Android device.
I am looking for a better solution than copying libraries on files directory if any.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.
The main issue with not supporting them is that it's unnecessarily difficult to satisfy library dependencies. E.g. libsndfile depends on specific versions of libflac, libvorbis and libogg. It doesn't seem very sane that you have to either use a workaround or create your own not-versioning build system for such libraries while autotools work just fine together with a standalone NDK toolchain.
@Xavier:
We've discussed this a couple of months ago when I filed a wish list report for Android Studio. My impression was that you (or Thor or Alex Ruiz) were trying to get support for versioned libs into Android L (or M). I still think this would be a great enhancement!