OPENCV3.4.1 +win7 64位+VS2017
1,下载cmake,并安装.下载链接:https://cmake.org/download/
2,下载opencv3.4.1版本的opencv-master和opencv-contrib-master,点击链接:https://github.com/opencv下载,并解压到本地文件夹
3,打开cmake,选择源文件路径和将要构建的路径(此为自己新建文件夹)
4,选择配置:
选择对应的VS版本,X86或X64,此为生成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