Getting a warning containing "too many libraries when loading *.so"

Bionic imposes a hard limit on the number of shared objects you can load at run time. There are a few ways towork around this issue:

  • If you're not using a huge pipeline that actually requires to load a number of plugins at runtime that makes you hit the limit, you can use GST_REGISTRY_REUSE_PLUGIN_SCANNER=no and it should work (This was implemented in GStreamer by commit dd9f244f033ba3978d6ee26d9205d29fdd862d7c, Oct 18/2011 so please check you have a recent enough version).

If your pipeline is complex enough so it makes you hit the limit no matter what. Then you have two alternatives:

  • The first one is to modify Android to change limit. You will be bumping SO_MAX to (for example) 128 in Android's bionic/linker/linker.c and rebuilding withmake linker. Then you will need to install this customized version of Android on your device as it's explained in theInstalling our bundle on the Nexus Ssection of this document.

  • Another option is to explore building the plugins as static libraries. You can find a patch implementing this solution here:https://bugzilla.gnome.org/show_bug.cgi?id=667305

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值