Ubuntu下安装opencv 2.4.11

Opencv2.* 对应cuda7.5
Opencv3.* 对应cuda8.0

Ubuntu下安装opencv 2.4.11

$ sudo apt-get install build-essential
$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
$ sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
$ cd ~/opencv-2.4.11
$ mkdir release 
$ cd release
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
$ make
$ sudo make install

Unsupported gpu architecture ‘compute_11’解决方法

$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..

alt+ctrl+F1黑屏 ,解决方案

你可能感兴趣的:(opencv)