[Android-development] Loaded libraries limit upon Android 4.2.2 (SO_MAX)

Alessandro Lonardi alessandro.lonardi at edalab.it
Wed Mar 25 15:00:46 CET 2015


Thanks for the reply Liang.

Now it is not possible to build static Qt-android.

Ok, so I'll not waste time on it. Thanks.


> We solved this problem by removing unneeded plugins from the Qt install dir

Honestly I don't like much this approach, maybe that's not the cleanest way
to handle the problem, but that's a working solution and so I will give a
try. Thanks again.

A.


2015-03-25 13:21 GMT+01:00 Liang Jian <jianliang79 at gmail.com>:

>     We have also encountered the same problem as you. Now it is not
> possible to build static Qt-android.
>     We solved this problem by removing unneeded plugins from the Qt
> install dir. As to what plugin is unneeded I can't help since it depend on
> what you will do in you app.
>
> On Tue, Mar 24, 2015 at 10:28 PM, Alessandro Lonardi <
> alessandro.lonardi at edalab.it> wrote:
>
>> Hi all,
>> I've encountered a (maybe known) problem in the android build of my multi
>> platform Qt application.
>> My application relies on several Qt modules and plugins, and on some
>> target tablets and phones I've encountered this error:
>>
>> load library <libraryname.so>: (Cannot load library:
>> soinfo_alloc(linker.cpp:287): too many libraries when loading
>> "<libraryname.so>")
>>
>> This, as far as I've found, is a known linker limitation upon Android
>> 4.2.2, since 4.3 this limitation has been removed, as stated here:
>>
>>
>> http://stackoverflow.com/questions/14876835/android-maximum-shared-library-size
>>
>> Since I need to keep a compatibility as larger as possible, I'm looking
>> for any way to load all the required Qt libraries. I was looking for a
>> static compilation, but at the moment I've not found a way to include
>> static libraries in the APK.
>>
>> Any help is appreciated.
>> Thanks in advance!
>>
>> Alessandro.
>>
>> _______________________________________________
>> Android-development mailing list
>> Android-development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/android-development
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20150325/7541f476/attachment.html>


More information about the Android-development mailing list