C++ 没有为opencv_contrib创建makefile

C++ 没有为opencv_contrib创建makefile,c++,makefile,opencv3.1,opencv-contrib,C++,Makefile,Opencv3.1,Opencv Contrib,我正在尝试将opencv_contrib包添加到我的opencv 3.1版本中。我目前正在使用Microsoft Visual Studio 15中的库。我已经安装了Cmake和GNU Make,克隆了opencv_contrib repo,并按照上的说明构建包。说明如下: C:\Opencv310\build>cmake -DOPENCV_EXTRA_MODULES_PATH=C:\opencv_contrib\modules C:\Opencv310/sources C:\Opencv

我正在尝试将opencv_contrib包添加到我的opencv 3.1版本中。我目前正在使用Microsoft Visual Studio 15中的库。我已经安装了Cmake和GNU Make,克隆了opencv_contrib repo,并按照上的说明构建包。说明如下:

C:\Opencv310\build>cmake -DOPENCV_EXTRA_MODULES_PATH=C:\opencv_contrib\modules C:\Opencv310/sources
C:\Opencv310\build>make -j5
第一条线运行良好,并以couts结尾:

--Configuring done
--Generating done
--Build files have been written to: C:Opencv310\build
当我运行最后一行时,我得到错误:

make: *** No targets specified and no makefile found. Stop.
你们中有人在添加opencv_contrib时遇到过这个错误吗?你看到我所做的有什么错误吗?任何帮助都将不胜感激

第一次调用的完整输出为:

C:\Opencv310\build>cmake -DOPENCV_EXTRA_MODULES_PATH=C:\opencv_contrib\modules C:\Opencv310\sources
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: C:/Opencv310/sources/3rdparty/ippicv/unpack/ippicv_win
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass          -DPLANTUML_JAR=<filepath> option to cmake
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named numpy.distutils
-- Could NOT find PythonInterp: Found unsuitable version "2.7.12", but     required is at least "3.4" (found C:/Python27/python.exe)
-- Could NOT find PythonInterp: Found unsuitable version "2.7.12", but     required is at least "3.2" (found C:/Python27/python.exe)
-- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY     JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS     MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH     MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Caffe:   NO
-- Protobuf:   NO
-- Glog:   NO
-- Module opencv_sfm disabled because the following dependencies are not     found: Eigen Glog/Gflags
-- Could NOT find Protobuf (missing:  Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
-- Build libprotobuf from sources:
--     libprotobuf not found into system
--     The protocol buffer compiler not found
-- Tesseract:   NO
-- Check contents of vgg_generated_48.i ...
-- Check contents of vgg_generated_64.i ...
-- Check contents of vgg_generated_80.i ...
-- Check contents of vgg_generated_120.i ...
-- Check contents of boostdesc_bgm.i ...
-- Check contents of boostdesc_bgm_bi.i ...
-- Check contents of boostdesc_bgm_hd.i ...
-- Check contents of boostdesc_binboost_064.i ...
-- Check contents of boostdesc_binboost_128.i ...
-- Check contents of boostdesc_binboost_256.i ...
-- Check contents of boostdesc_lbgm.i ...
--
-- General configuration for OpenCV 3.1.0     =====================================
--   Version control:               unknown
--
--   Platform:
--     Host:                        Windows 10.0.14393 AMD64
--     CMake:                       3.7.0-rc2
--     CMake generator:             Visual Studio 14 2015
--     CMake build tool:            C:/Program Files     (x86)/MSBuild/14.0/bin/MSBuild.exe
--     MSVC:                        1900
--
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                C:/Program Files (x86)/Microsoft Visual     Studio 14.0/VC/bin/cl.exe  (ver 19.0.24210.0)
--     C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D     _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS     /Gy /bigobj /arch:SSE2 /Oi /fp:fast  /wd4251 /wd4324 /wd4275 /wd4589 /MP4  /MD    /O2 /Ob2 /DNDEBUG  /Zi
--     C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D     _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS     /Gy /bigobj /arch:SSE2 /Oi /fp:fast  /wd4251 /wd4324 /wd4275 /wd4589 /MP4      /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
--     C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
--     C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast    /MP4  /MD /O2 /Ob2 /DNDEBUG  /Zi
--     C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D   _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS  /Gy /bigobj /arch:SSE2 /Oi /fp:fast    /MP4  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
--     Linker flags (Release):      /machine:X86  /INCREMENTAL:NO  /debug
--     Linker flags (Debug):        /machine:X86  /debug /INCREMENTAL
--     Precompiled headers:         YES
--     Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32
--     3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf
--
--   OpenCV modules:
--     To be built:                 core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching
--     Disabled:                    world contrib_world
--     Disabled by dependency:      -
--     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz cvv hdf matlab sfm
--
--   Windows RT support:            NO
--
--   GUI:
--     QT:                          NO
--     Win32 UI:                    YES
--     OpenGL support:              NO
--     VTK support:                 NO
--
--   Media I/O:
--     ZLib:                        build (ver 1.2.8)
--     JPEG:                        build (ver 90)
--     WEBP:                        build (ver 0.3.1)
--     PNG:                         build (ver 1.6.19)
--     TIFF:                        build (ver 42 - 4.0.2)
--     JPEG 2000:                   build (ver 1.900.1)
--     OpenEXR:                     build (ver 1.7.1)
--     GDAL:                        NO
--
--   Video I/O:
--     Video for Windows:           YES
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  NO
--     FFMPEG:                      YES (prebuilt binaries)
--       codec:                     YES (ver 56.41.100)
--       format:                    YES (ver 56.36.101)
--       util:                      YES (ver 54.27.100)
--       swscale:                   YES (ver 3.1.101)
--       resample:                  NO
--       gentoo-style:              YES
--     GStreamer:                   NO
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
--     OpenNI2:                     NO
--     PvAPI:                       NO
--     GigEVisionSDK:               NO
--     DirectShow:                  YES
--     Media Foundation:            NO
--     XIMEA:                       NO
--     Intel PerC:                  NO
--
--   Parallel framework:            Concurrency
--
--   Other third-party libraries:
--     Use IPP:                     9.0.1 [9.0.1]
--          at:                     C:/Opencv310/sources/3rdparty/ippicv/unpack/ippicv_win
--     Use IPP Async:               NO
--     Use Eigen:                   NO
--     Use Cuda:                    NO
--     Use OpenCL:                  YES
--     Use custom HAL:              NO
--
--   OpenCL:
--     Version:                     dynamic
--     Include path:                C:/Opencv310/sources/3rdparty/include/opencl/1.2
--     Use AMDFFT:                  NO
--     Use AMDBLAS:                 NO
--
--   Python 2:
--     Interpreter:                 C:/Python27/python.exe (ver 2.7.12)
--
--   Python 3:
--     Interpreter:                 NO
--
--   Python (for build):            C:/Python27/python.exe
--
--   Java:
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
--
--   Matlab:                        Matlab not found or implicitly disabled
--
--   Documentation:
--     Doxygen:                     NO
--     PlantUML:                    NO
--
--   Tests and samples:
--     Tests:                       YES
--     Performance tests:           YES
--     C/C++ Examples:              NO
--
--   Install path:                  C:/Opencv310/build/install
--
--   cvconfig.h is in:              C:/Opencv310/build
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Opencv310/build
C:\Opencv310\build>cmake-DOPENCV\u EXTRA\u MODULES\u PATH=C:\opencv\u contrib\MODULES C:\Opencv310\sources
--发现IPP(ICV版本):9.0.1[9.0.1]
--地址:C:/Opencv310/sources/3rdparty/ippicv/unpack/ippicv\u win
--找不到Doxygen(缺少:Doxygen\u可执行文件)
--要启用PlantUML支持,请设置PlantUML\u JAR环境变量或将-DPLANTUML\u JAR=选项传递给cmake
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
ImportError:没有名为numpy.distutils的模块
--找不到PythonInterp:找到不合适的版本“2.7.12”,但至少需要“3.4”(找到C:/Python27/python.exe)
--找不到PythonInterp:找到不合适的版本“2.7.12”,但至少需要“3.2”(找到C:/Python27/python.exe)
--找不到JNI(缺少:JAVA\u AWT\u库JAVA\u JVM\u库JAVA\u INCLUDE\u路径JAVA\u INCLUDE\u路径2 JAVA\u AWT\u INCLUDE\u路径)
--找不到Matlab(缺少:Matlab\u MEX\u脚本Matlab\u包含\u目录Matlab\u根目录Matlab\u目录Matlab\u库Matlab\u目录Matlab\u MEXEXT Matlab\u ARCH Matlab\u BIN)
--找不到VTK。请将CMake中的-DVTK_DIR设置为VTK build目录,或使用VTKConfig.CMake文件设置为VTK install子目录
--咖啡馆:没有
--普罗托夫:没有
--格洛格:没有
--模块opencv_sfm已禁用,因为未找到以下依赖项:特征Glog/Gflags
--找不到Protobuf(缺少:Protobuf_库Protobuf_INCLUDE_DIR)
--从以下来源构建libprotobuf:
--在系统中找不到libprotobuf
--找不到协议缓冲区编译器
--特塞拉特:没有
--检查vgg_生成的内容_48.i。。。
--检查vgg_生成的内容_64.i。。。
--检查生成的vgg__80.i的内容。。。
--检查vgg_生成的内容_120.i。。。
--检查boostdesc_bgm.i的内容。。。
--检查boostdesc_bgm_bi.i的内容。。。
--检查boostdesc_bgm_hd.i的内容。。。
--检查boostdesc_binboost_064.i的内容。。。
--检查boostdesc_binboost_128.i的内容。。。
--检查boostdesc_binboost_256.i的内容。。。
--检查boostdesc_lbgm.i的内容。。。
--
--OpenCV 3.1.0的一般配置=====================================
--版本控制:未知
--
--站台:
--主机:Windows 10.0.14393 AMD64
--CMake:3.7.0-rc2
--CMake生成器:Visual Studio 14 2015
--CMake生成工具:C:/Program Files(x86)/MSBuild/14.0/bin/MSBuild.exe
--MSVC:1900
--
--C/C++:
--构建为动态库?:是
+ C++编译器:C//程序文件(x86)/微软VisualStudio 140/Vc/BI/C.EXE(VER 19.0.24210)
- C++标志(释放):/dWi2/d4W/G4/EHA/D,CRTySeCurrION-NOEDECORATED/D,CROTHONSTSTCKNONOY DEPACATE/D,SKLSSECURE NoWiangs/Gy/BigObj/ARC:SSE2/WD4251/WD4324/WD4245/WD489/MP4/MD /O2/OB2/DNDECHG/ZI
——C++标志(调试):/dWi2/d4/d/Gr/EHA/D,CRTySeCurrION-NODE-DECORATET/D,ONSTSTCKNONYDECORATED/D,OS/BigOb/ARC:StE2/OI/FP:St/WD4251/WD4324/WD4255/WD489/MP4/DY-DEXG/MDD/ZI/OB0/OD/RTC1
--C编译器:C:/ProgramFiles(x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
--C标志(发布):/DWIN32/D_WINDOWS/W3/D_CRT_SECURE_NO_DEPRECATE/D_CRT_nonsdc_NO_DEPRECATE/D_SCL_SECURE_NO_WARNINGS/Gy/bigobj/arch:SSE2/Oi/fp:fast/MP4/MD/O2/Ob2/DNDEBUG/Zi
--C标志(调试):/DWIN32/D_WINDOWS/W3/D_CRT_SECURE_NO_DEPRECATE/D_CRT_nonsdc_NO_DEPRECATE/D_SCL_SECURE_NO_WARNINGS/Gy/bigobj/arch:SSE2/Oi/fp:fast/MP4/D_Debug/MDd/Zi/Ob0/Od/RTC1
--链接器标志(发布):/machine:X86/INCREMENTAL:NO/debug
--链接器标志(调试):/machine:X86/Debug/INCREMENTAL
--预编译头:是
--额外依赖项:comctl32 gdi32 ole32 setupapi ws2_32 vfw32
--第三方依赖项:zlib libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf
--
--OpenCV模块:
--待构建:核心法兰imgproc ml photo reg surface匹配视频dnn模糊图像编码形状视频IO highgui objdetect绘图superres ts xobjdetect xphoto bgsegm仿生dpm人脸特征2D线条描述符显著性文本校准3D ccalib数据集rgbd立体结构光跟踪视频稳定X特征2D ximgproc aruco平缝
--残疾人:世界贡献者世界
--由依赖项禁用:-
--不可用:cudaarithm cudabgsegm cudacodec CUDAFEATURES 2D cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3即cvv hdf matlab sfm
--
--Windows RT支持:否
--
--图形用户界面:
--QT:没有
--Win32用户界面:是的
--OpenGL支持:否
--VTK支持:否
--
--媒体输入/输出:
--ZLib:构建(1.2.8版)
--JPEG:build(90版)
--WEBP:构建(版本0.3.1)
--PNG:build(版本1.6.19)
--TIFF:构建(版本42-4.0.2)
--太平绅士