使用Mingw64构建QT 4.8.5

时间:2019-03-12 16:58:08

标签: c++ qt mingw mingw-w64

我试图在Windows 7中使用mingw64(8.1.0)构建Qt4.8.5。它成功地构建了几个库,但是在构建xmlpatterns时出现了错误。我不确定错误在说什么,有人可以告诉我如何解决此错误吗?

我使用

配置了qt
configure -prefix "C:\Qt\qt_4.8.5_mingw64" -nomake examples -nomake demos -nomake tools 

然后使用运行,

mingw32-make install

运行30分钟后,出现以下错误

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
<QXmlNodeModelIndex>::Data' {aka 'struct QVectorTypedData<QXmlNodeModelIndex>'};
 use copy-assignment or copy-initialization instead [-Wclass-memaccess]
             ::memcpy(x.p, p, sizeOfTypedData() + (qMin(aalloc, d->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<QXmlNodeModelIndex>
::Data' {aka 'struct QVectorTypedData<QXmlNodeModelIndex>'} 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>

0 个答案:

没有答案