ubuntu 16.04
工具链
sun@sun:/$
sun@sun:/$ arm-fsl-linux-gnueabi-gcc -vgcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20)
sun@sun:~/im6q$ tar xf last_x264.tar.bz2
sun@sun:~/im6q$
sun@sun:~/im6q$ tar xf ffmpeg-3.4.tar.bz2
sun@sun:~/im6q$ tar xf lame-3.100.tar.gz
x264
sun@sun:~/im6q/x264-snapshot-20171128-2245$ ./configure --host=arm-fsl-linux-gnueabi --prefix=/x264-imx6q --enable-shared --disable-asm
make -j4
make install
mp3lame
sun@sun:~/im6q/x264-snapshot-20171128-2245$ ./configure --host=arm-fsl-linux-gnueabi --prefix=/lame-imx6q --enable-shared --disable-static
make -j4
make install
//ffmpeg
sun@sun:~/im6q/ffmpeg-3.4$ ./configure --cross-prefix=arm-fsl-linux-gnueabi- --enable-cross-compile --target-os=linux --cc=arm-fsl-linux-gnueabi-gcc --arch=arm --prefix=/ffmpeg-imx6q --enable-shared --disable-static --enable-gpl --enable-nonfree --enable-libx264 --enable-ffmpeg --disable-ffplay --enable-ffserver --enable-swscale --enable-pthreads --enable-libmp3lame --disable-stripping --extra-cflags=-I/x264-imx6q/include --extra-ldflags=-L/x264-imx6q/lib --extra-cflags=-I/lame-imx6q/include --extra-ldflags=-L/lame-imx6q/lib
make -j4
make install
把
lame-imx6q
x264-imx6q
ffmpeg-imx6q
的lib include目录下的 都复制到板子/usr/lib /usr/include/
单独的复制ffmpeg-imx6q的bin目录下的文件 到nano板子的/usr/bin下[ffmpeg ffplay之类的]
root@myzr /home/imx6/x264-imx6q$
root@myzr /home/imx6/x264-imx6q$
root@myzr /home/imx6/x264-imx6q$
root@myzr /home/imx6/x264-imx6q$ ffmpeg -v
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.6.2 (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 20110630 (prerelease)
configuration: --cross-prefix=arm-fsl-linux-gnueabi- --enable-cross-compile --target-os=linux --cc=arm-fsl-linux-gnueabi-gcc --arch=arm --prefix=/ffmpeg-imx6q --enable-shared --disable-static --enable-gpl --enable-nonfree --enable-libx264 --enable-ffmpeg --disable-ffplay --enable-ffserver --enable-swscale --enable-pthreads --enable-libmp3lame --disable-stripping --extra-cflags=-I/x264-imx6q/include --extra-ldflags=-L/x264-imx6q/lib --extra-cflags=-I/lame-imx6q/include --extra-ldflags=-L/lame-imx6q/lib
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
成功