Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85532

qtmqtt compilation error QList resize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.0
    • MQTT
    • None
    • Windows

    Description

      I use free version of Qt.
      When installing the qtmqtt library I get a compilation error.
      {{}}

      This is my process ->

      C:\Users\cdupa>qmake -query QT_INSTALL_LIBS
      D:/programmes/Qt/5.15.0/mingw81_32/lib

      cd D:/programmes/Qt/5.15.0/mingw81_32/lib}}{{{{git clone git://code.qt.io/qt/qtmqtt.git}}

      {{}}{{cd qtmqtt{{
      qmake
      }}{{make }}}}

      {}partial result is

      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}}
      make[3]: *** [Makefile.Release:991: .obj/release/qmqttconnection.o] Error 1
      make[3]: Leaving directory 'D:/programmes/Qt/5.15.0/mingw81_32/lib/qtmqtt/src/mqtt'
      {{make[2]: *** [Makefile:45: release] Error 2{{
      }}}}

      {{}}

      {{as you can see there is a compilation error, the resize member does not exist in the QList class. I think the qtmqtt library should be compiled.
      Anyone have an idea?}}

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mkalinow Maurice Kalinowski
            cdupaty Christian Dupaty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes