title: Building QT 4.8.5 with Mingw64
body: <p>I am trying to build Qt4.8.5 with mingw64 (8.1.0) in windows 7. It successfully builds several libraries but gives an error when building xmlpatterns. I am not sure what the error is saying, Can someone tell me how to fix this error?</p>
  
  <p>I configured qt using </p>
  
  <pre><code>configure -prefix "C:\Qt\qt_4.8.5_mingw64" -nomake examples -nomake demos -nomake tools 
  </code></pre>
  
  <p>Then ran make using,</p>
  
  <pre><code>mingw32-make install
  </code></pre>
  
  <p>After running for 30 mins it gave me the following error,</p>
  
  <pre><code>C:/Qt/4.8.5/src/corelib/tools/qvector.h:503:25: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'QVector
  &lt;QXmlNodeModelIndex&gt;::Data' {aka 'struct QVectorTypedData&lt;QXmlNodeModelIndex&gt;'};
   use copy-assignment or copy-initialization instead [-Wclass-memaccess]
               ::memcpy(x.p, p, sizeOfTypedData() + (qMin(aalloc, d-&gt;alloc) -1) * sizeof(T));
   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from ../../include/QtCore/qvector.h:1,
               from C:/Qt/4.8.5/src/corelib/io/qdebug.h:52,
               from ../../include/QtCore/qdebug.h:1,
               from ../../include/QtCore/QtDebug:1,
               from data/qanyuri_p.h:56,
               from api/qvariableloader.cpp:45:
  
  C:/Qt/4.8.5/src/corelib/tools/qvector.h:94:8: note: 'QVector&lt;QXmlNodeModelIndex&gt;
  ::Data' {aka 'struct QVectorTypedData&lt;QXmlNodeModelIndex&gt;'} declared here
    struct QVectorTypedData : private QVectorData
      ^~~~~~~~~~~~~~~~
  mingw32-make[2]: *** [Makefile.Debug:2640: tmp/obj/debug_shared/qvariableloader.o] Error 1
  mingw32-make[2]: Leaving directory 'C:/Qt/4.8.5/src/xmlpatterns'
  mingw32-make[1]: *** [Makefile:46: debug-install] Error 2
  mingw32-make[1]: Leaving directory 'C:/Qt/4.8.5/src/xmlpatterns'
  mingw32-make: *** [Makefile:662: sub-xmlpatterns-install_subtargets-ordered] Error 2
  
  C:\Qt\4.8.5&gt;
  </code></pre>