【X3m】opencv和opencv_contrib交叉编译

opencv和contrib版本必须要一直,否则可以编译不匹配

opencv4-4.5.4.tar.gz

opencv4-contrib-4.5.5.tar.gz

opencv交叉编译命令,主要eigen3的地址

cmake \
    -D CMAKE_BUILD_TYPE=Release \
    -D CMAKE_INSTALL_PREFIX=../install \
    -D BUILD_PNG=ON \
    -D BUILD_TIFF=ON \
    -D BUILD_TBB=ON \
    -D BUILD_JPEG=ON \
    -D BUILD_JASPER=OFF \
    -D BUILD_ZLIB=OFF \
    -D BUILD_EIGEN=ON \
    -D BUILD_EXAMPLES=ON \
    -D BUILD_opencv_java=OFF \
    -D BUILD_opencv_python2=OFF \
    -D BUILD_opencv_python3=OFF \
    -D ENABLE_PRECOMPILED_HEADERS=ON \
    -D WITH_OPENCL=ON \
    -D WITH_OPENMP=ON \
    -D WITH_EIGEN=ON \
	-D EIGEN_INCLUDE_PATH=/usr/include/eigen3 \
    -D WITH_FFMPEG=ON \
    -D WITH_GSTREAMER=ON \
    -D WITH_GSTREAMER_0_10=ON \
    -D WITH_CUDA=OFF \
    -D WITH_CUDNN=OFF \
    -D WITH_GTK=ON \
    -D WITH_VTK=ON \
    -D WITH_TBB=ON \
    -D WITH_1394=OFF \
    -D WITH_OPENEXR=OFF \
    -D OPENCV_ENABLE_NONFREE=ON \
    -D OPENCV_EXTRA_MODULES_PATH=/work/opencv/opencv_contrib-4.5.5/modules \
    -D ENABLE_FAST_MATH=1 \
    -D BUILD_EXAMPLES=ON \
    -D CUDA_ARCH_PTX="" \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_TESTS=ON \
    -D OPENCV_TEST_DATA_PATH="" \
    ../

你可能感兴趣的:(RK3568平台驱动和内核讲解,opencv,webpack,人工智能)