前端之家收集整理的这篇文章主要介绍了
ubuntu opencv 2.7.9安装,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
install opencv s1: [compiler] sudo apt-get install build-essential [required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev [optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev s2: cmake . s3: sudo make install s4: 置library,打开/etc/ld.so.conf.d/opencv.conf,在末尾加入/usr/local/lib (有可能是个空文件,没关系) 然后 sudo ldconfig 然后编辑/etc/bash.bashrc 加入 PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig export PKG_CONFIG_PATH 问题: unsupported gpu architecture 'compute_11' 解决: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX-/usr/local -D CUDA_GENERATION=Kepler .. 如果还有有关nvcc的编译错误在Makelist中将nvcc关掉就好了 原文链接:https://www.f2er.com/ubuntu/354581.html