Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Install opencv 4.0 with eclipse on Windows

Hello All,

I have installed opencv4.0 on windows. I am compiling OPENCV using CMAKE, I have configured and generated successfully in CMAKE. When i am building using mingw32-make its throwing errors. Can anyone help me in building successfully.

Thanks! Naveen.

Install opencv 4.0 with eclipse on Windows

Hello All,

I have installed opencv4.0 on windows. I am compiling OPENCV using CMAKE, I have configured and generated successfully in CMAKE. When i am building using mingw32-make its throwing errors. Can anyone help me in building successfully.

Thanks! Naveen.

Install opencv 4.0 with eclipse on WindowsWindows- Error during Build

Hello All,

I have installed opencv4.0 on windows. I am compiling OPENCV using CMAKE, I have configured and generated successfully in CMAKE. When i am building using mingw32-make its throwing errors. Can anyone help me in building successfully.

Below is the error which i am facing when i build with an command mingw32-make:

In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/winbase.h:2377:0, from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/windows.h:70, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:76, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In member function 'virtual bool CvVideoWriter_MSMF::open(const String&, int, double, cv::Size, bool)': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2090:37: error: 'MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS' was not declared in this scope SUCCEEDED(spAttr->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, true)) && ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2091:37: error: 'MF_SINK_WRITER_DISABLE_THROTTLING' was not declared in this scope SUCCEEDED(spAttr->SetUINT32(MF_SINK_WRITER_DISABLE_THROTTLING, true)) ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2091:37: note: suggested alternative: 'MF_SINK_WRITER_STATISTICS' E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) [with T = IMFSourceReader]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:758:17: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p' p = lp; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) [with T = IMFSample]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:758:17: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p' E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() [with T = IMFSample]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:774:29: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p' if (p) ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p' p.Release(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() [with T = IMFSourceReader]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:775:33: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p' if (p) ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p' p.Release(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() [with T = IMFSourceReaderCallback]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:779:26: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p' if (p) ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p' p.Release(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() const [with T = IMFSourceReader]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:863:29: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() [with T = IMFMediaType]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:863:82: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::Get() const [with T = IMFMediaType]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:872:36: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p; ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() const [with T = IMFMediaType]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:919:13: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) [with T = IMFAttributes]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:954:37: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p' p = lp; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(const {anonymous}::ComPtr<t>&) [with T = IMFAttributes]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:954:37: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:9: error: using invalid field '{anonymous}::ComPtr<t>::p' p = lp.p; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:16: error: 'const class {anonymous}::ComPtr<imfattributes>' has no member named 'p' p = lp.p; ~~~^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() [with T = IMFAttributes]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:955:9: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() const [with T = IMFAttributes]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:956:9: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() const [with T = IMFAttributes]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:963:13: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p; ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() [with T = IMFMediaSource]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:974:29: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::operator bool() [with T = IMFMediaSource]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:974:115: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:157:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator!=(NULL); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) [with T = IMFSourceReaderCallback]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:985:96: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p' p = lp; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() const [with T = IMFSourceReaderCallback]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:986:137: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() const [with T = IMFMediaSource]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:993:33: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() [with T = IMFSourceReader]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:993:33: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::operator bool() [with T = IMFSample]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1084:9: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:157:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator!=(NULL); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::Get() const [with T = IMFSample]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1104:48: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::operator bool() [with T = IMFSourceReaderCallback]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1141:21: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:157:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator!=(NULL); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() const [with T = IMFSourceReader]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1148:52: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p; ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() [with T = IMFSample]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1178:18: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) [with T = IMFMediaBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1251:39: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p' p = lp; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(const {anonymous}::ComPtr<t>&) [with T = IMFMediaBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1251:39: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:9: error: using invalid field '{anonymous}::ComPtr<t>::p' p = lp.p; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:16: error: 'const class {anonymous}::ComPtr<imfmediabuffer>' has no member named 'p' p = lp.p; ~~~^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() const [with T = IMFSample]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1254:14: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() [with T = IMFMediaBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1254:14: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'HRESULT {anonymous}::ComPtr<t>::As({anonymous}::ComPtr&) const [with U = IMF2DBuffer; T = IMFMediaBuffer; HRESULT = long int]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1276:17: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:176:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p->QueryInterface(__uuidof(U), reinterpret_cast<void**>((T)&lp)); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::operator->() const [with T = IMF2DBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1279:21: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() const [with T = IMFMediaBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1289:18: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::operator&() [with T = IMFSinkWriter]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2097:93: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p == NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator&(); ^ In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0, from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45, from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41: E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() const [with T = IMFSinkWriter]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2101:17: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p' CV_Assert(p != NULL); ^ E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert' #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) ^~~~ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p.operator->(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() [with T = IMFSinkWriter]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2122:28: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p' if (p) ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p' p.Release(); ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() const [with T = IMFMediaBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2148:9: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p' return p; ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() [with T = IMF2DBuffer]': E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:175:9: required from 'HRESULT {anonymous}::ComPtr<t>::As({anonymous}::ComPtr&) const [with U = IMF2DBuffer; T = IMFMediaBuffer; HRESULT = long int]' E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1276:17: required from here E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p' if (p) ^ E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p' p.Release(); ^ mingw32-make[2]: * [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:263: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_msmf.cpp.obj] Error 1 mingw32-make[1]: [CMakeFiles\Makefile2:2506: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 mingw32-make: ** [Makefile:162: all] Error 2

Thanks! Naveen.

click to hide/show revision 4
None

updated 2018-12-16 08:26:41 -0600

berak gravatar image

Install opencv 4.0 with eclipse on Windows- Error during Build

Hello All,

I have installed opencv4.0 on windows. I am compiling OPENCV using CMAKE, I have configured and generated successfully in CMAKE. When i am building using mingw32-make its throwing errors. Can anyone help me in building successfully.

Below is the error which i am facing when i build with an command mingw32-make:

In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/winbase.h:2377:0,
                 from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/windows.h:70,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:76,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In member function 'virtual bool CvVideoWriter_MSMF::open(const String&, int, double, cv::Size, bool)':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2090:37: error: 'MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS' was not declared in this scope
         SUCCEEDED(spAttr->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, true)) &&
                                     ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2091:37: error: 'MF_SINK_WRITER_DISABLE_THROTTLING' was not declared in this scope
         SUCCEEDED(spAttr->SetUINT32(MF_SINK_WRITER_DISABLE_THROTTLING, true))
                                     ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2091:37: note: suggested alternative: 'MF_SINK_WRITER_STATISTICS'
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) '{anonymous}::ComPtr<T>::ComPtr(T*) [with T = IMFSourceReader]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:758:17:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         p = lp;
         ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) '{anonymous}::ComPtr<T>::ComPtr(T*) [with T = IMFSample]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:758:17:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() {anonymous}::ComPtr<T>::Release() [with T = IMFSample]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:774:29:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         if (p)
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
             p.Release();
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() {anonymous}::ComPtr<T>::Release() [with T = IMFSourceReader]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:775:33:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         if (p)
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
             p.Release();
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() {anonymous}::ComPtr<T>::Release() [with T = IMFSourceReaderCallback]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:779:26:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         if (p)
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
             p.Release();
             ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() {anonymous}::ComPtr<T>::operator->() const [with T = IMFSourceReader]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:863:29:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFMediaType]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:863:82:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::Get() 'T* {anonymous}::ComPtr<T>::Get() const [with T = IMFMediaType]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:872:36:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p;
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() {anonymous}::ComPtr<T>::operator->() const [with T = IMFMediaType]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:919:13:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) '{anonymous}::ComPtr<T>::ComPtr(T*) [with T = IMFAttributes]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:954:37:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         p = lp;
         ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(const {anonymous}::ComPtr<t>&) '{anonymous}::ComPtr<T>::ComPtr(const {anonymous}::ComPtr<T>&) [with T = IMFAttributes]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:954:37:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         p = lp.p;
         ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:16: error: 'const class {anonymous}::ComPtr<imfattributes>' {anonymous}::ComPtr<IMFAttributes>' has no member named 'p'
         p = lp.p;
             ~~~^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFAttributes]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:955:9:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() {anonymous}::ComPtr<T>::operator->() const [with T = IMFAttributes]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:956:9:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() {anonymous}::ComPtr<T>::Get() const [with T = IMFAttributes]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:963:13:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p;
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFMediaSource]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:974:29:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::operator '{anonymous}::ComPtr<T>::operator bool() [with T = IMFMediaSource]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:974:115:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:157:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator!=(NULL);
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) '{anonymous}::ComPtr<T>::ComPtr(T*) [with T = IMFSourceReaderCallback]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:985:96:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         p = lp;
         ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() {anonymous}::ComPtr<T>::Get() const [with T = IMFSourceReaderCallback]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:986:137:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p;
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() {anonymous}::ComPtr<T>::Get() const [with T = IMFMediaSource]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:993:33:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFSourceReader]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:993:33:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::operator '{anonymous}::ComPtr<T>::operator bool() [with T = IMFSample]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1084:9:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:157:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator!=(NULL);
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::Get() 'T* {anonymous}::ComPtr<T>::Get() const [with T = IMFSample]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1104:48:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p;
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::operator '{anonymous}::ComPtr<T>::operator bool() [with T = IMFSourceReaderCallback]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1141:21:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:157:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator!=(NULL);
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() {anonymous}::ComPtr<T>::Get() const [with T = IMFSourceReader]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1148:52:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p;
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFSample]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1178:18:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(T) '{anonymous}::ComPtr<T>::ComPtr(T*) [with T = IMFMediaBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1251:39:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:135:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         p = lp;
         ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of '{anonymous}::ComPtr<t>::ComPtr(const {anonymous}::ComPtr<t>&) '{anonymous}::ComPtr<T>::ComPtr(const {anonymous}::ComPtr<T>&) [with T = IMFMediaBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1251:39:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:9: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         p = lp.p;
         ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:139:16: error: 'const class {anonymous}::ComPtr<imfmediabuffer>' {anonymous}::ComPtr<IMFMediaBuffer>' has no member named 'p'
         p = lp.p;
             ~~~^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() {anonymous}::ComPtr<T>::operator->() const [with T = IMFSample]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1254:14:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFMediaBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1254:14:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'HRESULT {anonymous}::ComPtr<t>::As({anonymous}::ComPtr&) {anonymous}::ComPtr<T>::As({anonymous}::ComPtr<U>&) const [with U = IMF2DBuffer; T = IMFMediaBuffer; HRESULT = long int]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1276:17:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:176:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p->QueryInterface(__uuidof(U), reinterpret_cast<void**>((T)&lp));
reinterpret_cast<void**>((T**)&lp));
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::operator->() 'T* {anonymous}::ComPtr<T>::operator->() const [with T = IMF2DBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1279:21:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() {anonymous}::ComPtr<T>::operator->() const [with T = IMFMediaBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1289:18:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T {anonymous}::ComPtr<t>::operator&() 'T** {anonymous}::ComPtr<T>::operator&() [with T = IMFSinkWriter]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2097:93:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:147:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p == NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:148:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator&();
                ^
In file included from E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core.hpp:54:0,
                 from E:/opencv_ext_4.0/opencv/sources/modules/videoio/include/opencv2/videoio.hpp:46,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\precomp.hpp:45,
                 from E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:41:
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::operator->() {anonymous}::ComPtr<T>::operator->() const [with T = IMFSinkWriter]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2101:17:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:152:19: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         CV_Assert(p != NULL);
                   ^
E:/opencv_ext_4.0/opencv/sources/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro 'CV_Assert'
 #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
                                      ^~~~
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:153:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p.operator->();
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() {anonymous}::ComPtr<T>::Release() [with T = IMFSinkWriter]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2122:28:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         if (p)
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
             p.Release();
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'T* {anonymous}::ComPtr<t>::Get() {anonymous}::ComPtr<T>::Get() const [with T = IMFMediaBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:2148:9:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:162:16: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         return p;
                ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp: In instantiation of 'void {anonymous}::ComPtr<t>::Release() {anonymous}::ComPtr<T>::Release() [with T = IMF2DBuffer]':
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:175:9:   required from 'HRESULT {anonymous}::ComPtr<t>::As({anonymous}::ComPtr&) {anonymous}::ComPtr<T>::As({anonymous}::ComPtr<U>&) const [with U = IMF2DBuffer; T = IMFMediaBuffer; HRESULT = long int]'
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:1276:17:   required from here
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:167:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
         if (p)
             ^
E:\opencv_ext_4.0\opencv\sources\modules\videoio\src\cap_msmf.cpp:168:13: error: using invalid field '{anonymous}::ComPtr<t>::p'
'{anonymous}::ComPtr<T>::p'
             p.Release();
             ^
mingw32-make[2]: * *** [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:263: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_msmf.cpp.obj] Error 1
mingw32-make[1]:  *** [CMakeFiles\Makefile2:2506: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
mingw32-make: ** *** [Makefile:162: all] Error 2

2

Thanks! Naveen.