zhanxiaokai / Android-AudioRecorder

An AudioRecorder For Android Platform
15 stars 14 forks source link

ffmepg开启neon,引用动态库错误 #1

Open koala99 opened 6 years ago

koala99 commented 6 years ago

你好,这边开启neon,按照书上的配置集成x264,fdk-aac, 在 android studio运行代码crash,自己设置的abiFilters是armeabi-v7a,手机是arm64v8 的,错误信息如下, Revision: '0' ABI: 'arm' pid: 2919, tid: 3098, name: Thread-47 >>> com.ffmpeg.test <<< signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0xccc5414a r0 00000001 r1 00000000 r2 c568c78c r3 c568c7b0 r4 00000280 r5 00000168 r6 cc466480 r7 c568c870 r8 00000b67 r9 00000b91 sl ccc53651 fp 00000019 ip 00000001 sp c568c820 lr cc466480 pc ccc5414a cpsr 200f0030

查了下是so文件不支持arm64v8 造成的,按理说arm64v8 应该支持armv7a的,自己也没有armv8a的文件夹,自己也试了下网上其他的脚本,也是同样的问题,不知道如何解决这个问题

zhanxiaokai commented 6 years ago

这个我也不是太清楚了,可能需要关闭neon加速 或者单独编译v8的包

在 2018年4月2日,上午10:11,koala99 notifications@github.com 写道:

你好,这边开启neon,按照书上的配置集成x264,fdk-aac, 在 android studio运行代码crash,自己设置的abiFilters是armeabi-v7a,手机是arm64v8 的,错误信息如下, Revision: '0' ABI: 'arm' pid: 2919, tid: 3098, name: Thread-47 >>> com.ffmpeg.test <<< signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0xccc5414a r0 00000001 r1 00000000 r2 c568c78c r3 c568c7b0 r4 00000280 r5 00000168 r6 cc466480 r7 c568c870 r8 00000b67 r9 00000b91 sl ccc53651 fp 00000019 ip 00000001 sp c568c820 lr cc466480 pc ccc5414a cpsr 200f0030

查了下是so文件不支持arm64v8 造成的,按理说arm64v8 应该支持armv7a的,自己也没有armv8a的文件夹,自己也试了下网上其他的脚本,也是同样的问题,不知道如何解决这个问题

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zhanxiaokai/Android-AudioRecorder/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AFi6AUsdGiHZZwsXOkxCOr6zmvsjThQLks5tkYjhgaJpZM4TDEP_.