apk/libs tree structure

64 views
Skip to first unread message

Marco Bernasocchi

unread,
Aug 17, 2011, 10:00:01 AM8/17/11
to android-d...@googlegroups.com, andro...@googlegroups.com
Hi, I'm porting QGIS to android and the code (native all crosscompiled
with ndk) should dinamically load .so from a specific folder
(lib/plugins). is there a way to preserve such a structure in the lib
folder? If i just pur my plugins folder into libs and run ant debug the
apk has only the top level shared objects. If I generate with ant
release, then add the files to the apk, sign, zipalign and install, the
lib/plugin folder still does not exist.
any suggestions? (I'd rather not change the code since it is a big qt
based project and less hacks are better)

ciao Marco

Xavier Ducrohet

unread,
Aug 17, 2011, 2:53:53 PM8/17/11
to andro...@googlegroups.com, android-d...@googlegroups.com
the lib folder must be in the format /lib/<abi>/*.so

This is because, at install time, only the *.so for the supported abi
of the given device are extracted from the apk and put in the app
install folder where they can be loaded from.

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

--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Marco Bernasocchi

unread,
Aug 17, 2011, 6:27:33 PM8/17/11
to android-d...@googlegroups.com, Xavier Ducrohet, andro...@googlegroups.com
Hi Xavier, all,

On 08/17/2011 08:53 PM, Xavier Ducrohet wrote:
> the lib folder must be in the format /lib/<abi>/*.so

My issue would be is it possible to have /lib/<abi>/MyCustom/Path/*.so instead of /lib/<abi>/*.so

> This is because, at install time, only the *.so for the supported abi
> of the given device are extracted from the apk and put in the app
> install folder where they can be loaded from.

thanks a lot
MArco

Reply all
Reply to author
Forward
0 new messages