Khang-NT / ffmpeg-binary-android

FFmpeg Prebuilt Android
192 stars 73 forks source link

x86 has text relocations #12

Closed devingDev closed 6 years ago

devingDev commented 6 years ago

When using the prebuilt binary I get the error

signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- Abort message: 'CANNOT LINK EXECUTABLE "/data/user/0/com.myapp.test/files/ffmpeg": "/data/data/com.myapp.test/files/ffmpeg" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)' eax 00000000 ebx 000016b5 ecx 000016b5 edx 00000006 esi 00000000 edi 000016b5

Could you compile it with --disable-asm so we can use it on the newer android versions?

Thanks!

devingDev commented 6 years ago

Ooops I meant --disable-asm

Here they talked about it and that seems to be the solution

https://trac.ffmpeg.org/ticket/4928#comment:14

devingDev commented 6 years ago

If it matters I used
https://github.com/iknow4/Android-Video-Trimmer in my project which used https://github.com/WritingMinds/ffmpeg-android-java which had that error.

I replaced the x86 binary from the ffmpeg library with the i686-lite.tar.bz2 binary and I hoped it doesn't have that relocation thing, but sadly after running the app I get the same error.

devingDev commented 6 years ago

Okay so the full version seems to work. I think it was not replacing the ffmpeg binary last time because after uninstalling and putting the lite version it did not crash but just not trim the video. After trying the full version (after uninstalling app) it now works!

Thanks for this!