Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. build qtmqtt error
Forum Updated to NodeBB v4.3 + New Features

build qtmqtt error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 673 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JungJIhyun
    wrote on last edited by
    #1

    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~~~

    Pablo J. RoginaP 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J JungJIhyun

        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~~~

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

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

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved