Ask Your Question
0

Building 3.4.6, Windows 10 with Cuda

asked 2019-04-25 10:08:24 -0600

Aeroclassics gravatar image

OK, I am stumped. I have tried about a half a dozen different web sites that have different ways to build OpenCV. I am trying to build 3.4.6 on Windows 10 using VS 2015, and CUDA 9.2. It seems I am always running into the following:

    D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(798): error C2065: 'ID3D11Multithread': undeclared identifier [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(798): error C2923: '`anonymous-namespace'::ComPtr': 'ID3D11Multithread' is not a valid template type argument for parameter 'T' [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(798): error C2133: 'D3DDevMT': unknown size [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(798): error C2512: '`anonymous-namespace'::ComPtr': no appropriate default constructor available [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
  D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(121): note: see declaration of '`anonymous-namespace'::ComPtr'
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(800): error C2100: illegal indirection [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(800): error C2672: 'IID_PPV_ARGS_Helper': no matching overloaded function found [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(800): error C2784: 'void **IID_PPV_ARGS_Helper(T **)': could not deduce template argument for 'T **' from '`anonymous-namespace'::ComPtr *' [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um\combaseapi.h(231): note: see declaration of 'IID_PPV_ARGS_Helper'
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(800): error C2660: 'IUnknown::QueryInterface': function does not take 1 arguments [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(802): error C2678: binary '->': no operator found which takes a left-hand operand of type '`anonymous-namespace'::ComPtr' (or there is no acceptable conversion) [D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\build\modules\videoio\opencv_videoio.vcxproj]
  D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(143): note: could be 'T *`anonymous-namespace'::ComPtr<T>::operator ->(void) const'
  D:\DevLibs\OpenCV\OpenCV-3.4.6\opencv-3.4.6\modules\videoio\src\cap_msmf.cpp(802): note: while trying to match the argument list '(`anonymous-namespace'::ComPtr)'
D:\DevLibs\OpenCV\OpenCV-3.4 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-17 16:47:34 -0600

kychou gravatar image

Try to upgrade your windows SDK to latest version. I have the same problem, too.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-25 10:08:24 -0600

Seen: 455 times

Last updated: Apr 25 '19