1. 下载opencv3.0 zip
2. 解压后放到虚拟机本地目录
3.库安装
sudoapt-getinstallbuild-essential
sudoapt-getinstalllibgtk2.0-devlibavcodec-devlibavformat-devlibtiff4-devlibswscale-devlibjasper-dev
sudoapt-getinstallcmake
sudoapt-getinstallpkg-config
4.进入opencv目录
mkdirbuild
cd build
cmake-DCMAKE_BUILD_TYPE=Release-DCMAKE_INSTALL_PREFIX=/usr/local ..
5.安装
make
make install
(1)2.4.9 cmake-gui CMakelists.txt去掉cuda、FFmpeg CUDA_GENERATION=Auto
源码编译
(1)
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/xxx ..