Ubuntu18.04 安装 OpenCV4.3 及环境配置

Ubuntu18.04 安装 OpenCV4.3 及环境配置_opencv4.3.0安装包_john_bh的博客-CSDN博客

[  0%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_util.cc.o
[  0%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_86'
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.RELEASE.cmake:222 (message):
  Error generating
  /home/user/data1t/3rdparty/opencv-4.3.0/build/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o


make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:77: modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3854: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

cmake命令行:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=../../opencv4.3_cuda10.2_nv3060_install/ -D WITH_CUDA=ON -D WITH_CUBLAS=ON -D CUDA_ARCH_BIN='8.6' -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.3.0/modules -D OPENCV_GENERATE_PKGCONFIG=YES .. 

最后,广告一下个人微信公众号“AI技术评论”,不会经常打扰你,但是会不定期分享一些新技术和行业资讯等。

你可能感兴趣的:(人工智能)