OPENCV3.4.1 +win7 64位+VS2017

本文介绍了如何在Windows 7 64位环境下,使用Visual Studio 2017配置和编译OpenCV3.4.1。主要步骤包括:下载并安装CMake,获取OpenCV源码,通过CMake生成VS项目文件,配置编译选项,解决编译过程中可能出现的依赖问题,以及编译完成后的验证方法。
摘要由CSDN通过智能技术生成


OPENCV3.4.1 +win7 64+VS2017

1,下载cmake,并安装.下载链接:https://cmake.org/download/

2,下载opencv3.4.1版本的opencv-masteropencv-contrib-master,点击链接:https://github.com/opencv下载,并解压到本地文件夹

3,打开cmake,选择源文件路径和将要构建的路径(此为自己新建文件夹)

4,选择配置:

选择对应的VS版本,X86X64,此为生成VS2017 32位库文件

 

3,点击gernerate后,camke下方产生以下信息

The CXX compiler identification is MSVC 19.14.26430.0

The C compiler identification is MSVC 19.14.26430.0

Check for working CXX compiler: C:/Program Files(x86)/Microsoft VisualStudio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x86/cl.exe

Check for working CXX compiler: C:/Program Files(x86)/Microsoft VisualStudio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x86/cl.exe -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detecting CXX compile features

Detecting CXX compile features - done

Check for working C compiler: C:/Program Files(x86)/Microsoft VisualStudio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x86/cl.exe

Check for working C compiler: C:/Program Files(x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x86/cl.exe-- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Detecting C compile features

Detecting C compile features - done

Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)

Performing Test HAVE_CXX11 - Success

Found PythonInterp: C:/Python27/python.exe (foundsuitable version "2.7", minimum required is "2.7")

Found PythonLibs: C:/Python27/libs/python27.lib (foundsuitable exact version "2.7")

Traceback (most recent call last):

File "<string>", line 1, in<module>

ImportError: No module named numpy.distutils

 

Found PythonInterp: C:/Program Files (x86)/MicrosoftVisual Studio/Shared/Python36_64/python.exe (found suitable version"3.6.5", minimum required is "3.4")

Could NOT find PythonLibs (missing: PYTHON_LIBRARIESPYTHON_INCLUDE_DIRS) (Required is exact version "3.6.5")

Traceback (most recent call last):

File "<string>", line 1, in<module>

ModuleNotFoundError: No module named 'numpy'

 

Performing Test HAVE_CPU_SSE3_SUPPORT (check file:cmake/checks/cpu_sse3.cpp)

Performing Test HAVE_CPU_SSE3_SUPPORT - Success

Performing Test HAVE_CPU_SSSE3_SUPPORT (check file:cmake/checks/cpu_ssse3.cpp)

Performing Test HAVE_CPU_SSSE3_SUPPORT - Success

Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file:cmake/checks/cpu_sse41.cpp)

Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success

Performing Test HAVE_CPU_POPCNT_SUPPORT (check file:cmake/checks/cpu_popcnt.cpp)

Performing Test HAVE_CPU_POPCNT_SUPPORT - Success

Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file:cmake/checks/cpu_sse42.cpp)

Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success

Performing Test HAVE_CXX_ARCH:AVX (check file:cmake/checks/cpu_fp16.cpp)

Performing Test HAVE_CXX_ARCH:AVX - Success

Performing Test HAVE_CPU_BASELINE_FLAGS

Performing Test HAVE_CPU_BASELINE_FLAGS - Success

Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1

Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success

Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2

Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success

Performing

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值