firefly 公司出的rk3588的设备,其中已经安装了gcc 交叉编译工具,系统版本是Ubuntu20.04。
使用Ubuntu20.04 交叉编译ffmpeg_ubuntu下配置ffmpeg交叉编译器为arm-linux-gnueabihf-gcc-CSDN博客文章浏览阅读541次。ubuntu20.04 交叉编译ffmpeg_ubuntu下配置ffmpeg交叉编译器为arm-linux-gnueabihf-gcchttps://blog.csdn.net/sz76211822/article/details/127815935
该文中configure方法。
./configure --prefix=/opt/build/ --enable-cross-compile --target-os=linux --arch=arm --enable-shared --disable-static --enable-gpl --enable-nonfree --disable-ffplay --enable-swscale --enable-pthreads --disable-yasm --disable-stripping --disable-doc
出现:
/tmp/ccnlzH3P.s: Assembler messages:
/tmp/ccnlzH3P.s:1793: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:1794: Error: unknown mnemonic `movgt' -- `movgt x4,x1'
/tmp/ccnlzH3P.s:1795: Error: unknown mnemonic `movgt' -- `movgt x1,x2'
/tmp/ccnlzH3P.s:1797: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:1798: Error: unknown mnemonic `movle' -- `movle x1,x3'
/tmp/ccnlzH3P.s:1800: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:1801: Error: unknown mnemonic `movgt' -- `movgt x4,x1'
/tmp/ccnlzH3P.s:1819: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:1820: Error: unknown mnemonic `movgt' -- `movgt x3,x0'
/tmp/ccnlzH3P.s:1821: Error: unknown mnemonic `movgt' -- `movgt x0,x1'
/tmp/ccnlzH3P.s:1823: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:1824: Error: unknown mnemonic `movle' -- `movle x0,x2'
/tmp/ccnlzH3P.s:1826: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:1827: Error: unknown mnemonic `movgt' -- `movgt x3,x0'
/tmp/ccnlzH3P.s:2053: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:2054: Error: unknown mnemonic `movgt' -- `movgt x4,x1'
/tmp/ccnlzH3P.s:2055: Error: unknown mnemonic `movgt' -- `movgt x1,x2'
/tmp/ccnlzH3P.s:2057: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:2058: Error: unknown mnemonic `movle' -- `movle x1,x3'
/tmp/ccnlzH3P.s:2060: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:2061: Error: unknown mnemonic `movgt' -- `movgt x4,x1'
/tmp/ccnlzH3P.s:2079: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:2080: Error: unknown mnemonic `movgt' -- `movgt x3,x0'
/tmp/ccnlzH3P.s:2081: Error: unknown mnemonic `movgt' -- `movgt x0,x1'
/tmp/ccnlzH3P.s:2083: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:2084: Error: unknown mnemonic `movle' -- `movle x0,x2'
/tmp/ccnlzH3P.s:2086: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:2087: Error: unknown mnemonic `movgt' -- `movgt x3,x0'
/tmp/ccnlzH3P.s:2628: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:2629: Error: unknown mnemonic `movgt' -- `movgt x15,x4'
/tmp/ccnlzH3P.s:2630: Error: unknown mnemonic `movgt' -- `movgt x4,x11'
/tmp/ccnlzH3P.s:2632: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:2633: Error: unknown mnemonic `movle' -- `movle x4,x13'
/tmp/ccnlzH3P.s:2635: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:2636: Error: unknown mnemonic `movgt' -- `movgt x15,x4'
/tmp/ccnlzH3P.s:2654: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:2655: Error: unknown mnemonic `movgt' -- `movgt x13,x2'
/tmp/ccnlzH3P.s:2656: Error: unknown mnemonic `movgt' -- `movgt x2,x4'
/tmp/ccnlzH3P.s:2658: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:2659: Error: unknown mnemonic `movle' -- `movle x2,x11'
/tmp/ccnlzH3P.s:2661: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:2662: Error: unknown mnemonic `movgt' -- `movgt x13,x2'
/tmp/ccnlzH3P.s:2697: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:2698: Error: unknown mnemonic `movgt' -- `movgt x15,x4'
/tmp/ccnlzH3P.s:2699: Error: unknown mnemonic `movgt' -- `movgt x4,x11'
/tmp/ccnlzH3P.s:2701: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:2702: Error: unknown mnemonic `movle' -- `movle x4,x13'
/tmp/ccnlzH3P.s:2704: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:2705: Error: unknown mnemonic `movgt' -- `movgt x15,x4'
/tmp/ccnlzH3P.s:2723: Error: unknown mnemonic `itt' -- `itt gt'
/tmp/ccnlzH3P.s:2724: Error: unknown mnemonic `movgt' -- `movgt x13,x2'
/tmp/ccnlzH3P.s:2725: Error: unknown mnemonic `movgt' -- `movgt x2,x4'
/tmp/ccnlzH3P.s:2727: Error: unknown mnemonic `it' -- `it le'
/tmp/ccnlzH3P.s:2728: Error: unknown mnemonic `movle' -- `movle x2,x11'
/tmp/ccnlzH3P.s:2730: Error: unknown mnemonic `it' -- `it gt'
/tmp/ccnlzH3P.s:2731: Error: unknown mnemonic `movgt' -- `movgt x13,x2'
make: *** [ffbuild/common.mak:81: libavfilter/vf_mestimate.o] Error 1
改成:
./configure --prefix=/opt/build/ --enable-cross-compile --target-os=linux --arch=arm64 --enable-shared --disable-static --enable-gpl --enable-nonfree --disable-ffplay --enable-swscale --enable-pthreads --disable-yasm --disable-stripping --disable-doc
即可。
参考:移ffmpeg到axera平台时遇到的错误_unknown mnemonic `emms' -- `emms-CSDN博客