Android NDK r10d error

匿名 (未验证) 提交于 2019-12-03 00:56:02

问题:

I'm trying to compile some media library which uses some part of ffmpeg. I'm having following errors:

/home/pro/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: conditional branch to PLT in THUMB-2 not supported yet. libavcodec/arm/videodsp_armv5te.S:29: error: unexpected opcode while processing relocation R_ARM_THM_JUMP19 clang++: error: linker command failed with exit code 1 (use -v to see invocation) 

Application.mk file

APP_STL := gnustl_shared APP_PLATFORM := android-9 APP_ABI := armeabi-v7a NDK_TOOLCHAIN_VERSION=clang 

On NDK r9c I did not experienced that kind of errors. Any help, suggestions...

回答1:

Alright, so I just had the same problem.

You need to use this Android NDK : Revision 10e (May 2015)

You can download from here : https://developer.android.com/ndk/downloads/older_releases.html

which works for me.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!