Opencv源码编译

1.下载opencv以及opencv_contrib

1 git clone https://github.com/opencv/opencv.git
2 git clone https://github.com/opencv/opencv_contrib.git

2.安装opencv

1 cd /opencv && mkdir build
2 cd build && cmake -f ../CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/data1/NLPRMNT/public/opencv3 -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib_path>/modules/
3 make -j4 && make install

 

posted @ 2016-12-15 11:08  Jackie207  阅读(293)  评论(0编辑  收藏  举报