Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt: MQTT Module unknown
Forum Updated to NodeBB v4.3 + New Features

Qt: MQTT Module unknown

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 6 Posters 4.2k 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.
  • S Offline
    S Offline
    svolk
    wrote on last edited by
    #1

    Hi everyone,

    i'm new to QT and i need to implement MQTT in QT for my university project.

    Im working with the Qt Creator and the problem is, if i try to add the mqtt module to my .pro file with "QT += mqtt" (as described in http://doc.qt.io/QtMQTT/index.html) the outcome is:

    • "Project ERROR: Unknown module(s) in QT: mqtt"

    Installed components:

    • Qt Creator 4.61,
    • Qt 5.10.0
    • Qt 5.10.1
    • QT for Automations 1.0

    Platform:

    • Windows 10

    Is there anything in addition i have to do in order that the mqtt module is found?
    Hope somone can help me out, thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      svolk
      wrote on last edited by
      #2

      I solved the problem myself. In case someone has the same problem in the future the solution for me was to intall the Technology Preview "Qt for Automations 5.11.0 rc". I don't know why it didn't work before, because MQTT is also part of "Qt for Automations 1.0". Another solution would probably be to bouild it from the sourve provided by "Qt for Automations 1.0", but I didn't test that since the 5.11.0 rc version solved it for me.

      1 Reply Last reply
      3
      • P Offline
        P Offline
        Phong Dep Trai
        wrote on last edited by
        #3

        Hi svolk!

        Can you help me?
        I need mqtt module but I got this issue!
        So can you please help me how to install QT for Automations 1.0.?

        Thanks

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mkalinow
          wrote on last edited by
          #4

          There is a bug that Qt for Automation 1.0 only matches to Qt 5.10.0, and not Qt 5.10.1. This implies, that if you install 5.10.1 you will not get updated Qt Mqtt libraries.

          We fixed this with Qt 5.11. There for all patch level releases you will also get updated Qt Mqtt builds.

          1 Reply Last reply
          3
          • Egn1n3E Offline
            Egn1n3E Offline
            Egn1n3
            wrote on last edited by Egn1n3
            #5

            @mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).

            aha_1980A JKSHJ 2 Replies Last reply
            0
            • Egn1n3E Egn1n3

              @mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by aha_1980
              #6

              @Egn1n3 said in Qt: MQTT Module unknown:

              @mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).

              That is correct, you will only see it with commercial license.

              Qt has to stay free or it will die.

              1 Reply Last reply
              1
              • Egn1n3E Egn1n3

                @mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by JKSH
                #7

                @Egn1n3 said in Qt: MQTT Module unknown:

                @mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it....

                As @aha_1980 said, you will only see "Qt for Automation" in the Qt Maintenance Tool if you have a commercial license.

                (I am using the GPL version of Qt).

                Open source users can download the source code and build the modules. "Qt for Automation" consists of the following 3 modules:

                • Qt MQTT, http://code.qt.io/cgit/qt/qtmqtt.git/ (GPLv3 only)
                • Qt KNX, http://code.qt.io/cgit/qt/qtknx.git/ (GPLv3 only)
                • Qt OPC UA, http://code.qt.io/cgit/qt/qtopcua.git/ (GPLv3; or LGPLv3 if you use the open62541 backend)

                @mkalinow, could you please include these bits of info in the documentation and blog posts? Leena made a start at https://codereview.qt-project.org/#/c/231875/2/src/qtforautomation.qdoc ; it would be very helpful if this info is accessible elsewhere too (e.g. in the blog post at http://blog.qt.io/blog/2018/06/22/integrating-cloud-solutions-qt/ )

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                2

                • Login

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