从源编译安装opencv

Install opencv from source

Getting the Opencv from the Git Repository

1
2
cd workspace
git clone https://github.com/opencv/opencv.git

Building OpenCV using CMake

1
2
3
4
cd opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
1
2
make
make install