目前只编译了部分。其他库需要时再说。
- fdk-aac
嵌入式交叉编译:linux fdk-aac-CSDN博客
- libvpx
这个最麻烦,还是编译通过啦。
嵌入式交叉编译:libvpx(全网首发)-CSDN博客
- x265
嵌入式交叉编译:x265-CSDN博客
- x264
嵌入式交叉编译:x264-CSDN博客
- ffmpeg
BUILD_DIR=${HOME}/build_libs
CROSS_NAME=aarch64-mix210-linux
export PATH=/opt/linux/x86-arm/${CROSS_NAME}/bin:${PATH}make cleanexport PKG_CONFIG_PATH=${BUILD_DIR}/lib/pkgconfig:${PKG_CONFIG_PATH}# LIB64_DIR=/opt/linux/x86-arm/aarch64-mix210-linux/aarch64-linux-gnu/lib64LIB_DIR=/opt/linux/x86-arm/aarch64-mix210-linux/target/usr/lib./configure \--prefix=${BUILD_DIR} \--cross-prefix=${CROSS_NAME}- \--arch=aarch64 \--target-os=linux \--pkg-config-flags="--static" \--bindir="${BUILD_DIR}/bin" \--extra-cflags="-I${BUILD_DIR}/include" \--extra-ldflags="-L${BUILD_DIR}/lib -L${LIB_DIR} -lpthread -lrt -ldl" \--disable-x86asm \--disable-static \--disable-doc \--ignore-tests=TESTS \--disable-large-tests \--enable-nonfree \--enable-shared \--enable-gpl \--enable-libfdk-aac \--enable-libx264 \--enable-libvpxmake -j16make install
- 检查
file ${BUILD_DIR}/lib/libavdevice.so.58.13.100libavdevice.so.58.13.100: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, stripped