ffmpeg text relocations

ffmpeg text relocations


参考:http://trac.ffmpeg.org/ticket/4928

解决:

--disable-asm 或者--disable-asm --enable-pic might be needed.

comment:14in reply to:↑ 13 Changed 18 months ago by ioeir2

Replying to cehoyos:

--disable-asm or --disable-asm --enable-pic might be needed.

--disable-asm fixed the issue. Thanks!

comment:15Changed18 months ago by cehoyos

It should be emphasized that --disable-asm does not fix anything, it just creates horribly slow FFmpeg binaries.


http://stackoverflow.com/questions/34691970/ffmpeg-for-android-neon-build-has-text-relocations


1 down vote

 

This should be fixed already (since commit https://git.libav.org/?p=libav.git;a=commitdiff;h=f963f80399d, December 2014), so make sure you build a new enough version and it should be fine.

arm, aarch64 and x86_64 should all work fine without text relocations, but for 32 bit x86, you can't easily avoid it. (For x86, the simplest way around it is to do--disable-asm, but that does give quite a bit of performance loss.)

You can check if your shared lbirary has text relocations by doing this:

readelf -a path/to/yourlib.so | grep TEXTREL

If it has text relocations, it will show you something like this:

0x00000016 (TEXTREL)                    0x0

If this is the case, you may recompile your shared library with the latest NDK version available:

ndk-build -B -j 8

And if you check it again, the grep command will return nothing.


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

AI算法网奇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值