{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test/issues/408","labels_url":"https://api.github.com/repos/mshabunin/test/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test/issues/408/comments","events_url":"https://api.github.com/repos/mshabunin/test/issues/408/events","html_url":"https://github.com/mshabunin/test/issues/408","id":91232445,"number":408,"title":"Build error on Windows when CUDA is disabled","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test/labels/Affected-branch%20'master'%20(3.0-dev)","name":"Affected-branch 'master' (3.0-dev)","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Category-build/install","name":"Category-build/install","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Priority-Normal","name":"Priority-Normal","color":"bfe5bf"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Status-New","name":"Status-New","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Target--","name":"Target--","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T11:53:08Z","updated_at":"2015-06-26T11:53:08Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/3830\r\n```\n|| by Erfan Noury on 2014-07-26 16:19:00\n|| Status: New\n|| Priority: Normal\n|| Affected: branch 'master' (3.0-dev)\n|| Target: -\n|| Category: build/install\n\nBuild error on Windows when CUDA is disabled\n===========\nI'm on Windows 8.1 x64 with CUDA 6.0 and VS2013 installed, but since\nCUDA 6.0 doesn't have compatibility with VS2013, I disabled CUDA in\nCMake configuration.  \nProblem is, when trying to build Opencv,I get link error in Visual\nStudio, since projects are linked against CUDA libraries.  \nHere is my CMake output:  \n\n    Checking for Windows Platform SDK\n    Checking for Visual Studio 2012\n    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) \n\n    General configuration for OpenCV 3.0.0-dev =====================================\n      Version control:               2.4.9-4346-gda1ac35-dirty\n\n      Platform:\n        Host:                        Windows 6.2 AMD64\n        CMake:                       2.8.12.1\n        CMake generator:             Visual Studio 12 Win64\n        CMake build tool:            C:/PROGRA~2/MSBuild/12.0/Bin/MSBuild.exe\n        MSVC:                        1800\n\n      C/C++:\n        Built as dynamic libs?:      YES\n        C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe  (ver 18.0.30501.0)\n        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:AVX /Oi  /wd4251 /MD /O2 /Ob2 /D NDEBUG  /Zi\n        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:AVX /Oi  /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 \n        C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe\n        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:AVX /Oi  /MD /O2 /Ob2 /D NDEBUG  /Zi\n        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:AVX /Oi  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 \n        Linker flags (Release):      /machine:x64   /INCREMENTAL:NO  /debug\n        Linker flags (Debug):        /machine:x64   /debug /INCREMENTAL \n        Precompiled headers:         YES\n\n      OpenCV modules:\n        To be built:                 core flann imgproc imgcodecs videoio highgui features2d calib3d ml nonfree objdetect optim photo video shape stitching superres ts videostab\n        Disabled:                    world\n        Disabled by dependency:      -\n        Unavailable:                 androidcamera cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java matlab viz\n\n      Windows RT support:            NO\n\n      GUI: \n        QT:                          NO\n        Win32 UI:                    YES\n        OpenGL support:              NO\n        VTK support:                 NO\n\n      Media I/O: \n        ZLib:                        build (ver 1.2.8)\n        JPEG:                        build (ver 90)\n        WEBP:                        NO\n        PNG:                         build (ver 1.5.12)\n        TIFF:                        build (ver 42 - 4.0.2)\n        JPEG 2000:                   build (ver 1.900.1)\n        OpenEXR:                     NO\n\n      Video I/O:\n        Video for Windows:           YES\n        DC1394 1.x:                  NO\n        DC1394 2.x:                  NO\n        FFMPEG:                      YES (prebuilt binaries)\n          codec:                     YES (ver 55.18.102)\n          format:                    YES (ver 55.12.100)\n          util:                      YES (ver 52.38.100)\n          swscale:                   YES (ver 2.3.100)\n          gentoo-style:              YES\n        OpenNI:                      NO\n        OpenNI PrimeSensor Modules:  NO\n        OpenNI2:                     NO\n        PvAPI:                       NO\n        GigEVisionSDK:               NO\n        DirectShow:                  YES\n        Media Foundation:            YES\n        XIMEA:                       NO\n        Intel PerC:                  NO\n\n      Other third-party libraries:\n        Use IPP:                     NO\n        Use IPP Async:               NO\n        Use Eigen:                   YES (ver 3.2.1)\n        Use TBB:                     YES (ver 4.2 interface 7005)\n        Use OpenMP:                  NO\n        Use GCD                      NO\n        Use Concurrency              NO\n        Use C=:                      NO\n        Use Cuda:                    NO\n        Use OpenCL:                  NO\n\n      Python:\n        Interpreter:                 C:/Anaconda/python.exe (ver 2.7.6)\n\n      Java:\n        ant:                         NO\n        JNI:                         C:/Program Files/Java/jdk1.8.0_05/include C:/Program Files/Java/jdk1.8.0_05/include/win32 C:/Program Files/Java/jdk1.8.0_05/include\n        Java tests:                  NO\n\n      Matlab:\n        mex:                         NO\n\n      Tests and samples:\n        Tests:                       NO\n        Performance tests:           YES\n        C/C++ Examples:              NO\n\nAnd this is the error inside Visual Studio:  \n\n    error LNK1104: cannot open file 'opencv_cudev.lib'    opencv_core\n\n\nHistory\n=======\n\n```"}}