Window10 下编译Opencv 3.4.1+contrib模块+Cmake+VS2015

1.下载安装opencv3.4.1,下载地址:https://opencv.org/releases/,下载后的文件为opencv-3.4.1-vc14_vc15.exe, 点击此文件运行后,实际为解压成一个文件夹。在系统环境变量Path中,添加解压后的地址,如:E:\opencv\build\x64\vc14\bin 。(不会安装opencv的自行百度)

2.cmake下载安装,下载地址:https://cmake.org/download/

3.contrib的下载,下载地址:https://github.com/opencv/opencv_contrib/releases   这里contrib要和opencv版本一致,也选3.4.1

 

4.参考此博文进行配置:https://blog.csdn.net/k87974/article/details/76732222    ,博文最后的附加依赖项没给出,为方便各位使用,现贴在下方:

如果找不到opencv_xfeatures2d341d.lib或者任何一个库文件,需重新cmake编译,直到库文件全了为止,这个太坑了,编译了一天。

opencv_aruco341d.lib
opencv_bgsegm341d.lib
opencv_bioinspired341d.lib
opencv_calib3d341d.lib
opencv_ccalib341d.lib
opencv_core341d.lib
opencv_datasets341d.lib
opencv_dnn_objdetect341d.lib
opencv_dnn341d.lib
opencv_dpm341d.lib
opencv_face341d.lib
opencv_features2d341d.lib
opencv_flann341d.lib
opencv_fuzzy341d.lib
opencv_hfs341d.lib
opencv_highgui341d.lib
opencv_img_hash341d.lib
opencv_imgcodecs341d.lib
opencv_imgproc341d.lib
opencv_line_descriptor341d.lib
opencv_ml341d.lib
opencv_objdetect341d.lib
opencv_optflow341d.lib
opencv_phase_unwrapping341d.lib
opencv_photo341d.lib
opencv_plot341d.lib
opencv_reg341d.lib
opencv_rgbd341d.lib
opencv_saliency341d.lib
opencv_shape341d.lib
opencv_stereo341d.lib
opencv_stitching341d.lib
opencv_structured_light341d.lib
opencv_superres341d.lib
opencv_surface_matching341d.lib
opencv_text341d.lib
opencv_tracking341d.lib
opencv_video341d.lib
opencv_videoio341d.lib
opencv_videostab341d.lib
opencv_xfeatures2d341d.lib
opencv_ximgproc341d.lib
opencv_xobjdetect341d.lib
opencv_xphoto341d.lib
opencv_world341d.lib
opencv_world341.lib

 

你可能感兴趣的:(vs,opencv)