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

Liang Jian jianliang79 at gmail.com
Wed Mar 25 13:21:02 CET 2015


    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/c2fa26a8/attachment.html>


More information about the Android-development mailing list