Opencv windows 7 cmake mingw-32 make error
Hello, I've got an error. The error is occurred in cmd directory where openCV is when I use the command mingw32-make. I followed this user guide: http://www.ti.com/lit/ug/dlpu042/dlpu... any help is appreciated.
In file included from C:\Users\xxx\Downloads\opencv\sources\modules\videoio
\src\cap_dshow.cpp:113:0:
C:/Qt/Qt5.3.2/Tools/mingw482_32/i686-w64-mingw32/include/Aviriff.h:2:8: error: e
xpected constructor, destructor, or type conversion before 'file'
* This file is part of the mingw-w64 runtime package.
^
C:/Qt/Qt5.3.2/Tools/mingw482_32/i686-w64-mingw32/include/Aviriff.h:3:25: error:
'refer' does not name a type
* No warranty is given; refer to the file DISCLAIMER within this package.
^
In file included from C:/Qt/Qt5.3.2/Tools/mingw482_32/i686-w64-mingw32/include/A
viriff.h:19:0,
from C:\Users\xxx\Downloads\opencv\sources\modules\videoio
\src\cap_dshow.cpp:113:
C:/Qt/Qt5.3.2/Tools/mingw482_32/i686-w64-mingw32/include/pshpack2.h:7:21: error:
expected declaration before end of line
#pragma pack(push,2)
^
modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:174: recipe for target
'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj' failed
mingw32-make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dsho
w.cpp.obj] Error 1
CMakeFiles\Makefile2:5075: recipe for target 'modules/videoio/CMakeFiles/opencv_
videoio.dir/all' failed
mingw32-make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:161: recipe for target 'all' failed mingw32-make: * [all] Error 2
take a look at the aviriff.h, it might be broken (missing a
/
in the comment)also, is that a 32bit mingw ? it's probably a good idea, to update that.
Hi, I doubt if the error is due the outdated mingw. Since it has been compiled properly before. Any other tips? Thank you.