Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Unknown module(s) in QT: mqtt

Unknown module(s) in QT: mqtt

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
13 Posts 5 Posters 5.3k Views
  • 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
    Sudhish Kapoor
    wrote on 18 Oct 2021, 04:00 last edited by
    #1

    I have installed Qtmqtt from the open source and i can see the framework folder inside :

    ls <path to qt>/Qt/5.15.1/clang_64/lib:  QtQmqtt.framework
    

    When i am trying to inculde this module in QtCreator or building for command line i get the error as:

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

    I am using Qt 5.15 on mac and not able to resolve this issue as i want to try the mqtt module to see if it works. Any pointers here will help.

    J 1 Reply Last reply 18 Oct 2021, 06:26
    0
    • S Sudhish Kapoor
      18 Oct 2021, 04:00

      I have installed Qtmqtt from the open source and i can see the framework folder inside :

      ls <path to qt>/Qt/5.15.1/clang_64/lib:  QtQmqtt.framework
      

      When i am trying to inculde this module in QtCreator or building for command line i get the error as:

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

      I am using Qt 5.15 on mac and not able to resolve this issue as i want to try the mqtt module to see if it works. Any pointers here will help.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 18 Oct 2021, 06:26 last edited by
      #2

      @Sudhish-Kapoor said in Unknown module(s) in QT: mqtt:

      I have installed Qtmqtt

      How exactly?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 30 Oct 2021, 05:04
      0
      • J jsulm
        18 Oct 2021, 06:26

        @Sudhish-Kapoor said in Unknown module(s) in QT: mqtt:

        I have installed Qtmqtt

        How exactly?

        S Offline
        S Offline
        Sudhish Kapoor
        wrote on 30 Oct 2021, 05:04 last edited by
        #3

        @jsulm

        I have used the following links emqx and also tried with code.qt.io and in both the cases i am not able to find the module Qmqtt.
        Also when i am running the commdand

        Qt/5.15.1/clang_64/bin/qmake -query QT_INSTALL_LIBS
        

        and check the installed lib directory i am able to see the

        QtQmqtt.framework 
        QtQmqtt.framework.dSYM
        

        folders but unable to load it with QtCreator and even if i am giving the absolute path of the qmtt directory, i am still not able to compile.

        I also tried the steps mentioned in : how-can-i-add-module-mqtt-to-qt
        but still getting the same error.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 Oct 2021, 20:10 last edited by
          #4

          Hi,

          Can you describe exactly how you built and installed the module ?

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

          S 1 Reply Last reply 1 Nov 2021, 07:09
          0
          • S SGaist
            30 Oct 2021, 20:10

            Hi,

            Can you describe exactly how you built and installed the module ?

            S Offline
            S Offline
            Sudhish Kapoor
            wrote on 1 Nov 2021, 07:09 last edited by
            #5

            @SGaist I had checked out the code from emqx and opened into the QtCreator and build it once it was build i used the command line to install.
            I might have not done it correctly can you help me with the proper steps to get the mqtt module running as i want to test it thats good for my usage.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 1 Nov 2021, 20:05 last edited by
              #6

              From the looks of it you mixed the instructions from the official QtMQTT module and that one.

              From their doc:

              QT += qmqtt
              

              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
              1
              • S Offline
                S Offline
                Sudhish Kapoor
                wrote on 25 Nov 2021, 04:26 last edited by
                #7

                @SGaist @jsulm i was able to compile Qt-Mqtt for 5.15 by following this link here where the Qt-Mqtt is cloned using this command

                "git clone -b 5.15.2 http://github.com/qt/qtmqtt.git"
                

                post which i was able to build and install mqtt module for my Qt 5.15. Thanks for your help.

                S 1 Reply Last reply 16 May 2022, 17:31
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 25 Nov 2021, 21:11 last edited by
                  #8

                  Great ! Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

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

                  J 1 Reply Last reply 3 Dec 2022, 09:25
                  0
                  • S Sudhish Kapoor
                    25 Nov 2021, 04:26

                    @SGaist @jsulm i was able to compile Qt-Mqtt for 5.15 by following this link here where the Qt-Mqtt is cloned using this command

                    "git clone -b 5.15.2 http://github.com/qt/qtmqtt.git"
                    

                    post which i was able to build and install mqtt module for my Qt 5.15. Thanks for your help.

                    S Offline
                    S Offline
                    sittikorn
                    wrote on 16 May 2022, 17:31 last edited by
                    #9

                    @Sudhish-Kapoor please show me step by step on window desktop again. Thanks

                    1 Reply Last reply
                    0
                    • S SGaist
                      25 Nov 2021, 21:11

                      Great ! Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

                      J Offline
                      J Offline
                      Jagannath
                      wrote on 3 Dec 2022, 09:25 last edited by
                      #10

                      @SGaist I installed QtMqtt in windows 10 and can see QtMqtt.dll inside bin folder. The problem is , QT creator shows unknown module found. I checked in the QT_INSTALL_LIBS Folder too. There is also QTMqtt found. But still not working. Please help

                      S 1 Reply Last reply 3 Dec 2022, 21:00
                      0
                      • J Jagannath
                        3 Dec 2022, 09:25

                        @SGaist I installed QtMqtt in windows 10 and can see QtMqtt.dll inside bin folder. The problem is , QT creator shows unknown module found. I checked in the QT_INSTALL_LIBS Folder too. There is also QTMqtt found. But still not working. Please help

                        S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 3 Dec 2022, 21:00 last edited by SGaist 12 Apr 2022, 19:48
                        #11

                        @Jagannath where did you get QtMqtt from ?
                        How exactly did you install it ?

                        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 Offline
                          J Offline
                          Jagannath
                          wrote on 4 Dec 2022, 04:50 last edited by
                          #12

                          @SGaist Thank you for your reply. I have open-source QT. I am trying to use MQTT in the android application that I am creating. I cloned QtMqtt inside "C:\Qt\5.15.2\Src" folder from

                          git clone -b 5.15.2 https://code.qt.io/cgit/qt/qtmqtt.git/
                          

                          After qmake, mingw32-make, mingw32-make install, I checked

                          qmake -query QT_INSTALL_LIB
                          

                          at location "C:/Qt/5.15.2/mingw81_64/lib".
                          I found files named Qt5Mqtt.a, Qt5Mqtt.prl, Qt5Mqtt.dll.debug
                          I can find QtMqtt folder inside "C:\Qt\5.15.2\mingw81_64\include" folder.
                          But I couldnt find MQTT on "C:\Qt\5.15.2\android\include" folder.

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            Jagannath
                            wrote on 4 Dec 2022, 05:33 last edited by
                            #13

                            I found out while replying to your response that I tried to install with qmake at location "C:/Qt/5.15.2/mingw81_64/bin". Instead I changed path variable of qmake to location "C:/Qt/5.15.2/android/lib". Now it compiled. Thank you for your help @SGaist . :D

                            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