opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
79.1k stars 55.83k forks source link

Build issue with VS2017 and Cuda 9.0 #9908

Open CG-SS opened 7 years ago

CG-SS commented 7 years ago
System information

CMake config output:

found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippicv_win
found Intel IPP IW sources: 2017.0.3
at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippiw_win
CUDA detected: 9.0
CUDA NVCC target flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Could NOT find Pylint (missing: PYLINT_EXECUTABLE) 
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
Looking for tiny_dnn.h
Looking for tiny_dnn.h - found
Found tiny-dnn in: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='')
freetype2:   NO
harfbuzz:    NO
CMake Warning at C:/Users/C/Documents/OpenCV/opencv_contrib-master/modules/matlab/CMakeLists.txt:54 (message):
  A required dependency of the matlab module (Python Jinja2 package) was not
  found (installation command: "pip install jinja2").  Disabling Matlab
  bindings...

No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Excluding from source files list: C:/Users/C/Documents/OpenCV/opencv-master/build/modules/imgproc/accum.neon.cpp
Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script.
Tesseract:   NO

General configuration for OpenCV 3.3.0-dev =====================================
  Version control:               unknown

  Extra modules:
    Location (extra):            C:/Users/C/Documents/OpenCV/opencv_contrib-master/modules
    Version control (extra):     unknown

  Platform:
    Timestamp:                   2017-10-23T01:04:20Z
    Host:                        Windows 10.0.15063 AMD64
    CMake:                       3.9.0
    CMake generator:             Visual Studio 15 2017 Win64
    CMake build tool:            C:\Program Files (x86)\Microsoft Visual Studio\2017\Community/MSBuild/15.0/Bin/MSBuild.exe
    MSVC:                        1911

  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
      SSE4_1 (3 files):          + SSSE3 SSE4_1
      SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (2 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
      AVX2 (8 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

  C/C++:
    Built as dynamic libs?:      YES
    C++11:                       YES
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe  (ver 19.11.25547.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 /Oi      /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8  /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 /Oi      /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8  /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/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 /Oi        /MP8  /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 /Oi        /MP8  /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64  /INCREMENTAL:NO  /debug
    Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:          cudart.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/lib/x64
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 cudev core cudaarithm flann imgproc ml objdetect phase_unwrapping plot reg surface_matching video xphoto bgsegm cudabgsegm cudafilters cudaimgproc cudawarping dnn face fuzzy img_hash imgcodecs photo shape videoio xobjdetect cudacodec highgui ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching python3
    Disabled:                    js world contrib_world
    Disabled by dependency:      -
    Unavailable:                 java python2 viz cnn_3dobj cvv dnn_modern freetype 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 encoder: 0x020e)
    PNG:                         build (ver 1.6.24)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    GDAL:                        NO
    GDCM:                        NO

  Video I/O:
    Video for Windows:           YES
    DC1394 1.x:                  NO
    DC1394 2.x:                  NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 57.89.100)
      avformat:                  YES (ver 57.71.100)
      avutil:                    YES (ver 55.58.100)
      swscale:                   YES (ver 4.6.100)
      avresample:                YES (ver 3.5.0)
    GStreamer:                   NO
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    OpenNI2:                     NO
    PvAPI:                       NO
    GigEVisionSDK:               NO
    DirectShow:                  YES
    Media Foundation:            NO
    XIMEA:                       NO
    Intel PerC:                  NO
    Intel Media SDK:             NO

  Parallel framework:            Concurrency

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Use Intel IPP:               2017.0.3 [2017.0.3]
               at:               C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippicv_win
    Use Intel IPP IW:            sources (2017.0.3)
                  at:            C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippiw_win
    Use Lapack:                  NO
    Use Eigen:                   NO
    Use Cuda:                    YES (ver 9.0)
    Use OpenCL:                  YES
    Use OpenVX:                  NO
    Use custom HAL:              NO

  NVIDIA CUDA
    Use CUFFT:                   YES
    Use CUBLAS:                  YES
    USE NVCUVID:                 YES
    NVIDIA GPU arch:             50 52 60 61 70
    NVIDIA PTX archs:
    Use fast math:               NO

  OpenCL:                        <Dynamic loading of OpenCL library>
    Include path:                C:/Users/C/Documents/OpenCV/opencv-master/3rdparty/include/opencl/1.2
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO

  Python 2:
    Interpreter:                 C:/Python27/python.exe (ver 2.7.10)

  Python 3:
    Interpreter:                 C:/Users/C/AppData/Local/Programs/Python/Python35/python.exe (ver 3.5)
    Libraries:                   C:/Users/C/AppData/Local/Programs/Python/Python35/libs/python35.lib (ver 3.5.0)
    numpy:                       C:/Users/C/AppData/Local/Programs/Python/Python35/lib/site-packages/numpy/core/include (ver 1.12.0)
    packages path:               C:/Users/C/AppData/Local/Programs/Python/Python35/Lib/site-packages

  Python (for build):            C:/Python27/python.exe

  Java:
    ant:                         NO
    JNI:                         C:/Program Files/Java/jdk1.8.0_111/include C:/Program Files/Java/jdk1.8.0_111/include/win32 C:/Program Files/Java/jdk1.8.0_111/include
    Java wrappers:               NO
    Java tests:                  NO

  Matlab:
    mex:                         C:/Program Files/MATLAB/MATLAB Production Server/R2015a/bin/mex.bat
    Compiler/generator:          Not working (bindings will not be generated)

  Documentation:
    Doxygen:                     NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  Install path:                  C:/Users/C/Documents/OpenCV/opencv-master/build/install

  cvconfig.h is in:              C:/Users/C/Documents/OpenCV/opencv-master/build
-----------------------------------------------------------------

Configuring done

VS2017 build output log:

Severity    Code    Description Project File    Line    Suppression State
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_core C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaarithm   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib'  opencv_ml   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ml\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib'  opencv_flann    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\flann\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib'  opencv_imgproc  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_surface_matching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\surface_matching\LINK   1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudawarping  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_plot C:\Users\C\Documents\OpenCV\opencv-master\build\modules\plot\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_phase_unwrapping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\phase_unwrapping\LINK   1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudafilters  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaimgproc  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_photo    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_img_hash C:\Users\C\Documents\OpenCV\opencv-master\build\modules\img_hash\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_fuzzy    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\fuzzy\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_objdetect    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_video    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_xphoto   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_imgcodecs    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_reg  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK    1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudabgsegm   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_face C:\Users\C\Documents\OpenCV\opencv-master\build\modules\face\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_bgsegm   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bgsegm\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_shape    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\shape\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgcodecs330d.lib' opencv_videoio  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK    1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudacodec    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_videoio330d.lib'   opencv_highgui  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\highgui\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_version  C:\Users\C\Documents\OpenCV\opencv-master\build\apps\version\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_visualisation    C:\Users\C\Documents\OpenCV\opencv-master\build\apps\visualisation\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_annotation   C:\Users\C\Documents\OpenCV\opencv-master\build\apps\annotation\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_xobjdetect   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xobjdetect\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib'   opencv_dnn  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_bioinspired  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_dpm  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dpm\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_features2d   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1   
Error   LNK1104 cannot open file '..\..\..\..\lib\Debug\opencv_highgui330d.lib' opencv_waldboost_detector   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xobjdetect\tools\waldboost_detector\LINK    1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudafeatures2d   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_ml330d.lib'    opencv_text C:\Users\C\Documents\OpenCV\opencv-master\build\modules\text\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib'    opencv_saliency C:\Users\C\Documents\OpenCV\opencv-master\build\modules\saliency\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib'    opencv_line_descriptor  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_perf_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK    1   
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)  opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)   opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)    opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)    opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)    opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)    opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_xphoto330d.lib'    opencv_perf_xphoto  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1   
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp)  opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp)   opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp)  opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp)  opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   D8040   error creating or communicating with child process  opencv_perf_cudaimgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaimgproc\cl  1   
Error   D8040   error creating or communicating with child process  opencv_perf_cudawarping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudawarping\cl  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_bioinspired330d.lib'   opencv_perf_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib'    opencv_calib3d  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK    1   
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp)  opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp)   opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp)  opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp)  opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp)  opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp)   opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp)    opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp)    opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp)    opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp)    opencv_perf_cudaarithm  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_xfeatures2d  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudalegacy   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   D8040   error creating or communicating with child process  opencv_perf_cudaarithm  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaarithm\cl   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudabgsegm330d.lib'    opencv_perf_cudabgsegm  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudabgsegm\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_text330d.lib'  opencv_datasets C:\Users\C\Documents\OpenCV\opencv-master\build\modules\datasets\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudacodec330d.lib' opencv_perf_cudacodec   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudacodec\LINK  1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaoptflow  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafeatures2d330d.lib'    opencv_perf_cudafeatures2d  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafeatures2d\LINK 1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_superres C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_stereo   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_videostab    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_phase_unwrapping330d.lib'  opencv_structured_light C:\Users\C\Documents\OpenCV\opencv-master\build\modules\structured_light\LINK   1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_stitching    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_aruco    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\aruco\LINK  1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaobjdetect    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK   1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudastereo   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_perf_core    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\core\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_plot330d.lib'  opencv_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_ccalib   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ccalib\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_createsamples    C:\Users\C\Documents\OpenCV\opencv-master\build\apps\createsamples\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_optflow  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK    1   
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp)  opencv_perf_cudastereo  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   535 
Error   C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &&)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp)   opencv_perf_cudastereo  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   536 
Error   C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   C1903   unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp)    opencv_perf_cudastereo  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple   674 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_traincascade C:\Users\C\Documents\OpenCV\opencv-master\build\apps\traincascade\LINK  1   
Error   D8040   error creating or communicating with child process  opencv_perf_cudastereo  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudastereo\cl   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_aruco330d.lib' opencv_interactive-calibration  C:\Users\C\Documents\OpenCV\opencv-master\build\apps\interactive-calibration\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaoptflow330d.lib'   opencv_perf_cudaoptflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaoptflow\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_rgbd C:\Users\C\Documents\OpenCV\opencv-master\build\modules\rgbd\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_xfeatures2d330d.lib'   opencv_perf_xfeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xfeatures2d\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaobjdetect330d.lib' opencv_perf_cudaobjdetect   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaobjdetect\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_perf_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafilters330d.lib'   opencv_perf_cudafilters C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafilters\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_perf_objdetect   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_ximgproc330d.lib'  opencv_perf_ximgproc    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_line_descriptor330d.lib'   opencv_perf_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_photo330d.lib' opencv_perf_photo   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\photo\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib'   opencv_perf_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudalegacy330d.lib'    opencv_perf_cudalegacy  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudalegacy\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_perf_imgcodecs   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_stereo330d.lib'    opencv_perf_stereo  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_optflow330d.lib'   opencv_perf_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_tracking330d.lib'  opencv_perf_tracking    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_aruco330d.lib' opencv_test_aruco   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\aruco\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_test_video   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_superres330d.lib'  opencv_perf_superres    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\superres\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_stitching330d.lib' opencv_perf_stitching   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stitching\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_bgsegm330d.lib'    opencv_test_bgsegm  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bgsegm\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib'   opencv_python3  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\python3\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_bioinspired330d.lib'   opencv_test_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib'   opencv_test_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_perf_video   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_perf_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudabgsegm330d.lib'    opencv_test_cudabgsegm  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudabgsegm\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudacodec330d.lib' opencv_test_cudacodec   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudacodec\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafeatures2d330d.lib'    opencv_test_cudafeatures2d  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafeatures2d\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaarithm330d.lib'    opencv_test_cudaarithm  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaarithm\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafilters330d.lib'   opencv_test_cudafilters C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafilters\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaimgproc330d.lib'   opencv_test_cudaimgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaimgproc\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaobjdetect330d.lib' opencv_test_cudaobjdetect   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaobjdetect\LINK  1   
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_test_cudev   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudalegacy330d.lib'    opencv_test_cudalegacy  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudalegacy\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudastereo330d.lib'    opencv_test_cudastereo  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudastereo\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_test_core    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\core\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudawarping330d.lib'   opencv_test_cudawarping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudawarping\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_dnn330d.lib'   opencv_test_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_face330d.lib'  opencv_test_face    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\face\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaoptflow330d.lib'   opencv_test_cudaoptflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaoptflow\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_test_flann   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\flann\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib'    opencv_perf_features2d  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_test_highgui C:\Users\C\Documents\OpenCV\opencv-master\build\modules\highgui\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_img_hash330d.lib'  opencv_test_img_hash    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\img_hash\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_test_imgcodecs   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_line_descriptor330d.lib'   opencv_test_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_phase_unwrapping330d.lib'  opencv_test_phase_unwrapping    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\phase_unwrapping\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_fuzzy330d.lib' opencv_test_fuzzy   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\fuzzy\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_optflow330d.lib'   opencv_test_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_test_objdetect   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_ml330d.lib'    opencv_test_ml  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ml\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_photo330d.lib' opencv_test_photo   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\photo\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib'   opencv_test_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_structured_light330d.lib'  opencv_test_structured_light    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\structured_light\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_stereo330d.lib'    opencv_test_stereo  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_shape330d.lib' opencv_test_shape   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\shape\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_stitching330d.lib' opencv_test_stitching   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stitching\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_superres330d.lib'  opencv_test_superres    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\superres\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_text330d.lib'  opencv_test_text    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\text\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_rgbd330d.lib'  opencv_test_rgbd    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\rgbd\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib'    opencv_test_features2d  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_videostab330d.lib' opencv_test_videostab   C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videostab\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_test_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_tracking330d.lib'  opencv_test_tracking    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_xphoto330d.lib'    opencv_test_xphoto  C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_xfeatures2d330d.lib'   opencv_test_xfeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xfeatures2d\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_ximgproc330d.lib'  opencv_test_ximgproc    C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK   1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib'   opencv_test_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_dnn330d.lib'   opencv_perf_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK    1   
ToDayL commented 7 years ago

I have encountered this problem today, using VS 2017 and CUDA 9.0. The actual problem is the first error MSB6006 which leads to the other LNK1104 errors. I searched in google and find this solution: https://stackoverflow.com/questions/45918446/compiling-opencv-3-3-with-cuda-9-0rc When using CMAKE to generate the project, change the CUDA_HOST_COMPILER parameter to: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe The path of Visual Studio has changed in VS 2017 which leads to the errors.

This can solve most of problems you list, but some errors like: C2610, C2535, .etc still exists, but it seems affect only the performance tests. All OpenCV libraries are generated successfully and the INSTALL procedure also works fine.

fiammante commented 7 years ago

With the latest Visual Studio the path for CUDA_HOST_COMPILER is C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx64/x64/cl.exe

TylerGubala commented 7 years ago

Thanks ToDayL, that worked for me.

To add to this, you also need to append the bin/release directory to $PATH or make the .dll files local to python to avoid import errors for OpenCV Python, then you are all set.

aaron-bray commented 6 years ago

I have a PR in, but setting your CUDA_HOST_COMPILER to this should work for any 2017 compiler (that CUDA supports)

$(VCInstallDir)Tools/MSVC/$(VCToolsVersion)/bin/Host$(Platform)/$(PlatformTarget)

VladimirBessonov commented 3 years ago

what about A required dependency of the matlab module (Python Jinja2 package) was not found (installation command: "pip install jinja2"). Disabling Matlab bindings... ?