bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.37k stars 8.1k forks source link

armv5 编译出错问题 #4736

Open junzLiu opened 5 years ago

junzLiu commented 5 years ago

armv5 编译出错 有谁知道怎么处理么 arm64 ,x86,x86_64 都编译通过了 api:21 ndk:19 编译环境:Liunx


In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:42:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: armv6
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: thumb2
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:52:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r1, r1
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: armv6
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r1, r1
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: thumb2
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r1, r1
        ^
In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:42:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: armv6
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: thumb2
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:52:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r0, r0
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: armv6
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r0, r0
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: thumb2
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r0, r0
        ^
2 warnings and 4 errors generated.```
poholo commented 5 years ago

4683

jianli-yang commented 4 years ago

请问,有结果了么?

poholo commented 4 years ago

都啥年代了 现在只编译arm64就可以了

马建成 邮箱:mailjiancheng@163.com

签名由 网易邮箱大师 定制

在2020年02月20日 17:52,jianli-yang 写道:

请问,有结果了么?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.