交叉编译opencv运行平台rk3588

opencv版本:4.8.0
opencv_contrib版本:4.8.0

在源码目录下建build目录,进入该目录配置编译选项生成makefile

cmake 配置参数:

cmake -DCMAKE_MAKE_PROGRAM:PATH=/usr/bin/make -DCMAKE_INSTALL_PREFIX=/home/rog/my_file/other_LIB/my_opencv/4.8.0_ARM/opencv/my_lib_rk3588 -DWITH_CUDA=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/aarch64-gnu.toolchain.cmake -DCUDA_GENERATION=Kepler -DWITH_GTK=ON -DOPENCV_EXTRA_MODULES_PATH=/home/rog/my_file/other_LIB/my_opencv/4.8.0_ARM/opencv_contrib/modules..

部分参数解释:
CMAKE_INSTALL_PREFIX:编译生存库路径
OPENCV_EXTRA_MODULES_PATH :opencv_contrib 的modules路径

make -j8
make install

交叉编译后生成的文件:
交叉编译opencv运行平台rk3588_第1张图片

附加X86的编译参数:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/rog/my_file/other_LIB/my_opencv/4.8.0/opencv/my_lib_x86 -D OPENCV_GENERATE_PKGCONFIG=ON -D OPENCV_EXTRA_MODULES_PATH=/home/rog/my_file/other_LIB/my_opencv/4.8.0/opencv_contrib/modules ..

你可能感兴趣的:(openCv,opencv,webpack,react.js)