{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/120","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/120/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/120/events","html_url":"https://github.com/mshabunin/test2/issues/120","id":91286392,"number":120,"title":"cuda + opencv_world linkage broken","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/test2/labels/Affected-branch_'master'_(3.0-dev)","name":"Affected-branch_'master'_(3.0-dev)","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Category-build/install","name":"Category-build/install","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Status-Open","name":"Status-Open","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Target--","name":"Target--","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T15:57:21Z","updated_at":"2015-06-26T15:57:21Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/4198\r\n```\n|| by Mikhail Kandel on 2015-02-16 00:22:00\n|| Status: Open\n|| Priority: High\n|| Affected: branch 'master' (3.0-dev)\n|| Target: -\n|| Category: build/install\n\ncuda + opencv_world linkage broken\n===========\nI'm getting a thousands of linking errors when I try build\n`opencv_world` with CUDA support.\n\n     Creating library D:/opencvtest/buildo/lib/Release/opencv_world300.lib and object D:/opencvtest/buildo/lib/Release/opencv_world300.exputil.cpp.obj : error LNK2001: unresolved external symbol \"public: static class cv::cuda::GpuMat::Allocator * __cdecl cv::cuda::GpuMat::defaultAllocator(void)\" (?defaultAllocator@GpuMat@cuda@cv@SAPEAVAllocator@123@XZ)  \nframe_source.cpp.obj : error LNK2001: unresolved external symbol\n\"public: static class cv::cuda::GpuMat::Allocator * __cdecl\ncv::cuda::GpuMat::defaultAllocator(void)\"\n(?defaultAllocator@GpuMat@cuda@cv@SAPEAVAllocator@123@XZ)optical_flow.cpp.obj : error LNK2001: unresolved external symbol \"public: static class cv::cuda::GpuMat::Allocator * __cdecl cv::cuda::GpuMat::defaultAllocator(void)\" (?defaultAllocator@GpuMat@cuda@cv@SAPEAVAllocator@123@XZ)  \noptical_flow.cpp.obj : error LNK2001: unresolved external symbol\n\"public: static class cv::cuda::GpuMat::Allocator * __cdecl\ncv::cuda::GpuMat::defaultAllocator(void)\"\n(?defaultAllocator@GpuMat@cuda@cv@SAPEAVAllocator@123@XZ)...\n\nSteps to recreate:  \n1. Grab latest version from git  \nD:\\opencvtest\\opencv> git for-each-ref --sort=-committerdate\nrefs/heads/  \n5466e321b8c8f97536002a357e5b7ff49a5d2bf9 commit refs/heads/master  \n2. Remove BUILD_PERF_TESTS, BUILD_TESTS (won't pass configure due to\nsome UNIX library being accidentally pulled in). Set CUDA_ARCH_BIN=2.0\n3.0. Add CUDA_FAST_MATH, and BUILD_opencv_world\n\n@General configuration for OpenCV 3.0.0-dev\n=====================================  \n Version control: 3.0.0-beta-499-g5466e32\n\n    Platform:    Host:                        Windows 6.2 AMD64    CMake:                       3.0.1    CMake generator:             Visual Studio 12 2013 Win64    CMake build tool:            C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe    MSVC:                        1800\n\n    C/C++:    Built as dynamic libs?:      YES    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe  (ver 18.0.31101.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 /MP8  /MD /O2 /Ob2 /D NDEBUG  /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 /MP8  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1     C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/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 /D NDEBUG  /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  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1     Linker flags (Release):      /machine:x64   /INCREMENTAL:NO  /debug    Linker flags (Debug):        /machine:x64   /debug /INCREMENTAL     Precompiled headers:         YES\n\n    OpenCV modules:    To be built:                 cudev core flann imgproc imgcodecs videoio highgui ml features2d calib3d cudaarithm video cudabgsegm cudacodec cudafilters cudawarping cudafeatures2d cudaimgproc objdetect cudalegacy cudaobjdetect cudaoptflow cudastereo photo shape stitching superres ts videostab world    Disabled:                    -    Disabled by dependency:      -    Unavailable:                 androidcamera java python2 viz\n\n    Windows RT support:            NO\n\n    GUI:     QT:                          NO    Win32 UI:                    YES    OpenGL support:              NO    VTK support:                 NO\n\n    Media I/O:     ZLib:                        build (ver 1.2.8)    JPEG:                        build (ver 90)    WEBP:                        build (ver 0.3.1)    PNG:                         build (ver 1.5.12)    TIFF:                        build (ver 42 - 4.0.2)    JPEG 2000:                   build (ver 1.900.1)    OpenEXR:                     build (ver 1.7.1)    GDAL:                        NO\n\n    Video I/O:    Video for Windows:           YES    DC1394 1.x:                  NO    DC1394 2.x:                  NO    FFMPEG:                      YES (prebuilt binaries)      codec:                     YES (ver 55.18.102)      format:                    YES (ver 55.12.100)      util:                      YES (ver 52.38.100)      swscale:                   YES (ver 2.3.100)      gentoo-style:              YES    OpenNI:                      NO    OpenNI PrimeSensor Modules:  NO    OpenNI2:                     NO    PvAPI:                       NO    GigEVisionSDK:               NO    DirectShow:                  YES    Media Foundation:            NO    XIMEA:                       NO    Intel PerC:                  NO\n\n    Other third-party libraries:    Use IPP:                     8.2.1 [8.2.1]         at:                     D:/opencvtest/opencv/3rdparty/ippicv/unpack/ippicv_win    Use IPP Async:               NO    Use Eigen:                   NO    Use TBB:                     NO    Use OpenMP:                  NO    Use GCD                      NO    Use Concurrency              YES    Use C=:                      NO    Use Cuda:                    YES (ver 6.5)    Use OpenCL:                  YES\n\n    NVIDIA CUDA    Use CUFFT:                   YES    Use CUBLAS:                  NO    USE NVCUVID:                 NO    NVIDIA GPU arch:             20 30    NVIDIA PTX archs:            30    Use fast math:               YES\n\n    OpenCL:    Version:                     dynamic    Include path:                D:/opencvtest/opencv/3rdparty/include/opencl/1.2    Use AMDFFT:                  NO    Use AMDBLAS:                 NO\n\n    Python 2:    Interpreter:                 c:/Users/misha/AppData/Local/Enthought/Canopy/User/Scripts/python.exe (ver 2.7.6)\n\n    Python 3:    Interpreter:                 NO\n\n    Python (for build):            c:/Users/misha/AppData/Local/Enthought/Canopy/User/Scripts/python.exe\n\n    Java:    ant:                         NO    JNI:                         NO    Java wrappers:               NO    Java tests:                  NO\n\n    Matlab:    mex:                         C:/Program Files/MATLAB/R2014a/bin/mex.bat    Compiler/generator:          Not working (bindings will not be generated)\n\n    Documentation:    Doxygen:                     NO    PlantUML:                    NO\n\n    Tests and samples:    Tests:                       NO    Performance tests:           NO    C/C++ Examples:              NO\n\n    Install path:                  D:/opencvtest/buildo/install\n\n    cvconfig.h is in:              D:/opencvtest/buildo@\n\nAny idea whats going on? Is `opencv_world` incompatible with CUDA?\n\n\nHistory\n=======\n|| by Mikhail Kandel on 2015-02-16 00:42:00\nIf I uncheck `opencv_world` in CMake everything builds...\n\n\n|| by Steven Puttemans on 2015-02-16 16:34:00\nopencv_world module has been broken for ages ... known problem but\nfixing it is quite a challenge it seems ...\n-   Status changed from New to Open\n```"}}