ffmpeg text relocations
参考:http://trac.ffmpeg.org/ticket/4928
解决:
comment:14in reply to:↑ 13Changed 18 months ago by ioeir2
Replying to cehoyos:
--disable-asmor--disable-asm --enable-picmight be needed.
--disable-asm fixed the issue. Thanks!
comment:15Changed18 months ago by cehoyos
It should be emphasized that--disable-asmdoes not fix anything, it just creates horribly slow FFmpeg binaries.http://stackoverflow.com/questions/34691970/ffmpeg-for-android-neon-build-has-text-relocations
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 |
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.
--disable-asm或者--disable-asm --enable-picmight be needed.