title: Building OpenCV 3.3 using Mingw-make gives error 2 at 47%
body: <p>When trying to build OpenCV 3.3.0 with the mingw compiler I keep getting an error. First I am using CMake to generate the build files (I choose Mingw makefiles and select the gcc en g++ compilers myself, although using the native compilers gives me the same error at the exact same time). When I then use mingw32-make to build OpenCV I get the following error around 48%:</p>
  
  <pre><code> 48%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.obj
  [ 48%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.avx2.cpp.obj
  [ 48%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.obj
  [ 48%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/stat.avx2.cpp.obj
  [ 48%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
  C:\Qt\Tools\mingw530_32\bin\windres.exe: unknown option -- W
  Usage: C:\Qt\Tools\mingw530_32\bin\windres.exe [option(s)] [input-file] [output-file]
   The options are:
    -i --input=&lt;file&gt;            Name input file
    -o --output=&lt;file&gt;           Name output file
    -J --input-format=&lt;format&gt;   Specify input format
    -O --output-format=&lt;format&gt;  Specify output format
    -F --target=&lt;target&gt;         Specify COFF target
       --preprocessor=&lt;program&gt;  Program to use to preprocess rc file
       --preprocessor-arg=&lt;arg&gt;  Additional preprocessor argument
    -I --include-dir=&lt;dir&gt;       Include directory when preprocessing rc file
    -D --define &lt;sym&gt;[=&lt;val&gt;]    Define SYM when preprocessing rc file
    -U --undefine &lt;sym&gt;          Undefine SYM when preprocessing rc file
    -v --verbose                 Verbose - tells you what it's doing
    -c --codepage=&lt;codepage&gt;     Specify default codepage
    -l --language=&lt;val&gt;          Set language when reading rc file
       --use-temp-file           Use a temporary file instead of popen to read
                                 the preprocessor output
       --no-use-temp-file        Use popen (default)
    -r                           Ignored for compatibility with rc
    @&lt;file&gt;                      Read options from &lt;file&gt;
    -h --help                    Print this help message
    -V --version                 Print version information
  FORMAT is one of rc, res, or coff, and is deduced from the file name
  extension if not specified.  A single file name is an input file.
  No input-file is stdin, default rc.  No output-file is stdout, default rc.
  C:\Qt\Tools\mingw530_32\bin\windres.exe: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
  modules\core\CMakeFiles\opencv_core.dir\build.make:1641: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj' failed
  mingw32-make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
  mingw32-make[2]: *** Waiting for unfinished jobs....
  CMakeFiles\Makefile2:1550: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
  mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
  Makefile:159: recipe for target 'all' failed
  mingw32-make: *** [all] Error 2
  </code></pre>
  
  <p>I am quite the novice when it comes to building a library and for some reason building them always seems to fail with me. Can anyone help me?</p>
  
  <p>-
  Martijn</p>