当前位置:   article > 正文

【C++基础】【集成编译环境02】从源码开始的Windows10 Clion的Opencv 3.0 编译环境配置和搭建_built target opencv_dnn

built target opencv_dnn

前言:

本文详细介绍了CLION下的opencv的编译环境搭建。一切从源码开始,指的是下载的源码, OpenCV,CMake。

文章先从Opencv的基础版本出发,介绍opencv下载的几种方法。然后,依此按照拍照CLION来编译Opencv的要求逐一配置项目系统:在安装好编译器,和CMAKE编译系统后,笔者先对Opencv的源码进行了编译,然后,在CLION里面设置好安装的编译器和 CMAKE编译系统,同时,将上述编译器和Opencv编译好的库的地址都添加到系统路径里面,然后,找到两个标定的opencv代码进行了编译,并编译成功。

小结:

opencv的源码编译比较繁琐花时间,其实完全可以从官网直接下载已经编译好的库,其实,windows的默认下载的是VS的编译好的库。这些资源在文章后面都给出了链接。


本文目标:

基于opencv3.0的一个老的机器视觉项目,在Clion中构建编译环境,并跑起来。


系统以及软件环境:

Cmake         3.22.3

MinGW         6.0                                           x86_64-8.1.0-release-posix-seh-rt_v6-rev0

GDB              11.1

GCC               version 8.1.0

opencv        3.4.16


Opencv的版本

Releases - OpenCV

Opencv的沿革下,正在迈进5.0的版本,由于接口的变化,opencv3.0的版本在很多项目里面还继续广泛使用,导致opencv针对3.0的版本一直在做分支的bug修复工作,直到现在目前,还没有统一。下面的图,显示了最新的opencv的版本和3.0的修正版本的时间,几乎同时。

我们的目标是运行一个老的opencv的版本,那么我们选择最新的3.0系列的版本,3.4.16

 

上图有好几个下载的选项,在windows10下,我们选择windows这个选项,这个选项包括了一个编译好的vc(微软)支持的windows兼容版本 + 源码目录,所以,如果是要自己编译的话,选这个也可以,结果和选上面source是一样。 

 

下载完毕后,我们新建一个文件夹,我们这里是:D:/OPENCV/VERSION3/ ,把下载的opencv安装执行文件解压到我们定义的目录里面:

目录结构,如下,正如我们之前讨论,他包括源码: sources 文件夹,和一个已经编译好的支持微软VS的一个库文件夹【如果配置到Visual Studio应该会更加简单】 

Build是默认的vc 编译的结果。Souces 这是可以用你想要的编译器来做的结果:


MinGW编译器:

MinGW的基础知识,可以参阅我之前的博客:

(1条消息) 【C++基础】【集成编译环境01】Clion的C++编译环境和Boost Test Framworks框架运行实践_Franklin的博客-CSDN博客https://dimensionspacex.blog.csdn.net/article/details/123651653?spm=1001.2014.3001.5502

具体Mingw的下载和安装配置,可参阅之前我写的博客:

(1条消息) MinGW 64的安装 - 官网sourceforge安装失败非翻墙解决办法_Franklin的博客-CSDN博客_sourceforge下载不了https://dimensionspacex.blog.csdn.net/article/details/124314331?spm=1001.2014.3001.5502

安装好的话,编译器确认:

  1. PS C:\Users\frank_sj> gcc -v
  2. Using built-in specs.
  3. COLLECT_GCC=D:\mingw64\bin\gcc.exe
  4. COLLECT_LTO_WRAPPER=D:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe
  5. Target: x86_64-w64-mingw32
  6. Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
  7. Thread model: posix
  8. gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)

安装好MinGW编译器后, 需要做两件事情:

  • 在windows系统的环境变量里面设置一下路径:path

  • 在CLION里面【设置】\工具里面设置好我们下载的编译工具。

 


CMAKE

Download | CMake

 

 

 

CMake 下载好之后,可以用CMake的 cmake-gui 工具进行opencv的MinGW库的编译工作。 


 Opencv MinGW 库的编译:

打开   cmake-gui

 

找到opencv的下载安装文件夹,我们这里是:D:/OPENCV/VERSION3/ 

【Franklin 案,然后,我们新建一个目录:build-MW,这个目录不用于之前默认的vs支持的目录】

 

然后,我们选择configure进行配置, 

 

注意我们的目标是用 MinGW 的gun c++进行编译, 

 

 选好,我们要用的编译器如上,然后,开始执行配置,CMake 会一边配置一边打印,信息还是很全的。

 

 

 

 【逐渐编译各个模块】

 

 【重新点击configue,会有一些报错,都是一些库的编译问题,后面有一些解决的办法】

【Franklin,案,到现在为止我们还没有开始编译,我们只是做了一下配置的检查工作,如果这个时候执行编译,报错,如下】

 

 【Franklin,案,因为我们甚至连Makefile还没有产生】

点击【Generate】 

现在,我们产生Makefiles。

【案,Makefiles是 CMake编译系统的基本文件,而,CMake 是 Clion的基本构建的支持编译系统之一】

这些知识,我在下面这篇博客里面做了比较仔细的说明。

(1条消息) 【C++基础】【集成编译环境01】Clion的C++编译环境和Boost Test Framworks框架运行实践_Franklin的博客-CSDN博客https://dimensionspacex.blog.csdn.net/article/details/123651653?spm=1001.2014.3001.5502

 

 

【Franlin】 【现在算是做好了编译准备,Done】

然后,正式开始编译了,用下面的代码,由于家里的计算机比较低,选了4核进行编译

PS D:\OPENCV\VERSION3\opencv\build-MW> mingw32-make.exe -j 4

最终,编译成功图:【大约花了一个小时】

[ 99%] Linking CXX executable ..\..\bin\opencv_createsamples.exe
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/imagestorage.cpp.obj
[100%] Linking CXX executable ..\..\bin\opencv_test_calib3d.exe
[100%] Linking CXX shared module ..\..\lib\python3\cv2.cp39-win_amd64.pyd
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/lbpfeatures.cpp.obj
[100%] Built target opencv_createsamples
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_boost.cpp.obj
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_data.cpp.obj
[100%] Built target opencv_test_calib3d
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_inner_functions.cpp.obj
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_tree.cpp.obj
[100%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/traincascade.cpp.obj
[100%] Built target opencv_python3
[100%] Linking CXX executable ..\..\bin\opencv_traincascade.exe
[100%] Built target opencv_traincascade

 然后,我贴一下通用配置的opencv都有哪些东西:

General configuration for OpenCV 3.4.16 =====================================

Version control: unknown

Platform:

Timestamp: 2022-05-10T16:43:30Z

Host: Windows 10.0.19044 AMD64

CMake: 3.23.1

CMake generator: MinGW Makefiles

CMake build tool: D:/mingw64/bin/mingw32-make.exe

Configuration: Release

CPU/HW features:

Baseline: SSE SSE2 SSE3

requested: SSE3

Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2

requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX

SSE4_1 (16 files): + SSSE3 SSE4_1

SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2

FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX

AVX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX

AVX2 (30 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

C/C++:

Built as dynamic libs?: YES

C++11: YES

C++ Compiler: D:/mingw64/bin/g++.exe (ver 8.1.0)

C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG

C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG

C Compiler: D:/mingw64/bin/gcc.exe

C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG

C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG

Linker flags (Release): -Wl,--gc-sections

Linker flags (Debug): -Wl,--gc-sections

ccache: NO

Precompiled headers: NO

Extra dependencies:

3rdparty dependencies:

OpenCV modules:

To be built: calib3d core dnn features2d flann highgui imgcodecs imgproc ml objdetect photo python3 shape stitching superres ts video videoio videostab

Disabled: world

Disabled by dependency: -

Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 viz

Applications: tests perf_tests apps

Documentation: NO

Non-free algorithms: NO

Windows RT support: NO

GUI:

Win32 UI: YES

VTK support: NO

Media I/O:

ZLib: build (ver 1.2.11)

JPEG: build-libjpeg-turbo (ver 2.1.0-62)

WEBP: build (ver encoder: 0x020f)

PNG: build (ver 1.6.37)

TIFF: build (ver 42 - 4.2.0)

JPEG 2000: build (ver 1.900.1)

OpenEXR: build (ver 2.3.0)

HDR: YES

SUNRASTER: YES

PXM: YES

Video I/O:

DC1394: NO

FFMPEG: NO

avcodec: NO

avformat: NO

avutil: NO

swscale: NO

avresample: NO

GStreamer: NO

DirectShow: YES

Parallel framework: none

Trace: YES (built-in)

Other third-party libraries:

Lapack: NO

Eigen: NO

Custom HAL: NO

Protobuf: build (3.5.1)

OpenCL: YES (no extra features)

Include path: D:/OPENCV/VERSION3/opencv/sources/3rdparty/include/opencl/1.2

Link libraries: Dynamic load

Python 3:

Interpreter: D:/Programs/Python/Python39/python.exe (ver 3.9.5)

Libraries: D:/Programs/Python/Python39/libs/python39.lib (ver 3.9.5)

numpy: D:/Programs/Python/Python39/lib/site-packages/numpy/core/include (ver 1.20.3)

install path: D:/Programs/Python/Python39/Lib/site-packages/cv2/python-3.9

Python (for build): D:/Programs/Python/Python39/python.exe

Java:

ant: NO

JNI: C:/Program Files/Java/jdk-12.0.2/include C:/Program Files/Java/jdk-12.0.2/include/win32 C:/Program Files/Java/jdk-12.0.2/include

Java wrappers: NO

Java tests: NO

Install to: D:/OPENCV/VERSION3/opencv/build-MW/install

然后,安装【install 一下】

PS D:\OPENCV\VERSION3\opencv\build-MW> mingw32-make.exe install

 LOG,贴出来,

[  2%] Built target zlib
[ 10%] Built target opencv_core
[ 16%] Built target opencv_imgproc
[ 20%] Built target libjpeg-turbo
[ 28%] Built target libwebp
[ 31%] Built target libtiff
[ 38%] Built target IlmImf
[ 41%] Built target libjasper
[ 42%] Built target libpng
[ 44%] Built target opencv_imgcodecs
[ 45%] Built target opencv_videoio
[ 45%] Built target opencv_highgui
[ 46%] Built target opencv_ts
[ 49%] Built target opencv_test_core
[ 52%] Built target opencv_perf_core
[ 53%] Built target opencv_flann
[ 54%] Built target opencv_test_flann
Consolidate compiler generated dependencies of target opencv_test_imgproc
[ 58%] Built target opencv_test_imgproc
Consolidate compiler generated dependencies of target opencv_perf_imgproc
[ 61%] Built target opencv_perf_imgproc
[ 62%] Built target opencv_ml
[ 63%] Built target opencv_test_ml
[ 65%] Built target opencv_photo
Consolidate compiler generated dependencies of target opencv_test_photo
[ 65%] Built target opencv_test_photo
[ 65%] Built target opencv_perf_photo
[ 66%] Built target opencv_video
Consolidate compiler generated dependencies of target opencv_test_video
[ 67%] Built target opencv_test_video
Consolidate compiler generated dependencies of target opencv_perf_video
[ 68%] Built target opencv_perf_video
[ 74%] Built target libprotobuf
[ 80%] Built target opencv_dnn
Consolidate compiler generated dependencies of target opencv_test_dnn
[ 81%] Built target opencv_test_dnn
Consolidate compiler generated dependencies of target opencv_perf_dnn
[ 81%] Built target opencv_perf_dnn
[ 83%] Built target opencv_features2d
Consolidate compiler generated dependencies of target opencv_test_features2d
[ 84%] Built target opencv_test_features2d
Consolidate compiler generated dependencies of target opencv_perf_features2d
[ 85%] Built target opencv_perf_features2d
Consolidate compiler generated dependencies of target opencv_test_imgcodecs
[ 85%] Built target opencv_test_imgcodecs
Consolidate compiler generated dependencies of target opencv_perf_imgcodecs
[ 85%] Built target opencv_perf_imgcodecs
[ 85%] Built target opencv_shape
Consolidate compiler generated dependencies of target opencv_test_shape
[ 86%] Built target opencv_test_shape
Consolidate compiler generated dependencies of target opencv_test_videoio
[ 87%] Built target opencv_test_videoio
Consolidate compiler generated dependencies of target opencv_perf_videoio
[ 87%] Built target opencv_perf_videoio
[ 89%] Built target opencv_calib3d
Consolidate compiler generated dependencies of target opencv_test_calib3d
[ 92%] Built target opencv_test_calib3d
Consolidate compiler generated dependencies of target opencv_perf_calib3d
[ 92%] Built target opencv_perf_calib3d
Consolidate compiler generated dependencies of target opencv_test_highgui
[ 92%] Built target opencv_test_highgui
[ 92%] Built target quirc
Consolidate compiler generated dependencies of target opencv_objdetect
[ 93%] Built target opencv_objdetect
Consolidate compiler generated dependencies of target opencv_test_objdetect
[ 94%] Built target opencv_test_objdetect
Consolidate compiler generated dependencies of target opencv_perf_objdetect
[ 94%] Built target opencv_perf_objdetect
Consolidate compiler generated dependencies of target opencv_stitching
[ 96%] Built target opencv_stitching
Consolidate compiler generated dependencies of target opencv_test_stitching
[ 96%] Built target opencv_test_stitching
Consolidate compiler generated dependencies of target opencv_perf_stitching
[ 97%] Built target opencv_perf_stitching
[ 97%] Built target opencv_superres
Consolidate compiler generated dependencies of target opencv_test_superres
[ 97%] Built target opencv_test_superres
Consolidate compiler generated dependencies of target opencv_perf_superres
[ 97%] Built target opencv_perf_superres
Consolidate compiler generated dependencies of target opencv_videostab
[ 98%] Built target opencv_videostab
Consolidate compiler generated dependencies of target opencv_test_videostab
[ 98%] Built target opencv_test_videostab
[ 98%] Built target gen_opencv_python_source
Consolidate compiler generated dependencies of target opencv_python3
[ 98%] Built target opencv_python3
Consolidate compiler generated dependencies of target opencv_traincascade
[ 99%] Built target opencv_traincascade
Consolidate compiler generated dependencies of target opencv_createsamples
[ 99%] Built target opencv_createsamples
[ 99%] Built target opencv_annotation
[ 99%] Built target opencv_visualisation
Consolidate compiler generated dependencies of target opencv_interactive-calibration
[100%] Built target opencv_interactive-calibration
[100%] Built target opencv_version
[100%] Built target opencv_version_win32
Install the project...
-- Install configuration: "Release"
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/ffmpeg-license.txt
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/ffmpeg-readme.txt
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/opencl-headers-LICENSE.txt
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/cvconfig.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/opencv_modules.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/OpenCVModules.cmake
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/OpenCVModules-release.cmake
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/OpenCVConfig-version.cmake
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/OpenCVConfig.cmake
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/./OpenCVConfig-version.cmake
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/./OpenCVConfig.cmake
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/./LICENSE
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/./setup_vars_opencv3.cmd
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/zlib-README
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/libjpeg-turbo-README.md
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/libjpeg-turbo-LICENSE.md
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/libjpeg-turbo-README.ijg
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/libtiff-COPYRIGHT
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/jasper-LICENSE
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/jasper-README
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/jasper-copyright
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/libpng-LICENSE
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/libpng-README
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/openexr-LICENSE
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/openexr-AUTHORS.ilmbase
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/openexr-AUTHORS.openexr
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/protobuf-LICENSE
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/protobuf-README.md
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/quirc-LICENSE
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cv.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cv.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cvaux.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cvaux.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cvwimage.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cxcore.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cxcore.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cxeigen.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/cxmisc.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/highgui.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv/ml.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/opencv.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_core3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_core3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/affine.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/async.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/base.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/bindings_utils.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/bufferpool.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/check.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/core.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/core_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda.inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/block.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/border_interpolate.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/color.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/common.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/datamov_utils.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/detail/color_detail.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/detail/reduce.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/detail/reduce_key_val.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/detail/transform_detail.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/detail/type_traits_detail.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/detail/vec_distance_detail.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/dynamic_smem.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/emulation.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/filters.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/funcattrib.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/functional.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/limits.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/reduce.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/saturate_cast.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/scan.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/simd_functions.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/transform.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/type_traits.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/utility.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/vec_distance.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/vec_math.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/vec_traits.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/warp.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/warp_reduce.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda/warp_shuffle.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda_stream_accessor.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cuda_types.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cv_cpu_dispatch.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cv_cpu_helper.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cvdef.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cvstd.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/cvstd.inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/detail/async_promise.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/detail/exception_ptr.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/directx.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/eigen.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/fast_math.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/hal.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/interface.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_avx.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_avx512.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_cpp.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_forward.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_msa.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_neon.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_sse.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_sse_em.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_vsx.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/intrin_wasm.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/msa_macros.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/hal/simd_utils.impl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/ippasync.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/mat.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/mat.inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/matx.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/neon_utils.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/ocl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/ocl_genbase.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/ocl_defs.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/opencl_info.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/opencl_svm.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/autogenerated/opencl_clamdblas.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/autogenerated/opencl_clamdfft.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_clamdblas.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_clamdfft.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_core.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_gl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_svm_20.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/opengl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/operations.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/optim.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/ovx.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/persistence.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/ptr.inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/saturate.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/simd_intrinsics.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/softfloat.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/sse_utils.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/traits.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/types.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/types_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utility.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/allocator_stats.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/allocator_stats.impl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/filesystem.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/instrumentation.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/logger.defines.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/logger.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/tls.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/utils/trace.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/va_intel.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/version.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/vsx_utils.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/core/wimage.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/licenses/SoftFloat-COPYING.txt
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_flann3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_flann3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/all_indices.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/allocator.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/any.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/autotuned_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/composite_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/config.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/defines.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/dist.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/dummy.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/dynamic_bitset.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/flann.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/flann_base.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/general.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/ground_truth.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/hdf5.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/heap.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/hierarchical_clustering_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/index_testing.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/kdtree_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/kdtree_single_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/kmeans_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/linear_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/logger.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/lsh_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/lsh_table.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/matrix.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/miniflann.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/nn_index.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/object_factory.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/params.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/random.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/result_set.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/sampling.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/saving.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/simplex_downhill.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/flann/timer.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_imgproc3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_imgproc3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc/detail/distortion_model.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc/hal/hal.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc/hal/interface.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc/imgproc.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc/imgproc_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgproc/types_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_ml3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_ml3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/ml.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/ml/ml.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/ml/ml.inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_photo3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_photo3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/photo.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/photo/cuda.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/photo/photo.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/photo/photo_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_video3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_video3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/video.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/video/background_segm.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/video/tracking.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/video/tracking_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/video/video.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_dnn3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_dnn3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/all_layers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/dict.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/dnn.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/dnn.inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/layer.details.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/layer.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/shape_utils.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/dnn/utils/inference_engine.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_features2d3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_features2d3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/features2d.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/features2d/features2d.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/features2d/hal/interface.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_imgcodecs3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_imgcodecs3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgcodecs.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgcodecs/imgcodecs.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgcodecs/imgcodecs_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/imgcodecs/ios.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_shape3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_shape3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/shape.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/shape/emdL1.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/shape/hist_cost.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/shape/shape.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/shape/shape_distance.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/shape/shape_transformer.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_videoio3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_videoio3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videoio.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videoio/cap_ios.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videoio/registry.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videoio/videoio.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videoio/videoio_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_calib3d3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_calib3d3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/calib3d.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/calib3d/calib3d.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/calib3d/calib3d_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_highgui3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_highgui3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/highgui.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/highgui/highgui.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/highgui/highgui_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_objdetect3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_objdetect3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/objdetect.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/objdetect/detection_based_tracker.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/objdetect/objdetect.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/objdetect/objdetect_c.h
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_stitching3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_stitching3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/autocalib.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/blenders.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/camera.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/exposure_compensate.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/matchers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/motion_estimators.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/seam_finders.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/timelapsers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/util.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/util_inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/warpers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/detail/warpers_inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/stitching/warpers.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_superres3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_superres3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/superres.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/superres/optical_flow.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/lib/libopencv_videostab3416.dll.a
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/libopencv_videostab3416.dll
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/deblurring.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/fast_marching.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/fast_marching_inl.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/frame_source.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/global_motion.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/inpainting.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/log.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/motion_core.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/motion_stabilizing.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/optical_flow.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/outlier_rejection.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/ring_buffer.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/stabilizer.hpp
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/include/opencv2/videostab/wobble_suppression.hpp
-- Installing: D:/Programs/Python/Python39/Lib/site-packages/cv2/__init__.py
-- Installing: D:/Programs/Python/Python39/Lib/site-packages/cv2/load_config_py2.py
-- Installing: D:/Programs/Python/Python39/Lib/site-packages/cv2/load_config_py3.py
-- Installing: D:/Programs/Python/Python39/Lib/site-packages/cv2/config.py
-- Installing: D:/Programs/Python/Python39/Lib/site-packages/cv2/python-3.9/cv2.cp39-win_amd64.pyd
-- Installing: D:/Programs/Python/Python39/Lib/site-packages/cv2/config-3.9.py
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_eye.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_eye_tree_eyeglasses.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_frontalcatface.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_frontalcatface_extended.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_frontalface_alt.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_frontalface_alt2.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_frontalface_alt_tree.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_frontalface_default.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_fullbody.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_lefteye_2splits.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_licence_plate_rus_16stages.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_lowerbody.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_profileface.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_righteye_2splits.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_russian_plate_number.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_smile.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/haarcascades/haarcascade_upperbody.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/lbpcascades/lbpcascade_frontalcatface.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/lbpcascades/lbpcascade_frontalface.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/lbpcascades/lbpcascade_frontalface_improved.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/lbpcascades/lbpcascade_profileface.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/etc/lbpcascades/lbpcascade_silverware.xml
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_traincascade.exe
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_createsamples.exe
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_annotation.exe
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_visualisation.exe
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_interactive-calibration.exe
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_version.exe
-- Installing: D:/OPENCV/VERSION3/opencv/build-MW/install/x64/mingw/bin/opencv_version_win32.exe


 【ffmpeg下载问题】

 


设置CLION:

先设置一下,刚才我们编译的opencv的库的地址到windows 环境变量里面:

然后,编写CMakelis.txt 如下: 

  1. cmake_minimum_required(VERSION 3.17)
  2. project(TheFranklinProject)
  3. set(CMAKE_CXX_STANDARD 11)
  4. set(OpenCV_DIR D:/OPENCV/VERSION3/opencv/build-MW)
  5. find_package(OpenCV 3 REQUIRED)
  6. include_directories(${OpenCV_INCLUDE_DIRS})
  7. add_executable(TheFranklinProject
  8. main.cpp
  9. srcs/config.h
  10. )
  11. target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

 然后,随便找一个引用opencv的应用进行编译测试:

【Franklin,案,这里我就略去了,我是编译了一个标定的程序】

在CLion里面

配置一个编译的运行的配置:

 

 

 

 然后,【右键】【重新加载】CLION就开始编译opencv的应用了。

  1. "D:\Program Files\JetBrains\CLion 2022.5\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=D:/Program Files/JetBrains/CLion 2022.5/bin/ninja/win/ninja.exe" -G Ninja -S D:\BaiduNetdiskWorkspace\3DStructure\StereoCalibrationClion\StereoCalibMatch -B D:\BaiduNetdiskWorkspace\3DStructure\StereoCalibrationClion\StereoCalibMatch\cmake-build-debug-mingw
  2. -- Found OpenCV: D:/OPENCV/VERSION3/opencv/build-MW (found suitable version "3.4.16", minimum required is "3")
  3. -- Configuring done
  4. -- Generating done
  5. -- Build files have been written to: D:/BaiduNetdiskWorkspace/3DStructure/StereoCalibrationClion/StereoCalibMatch/cmake-build-debug-mingw
  6. [已完成]

 【DONE】


遇到的问题:

1 Opencv的版本兼容问题:

CMake Error at CMakeLists.txt:12 (find_package):
  Could not find a configuration file for package "OpenCV" that is compatible
  with requested version "3".

  The following configuration files were considered but not accepted:

    D:/OASIS/sw_prj/VS/opencv/opencv/build/x64/vc15/lib/OpenCVConfig.cmake, version: 4.2.0

之前下载了一个最新的opencv的版本,发现和opencv的配置不一致:

 然后,把他换成 4,编译检测过了,但是具体编译到opencv的应用的时候,由于接口函数都变化了,结果编译到函数报错,

【案,拿到开源代码,opencv的版本一定要安装代码说明的版本搞,否则,会遇到很大麻烦】

2 Opencv的库的bin码不兼容

CMake Warning at D:/OPENCV/VERSION3/opencv/build/OpenCVConfig.cmake:190 (message):
  Found OpenCV Windows Pack but it has no binaries compatible with your
  configuration.

  You should manually point CMake variable OpenCV_DIR to your build of OpenCV
  library.
Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)


CMake Error at CMakeLists.txt:12 (find_package):
  Found package configuration file:

    D:/OPENCV/VERSION3/opencv/build/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.

【Franklin案,这个原因是path的路径没有重新设置,导致访问的opencv的MS的编译库,自然报错】 

 3 运行的时候,报错拒绝访问

[笔者,最后,就是到那个目录下,找到编译出来的opencv的应用,然后,用管理员权限跑起来了]

 [拒绝访问】的问题。[找不到 libopencv_core3416.dll]

这个也是环境变量的设定问题,

[上面是之前错误的设定] 

[上面是修正后的设定]


 参考

Windows10 环境下使用 Cmake 和 MinGW-w64 编译安装 OpenCV 4.0.1_YShun顺的博客-CSDN博客_cmake编译opencv mingw

 OpenCV使用CMake和MinGW-w64的编译安装_辉哈的博客-CSDN博客_cmake mingw64


资源列表:

github上编译好的opencv版本OpenCV-MinGW-Build

https://www.wpsshop.cn/w/羊村懒王/article/detail/119762

推荐阅读
相关标签
  

闽ICP备14008679号