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

build qtmqtt error



  • when I build qtmqtt below errors are come

    ction.o qmqttconnection.cpp
    qmqttconnection.cpp: In member function 'bool QMqttConnection::ensureTransport(bool)':
    qmqttconnection.cpp:169:39: error: 'errorOccurred' is not a member of 'QAbstractSocket'
    connect(socket, &QAbstractSocket::errorOccurred, this, &QMqttConnection::transportError);
    ^~~~~~~~~~~~~
    qmqttconnection.cpp: In member function 'void QMqttConnection::finalize_connack()':
    qmqttconnection.cpp:1452:26: error: 'class QList<QMqttTopicName>' has no member named 'resize'; did you mean 'size'?
    m_receiveAliases.resize(m_clientPrivate->m_serverConnectionProperties.maximumTopicAlias());
    ^~~~~~
    size
    qmqttconnection.cpp:1453:26: error: 'class QList<QMqttTopicName>' has no member named 'resize'; did you mean 'size'?
    m_publishAliases.resize(m_clientPrivate->m_connectionProperties.maximumTopicAlias());
    ^~~~~~
    size
    mingw32-make[2]: *** [Makefile.Release:991: .obj/release/qmqttconnection.o] Error 1
    mingw32-make[2]: Leaving directory 'C:/Qt/qtmqtt/src/mqtt'
    mingw32-make[1]: *** [Makefile:45: release] Error 2
    mingw32-make[1]: Leaving directory 'C:/Qt/qtmqtt/src/mqtt'
    mingw32-make: *** [Makefile:50: sub-mqtt-make_first] Error 2

    Have you any idea to solve this?
    Thanks~~~


  • Lifetime Qt Champion

    Hi,

    What version of Qt are you using to build the module ?
    Did you checkout the corresponding branch from your clone ?



  • @JungJIhyun please don't double post. You have already some questions pending there...


Log in to reply