编译OpenCV3.4.1 +contrib+vs2013+x86版本

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hust_bochu_xuchao/article/details/79422116

opencv3.4.1在2月27号发布了。由于项目需要,一直在等待最新的opencv出来。话不多说,记录下编译过程。

一、准备工具

1、已经安装好VS2013  vs2013安装参考博文

2、下载cmake   cmake下载及使用参考博文

3、opencv3.4.1下载地址  选择 win pack ,下载后会得到opencv-3.4.1-vc14.exe这样一个文件。

4、opencv_contrib下载地址  下载后得到opencv_contrib-3.4.1.zip这样一个文件。


二、cmake编译

1、具体编译步骤 具体编译步骤参考

2、可能由于我的电脑已经安装python,所以BUILD_opencv_python3 会默认勾选,要取消勾选。

3、取消勾选BUILD_opencv_hdf


三、报错

1、无法解析的外部符号,如下图所示


解决办法:看样子是opencv_hdf编译报错,可能是我电脑没有hdf相关的库,所以去除BUILD_opencv_hdf 的勾选,即可正确编译。(暂时不清楚opencv_hdf是干什么的,先去除吧)


四、编译结果

1、编译好的dll和lib、include文件 提供下载

2、惯例,奉上所有的lib名称

debug(数量:44)

opencv_aruco341d.lib
opencv_bgsegm341d.lib
opencv_bioinspired341d.lib
opencv_calib3d341d.lib
opencv_ccalib341d.lib
opencv_core341d.lib
opencv_datasets341d.lib
opencv_dnn341d.lib
opencv_dnn_objdetect341d.lib
opencv_dpm341d.lib
opencv_face341d.lib
opencv_features2d341d.lib
opencv_flann341d.lib
opencv_fuzzy341d.lib
opencv_hfs341d.lib
opencv_highgui341d.lib
opencv_imgcodecs341d.lib
opencv_imgproc341d.lib
opencv_img_hash341d.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

release(数量:44)

opencv_aruco341.lib
opencv_bgsegm341.lib
opencv_bioinspired341.lib
opencv_calib3d341.lib
opencv_ccalib341.lib
opencv_core341.lib
opencv_datasets341.lib
opencv_dnn341.lib
opencv_dnn_objdetect341.lib
opencv_dpm341.lib
opencv_face341.lib
opencv_features2d341.lib
opencv_flann341.lib
opencv_fuzzy341.lib
opencv_hfs341.lib
opencv_highgui341.lib
opencv_imgcodecs341.lib
opencv_imgproc341.lib
opencv_img_hash341.lib
opencv_line_descriptor341.lib
opencv_ml341.lib
opencv_objdetect341.lib
opencv_optflow341.lib
opencv_phase_unwrapping341.lib
opencv_photo341.lib
opencv_plot341.lib
opencv_reg341.lib
opencv_rgbd341.lib
opencv_saliency341.lib
opencv_shape341.lib
opencv_stereo341.lib
opencv_stitching341.lib
opencv_structured_light341.lib
opencv_superres341.lib
opencv_surface_matching341.lib
opencv_text341.lib
opencv_tracking341.lib
opencv_video341.lib
opencv_videoio341.lib
opencv_videostab341.lib
opencv_xfeatures2d341.lib
opencv_ximgproc341.lib
opencv_xobjdetect341.lib
opencv_xphoto341.lib

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页