Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

build qt5.15 failed



  • Hi,

    compile environment
    Visual Studio Community 2019 Version 16.6.5
    qt source git:5.15
    windows 10 1803 Chinese (Simplified)


    "C:\Windows\System32\cmd.exe" /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
    SET _ROOT=D:\program\qt5
    SET QT_PLUGIN_PATH=%_ROOT%\qtbase\plugins
    SET QT_QPA_PLATFORM_PLUGIN_PATH=%_ROOT%\qtbase\plugins\platforms
    set path=C:\Python27;C:\Strawberry\perl\bin;D:\program\llvm-project\build\Release\bin;%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%_ROOT%\qtrepotools\bin;D:\program\icu\icu4c\bin64;"C:\Program Files\CMake\bin";%path%
    set LLVM_INSTALL_DIR=D:\program\llvm-project\build\Release
    configure.bat -debug-and-release -developer-build -confirm-license -nomake tests -opensource -platform win32-msvc -icu -I D:\program\icu\icu4c\include -L D:\program\icu\icu4c\lib64 -opengl desktop -no-angle

    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
    WARNING: Building without node.js will disable some features of QtWebEngine DevTools.


    nmake:

    cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -utf-8 -EHsc -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\tst_qmltests.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DTESTS_SOURCE_DIR="D:/program/qt5/qtwebengine/tests/auto/quick/" -DQUICK_TEST_SOURCE_DIR="D:/program/qt5/qtwebengine/tests/auto/quick/qmltests\data" -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_QMLTEST_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_TESTLIB_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=""D:/program/qt5/qtwebengine/tests/auto/quick/qmltests"" -I. -I....\quick -I..\shared -I....\shared -ID:\program\qt5\qtbase\include -ID:\program\qt5\qtbase\include\QtWebEngine -ID:\program\qt5\qtbase\include\QtWebEngineCore -ID:\program\qt5\qtbase\include\QtQuick -ID:\program\qt5\qtbase\include\QtQuickTest -ID:\program\qt5\qtbase\include\QtWidgets -ID:\program\qt5\qtbase\include\QtGui -ID:\program\qt5\qtbase\include\QtTest -ID:\program\qt5\qtbase\include\QtQmlModels -ID:\program\qt5\qtbase\include\QtWebChannel -ID:\program\qt5\qtbase\include\QtQml -ID:\program\qt5\qtbase\include\QtNetwork -ID:\program\qt5\qtbase\include\QtPositioning -ID:\program\qt5\qtbase\include\QtCore -I.moc\debug -ID:\program\icu\icu4c\include -ID:\program\qt5\qtbase\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\CHENDI~1.NIN\AppData\Local\Temp\nmD02E.tmp
    tst_qmltests.cpp
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(67): error C3646: 'readKey': unknown override specifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(67): error C2059: syntax error: '('
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(67): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(73): error C3646: 'sslconf': unknown override specifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(44): error C2065: 'sslconf': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(44): error C2653: 'QSslCertificate': is not a class or namespace name
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(44): error C3861: 'fromPath': identifier not found
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(45): error C2065: 'sslconf': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(45): error C3861: 'readKey': identifier not found
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(49): error C2061: syntax error: identifier 'QSslSocket'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(50): error C3536: 'socket': cannot be used before it is initialized
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(50): error C2065: 'sslconf': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(54): error C2541: 'delete': cannot delete objects that are not pointers
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(58): error C2653: 'QSslSocket': is not a class or namespace name
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(58): error C2065: 'SocketError': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(58): error C3544: 'Args': parameter pack expects a type template argument
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(58): error C2955: 'QOverload': use of class template requires template argument list
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/global/qglobal.h(1234): note: see declaration of 'QOverload'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(58): error C2065: 'error': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(59): error C2653: 'QSslSocket': is not a class or namespace name
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(59): error C2061: syntax error: identifier 'SocketError'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(59): error C2065: 'e': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(58): error C2661: 'QObject::connect': no overloaded function takes 2 arguments
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2065: 'QSslError': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2923: 'QList': 'QSslError' is not a valid template type argument for parameter 'T'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2955: 'QList': use of class template requires template argument list
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/kernel/qmetatype.h(2254): note: see declaration of 'QList'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2955: 'QOverload': use of class template requires template argument list
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/global/qglobal.h(1234): note: see declaration of 'QOverload'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2653: 'QSslSocket': is not a class or namespace name
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2065: 'sslErrors': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(61): error C2065: 'QSslError': undeclared identifier
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(61): error C2923: 'QList': 'QSslError' is not a valid template type argument for parameter 'T'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(61): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'QDebug' (or there is no acceptable conversion)
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(174): note: could be 'QDebug &QDebug::operator <<(QTextStreamManipulator)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(169): note: or 'QDebug &QDebug::operator <<(QTextStreamFunction)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(168): note: or 'QDebug &QDebug::operator <<(std::nullptr_t)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(167): note: or 'QDebug &QDebug::operator <<(const void *)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(166): note: or 'QDebug &QDebug::operator <<(const QByteArray &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(165): note: or 'QDebug &QDebug::operator <<(QLatin1String)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(164): note: or 'QDebug &QDebug::operator <<(QStringView)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(162): note: or 'QDebug &QDebug::operator <<(const QStringRef &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(161): note: or 'QDebug &QDebug::operator <<(const QString &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(159): note: or 'QDebug &QDebug::operator <<(const char *)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(158): note: or 'QDebug &QDebug::operator <<(double)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(157): note: or 'QDebug &QDebug::operator <<(float)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(156): note: or 'QDebug &QDebug::operator <<(quint64)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(155): note: or 'QDebug &QDebug::operator <<(qint64)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(154): note: or 'QDebug &QDebug::operator <<(unsigned long)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(153): note: or 'QDebug &QDebug::operator <<(long)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(152): note: or 'QDebug &QDebug::operator <<(unsigned int)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(151): note: or 'QDebug &QDebug::operator <<(int)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(149): note: or 'QDebug &QDebug::operator <<(char32_t)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(148): note: or 'QDebug &QDebug::operator <<(char16_t)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(146): note: or 'QDebug &QDebug::operator <<(unsigned short)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(145): note: or 'QDebug &QDebug::operator <<(short)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(144): note: or 'QDebug &QDebug::operator <<(char)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(143): note: or 'QDebug &QDebug::operator <<(bool)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qdebug.h(142): note: or 'QDebug &QDebug::operator <<(QChar)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qurl.h(415): note: or 'QDebug operator <<(QDebug,const QUrl &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qurl.h(410): note: or 'QDataStream &operator <<(QDataStream &,const QUrl &)'
    D:\program\qt5\qtbase\include\QtNetwork../../src/network/kernel/qhostaddress.h(175): note: or 'QDataStream &operator <<(QDataStream &,const QHostAddress &)'
    D:\program\qt5\qtbase\include\QtNetwork../../src/network/kernel/qhostaddress.h(171): note: or 'QDebug operator <<(QDebug,const QHostAddress &)'
    D:\program\qt5\qtbase\include\QtNetwork../../src/network/socket/qabstractsocket.h(249): note: or 'QDebug operator <<(QDebug,QAbstractSocket::SocketState)'
    D:\program\qt5\qtbase\include\QtNetwork../../src/network/socket/qabstractsocket.h(248): note: or 'QDebug operator <<(QDebug,QAbstractSocket::SocketError)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/serialization/qtextstream.h(233): note: or 'QTextStream &operator <<(QTextStream &,QTextStreamManipulator)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/serialization/qtextstream.h(230): note: or 'QTextStream &operator <<(QTextStream &,QTextStreamFunction)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qlocale.h(1173): note: or 'QDebug operator <<(QDebug,const QLocale &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qlocale.h(1168): note: or 'QDataStream &operator <<(QDataStream &,const QLocale &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/kernel/qvariant.h(903): note: or 'QDebug operator <<(QDebug,const QVariant::Type)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/kernel/qvariant.h(586): note: or 'QDataStream &operator <<(QDataStream &,const QVariant::Type)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/kernel/qvariant.h(584): note: or 'QDataStream &operator <<(QDataStream &,const QVariant &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/kernel/qvariant.h(480): note: or 'QDebug operator <<(QDebug,const QVariant &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/io/qiodevice.h(189): note: or 'QDebug operator <<(QDebug,QIODevice::OpenMode)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/kernel/qobject.h(554): note: or 'QDebug operator <<(QDebug,const QObject *)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qregexp.h(127): note: or 'QDebug operator <<(QDebug,const QRegExp &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qregexp.h(122): note: or 'QDataStream &operator <<(QDataStream &,const QRegExp &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/tools/qpoint.h(418): note: or 'QDebug operator <<(QDebug,const QPointF &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/tools/qpoint.h(281): note: or 'QDataStream &operator <<(QDataStream &,const QPointF &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/tools/qpoint.h(214): note: or 'QDebug operator <<(QDebug,const QPoint &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/tools/qpoint.h(114): note: or 'QDataStream &operator <<(QDataStream &,const QPoint &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qstring.h(1587): note: or 'QDataStream &operator <<(QDataStream &,const QString &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qbytearray.h(765): note: or 'QDataStream &operator <<(QDataStream &,const QByteArray &)'
    D:\program\qt5\qtbase\include\QtCore../../src/corelib/text/qchar.h(662): note: or 'QDataStream &operator <<(QDataStream &,QChar)'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(61): note: while trying to match the argument list '(QDebug, const QList)'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(60): error C2661: 'QObject::connect': no overloaded function takes 2 arguments
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(63): error C2664: 'void QTcpServer::addPendingConnection(QTcpSocket *)': cannot convert argument 1 from 'int' to 'QTcpSocket *'
    D:\program\qt5\qtwebengine\tests\auto\shared\httpsserver.h(63): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    D:\program\qt5\qtbase\include\QtNetwork../../src/network/socket/qtcpserver.h(95): note: see declaration of 'QTcpServer::addPendingConnection'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    Thanks for your help.


  • Lifetime Qt Champion

    Hi,

    If I may, you should disable building the tests and examples, that will save you time and space.



  • thanks, I'll disable tests abd examples and build again.


Log in to reply