ubuntu opencv

https://github.com/opencv/opencv/archive/3.3.1.zip

https://github.com/opencv/opencv_contrib/archive/3.3.1.zip

 

1.unzip opencv-3.3.1.zip

2.unzip  opencv_contrib

3.cd  opencv-3.3.1 && mkdir -p my_build_dir

4.cd my_build_dir

5.

cmake -DCMAKE-INSTALL-PREFIX=/home/houjunjie/houjunjie/opencv/opencv-3.3.1/_install -DOPENCV-EXTRA-MODULES_PATH=../opencv_contrib-3.4.1/modules ..

 

7.编译出现问题,缺少文件

https://blog.csdn.net/AlexWang30/article/details/99612188

boostdesc_bgm.i
boostdesc_bgm_bi.i
boostdesc_bgm_hd.i
boostdesc_lbgm.i
boostdesc_binboost_064.i
boostdesc_binboost_128.i
boostdesc_binboost_256.i
vgg_generated_120.i
vgg_generated_64.i
vgg_generated_80.i
vgg_generated_48.i

 

8.文件路径找不到换成绝对路径
 

你可能感兴趣的:(linux)