交叉编译ffmpeg失败

什么原因???

[root@ee3420b3f6d7 ffmpeg]# ./configure --enable-cross-compile --cross-prefix=aarch64-linux-gnu- --arch=aarch64 --target-os=linux[root@ee3420b3f6d7 ffmpeg]# time make -j4 -w real    2m49.231suser    10m14.355ssys     0m33.228s[root@ee3420b3f6d7 ffmpeg]# cat /proc/cpuinfo | grep "model name"model name      : Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHzmodel name      : Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHzmodel name      : Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHzmodel name      : Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz[root@ee3420b3f6d7 ffmpeg]# readelf -h ffmpegELF Header:  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00   Class:                             ELF64  Data:                              2's complement, little endian  Version:                           1 (current)  OS/ABI:                            UNIX - System V  ABI Version:                       0  Type:                              EXEC (Executable file)  Machine:                           AArch64  Version:                           0x1  Entry point address:               0x47ff68  Start of program headers:          64 (bytes into file)  Start of section headers:          15969264 (bytes into file)  Flags:                             0x0  Size of this header:               64 (bytes)  Size of program headers:           56 (bytes)  Number of program headers:         7  Size of section headers:           64 (bytes)  Number of section headers:         28  Section header string table index: 27[root@ee3420b3f6d7 ffmpeg]# // 交叉编译成功

--arch=arm 改 --arch=arm64编译通过

编译选项

./configure --cross-prefix=/.env/gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- --enable-cross-compile --target-os=linux --cc=/.env/gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc --arch=arm --cpu=Cortex-A53 --prefix=/Project/ffmpeg --disable-x86asm --disable-avdevice --disable-encoders --disable-filters --enable-shared --enable-static

x3平台

目前测试,./configure关掉和arm有关指令,编译是可以通过的,交叉编译工具不支持arm指令加速?