- 编译ffmpeg
嵌入式交叉编译:ffmpeg及相关库-CSDN博客
- 下载
LINUX编译opencv_linux 编译opencv 模块-CSDN博客
- 解压
- 编译
penCV自带编译配置,十分方便。
BUILD_DIR=${HOME}/build_libsCROSS_NAME=aarch64-mix210-linuxFFMPEG_DIR=${BUILD_DIR}/libmkdir buildcd buildcmake .. \-DCMAKE_TOOLCHAIN_FILE=../arm-toolchain.cmake-DCMAKE_INSTALL_PREFIX=${BUILD_DIR} \-DCMAKE_BUILD_TYPE=RELEASE \-DBUILD_SHARE_LIBS=ON \-DBUILD_TESTS=OFF \-DBUILD_PERF_TESTS=OFF \-DENABLE_CXX11=1 \-DENABLE_FAST_MATH=1 \-DWITH_CUDA=off \-DWITH_CUBLAS=1 \-DWITH_OPENCL=OFF \-DWITH_OPENCL_SVM=off \-DWITH_OPENCLAMDFFT=off \-DWITH_OPENCLAMDBLAS=off \-DWITH_GSTREAMER_0_10=OFF \-DWITH_FFMPEG=ON \-DFFMPEG_LIBRARY_DIRS=${FFMPEG_DIR} \-DOPENCV_FFMPEG_USE_FIND_PACKAGE=ON \-DOPENCV_FFMPEG_SKIP_BUILD_CHECK=ON \-DBUILD_opencv_apps=OFF \-DBUILD_opencv_world=OFF \-DBUILD_opencv_python3=OFF \-DBUILD_opencv_python2=OFFmake -j16make install
- 检查
ile build/lib/libopencv_imgproc.so.4.9.0
build/lib/libopencv_imgproc.so.4.9.0: ELF 64-bit LSB shared object, ARM aarch64, version 1 (GNU/Linux), dynamically linked, not stripped