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. How can i add module mqtt to QT?
Forum Updated to NodeBB v4.3 + New Features

How can i add module mqtt to QT?

Scheduled Pinned Locked Moved Solved General and Desktop
20 Posts 8 Posters 22.6k Views 5 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.
  • lorn.potterL Offline
    lorn.potterL Offline
    lorn.potter
    wrote on last edited by
    #11

    If you want the Qt Mqtt module that Qt Company is developing, that is here:
    http://code.qt.io/cgit/qt/qtmqtt.git/

    You need to clone: git://code.qt.io/qt/qtmqtt.git

    This does install a module called 'mqtt'

    Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
    Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

    A J 2 Replies Last reply
    0
    • lorn.potterL lorn.potter

      If you want the Qt Mqtt module that Qt Company is developing, that is here:
      http://code.qt.io/cgit/qt/qtmqtt.git/

      You need to clone: git://code.qt.io/qt/qtmqtt.git

      This does install a module called 'mqtt'

      A Offline
      A Offline
      alphaT
      wrote on last edited by
      #12

      @lorn.potter did you complie that source?
      I try to complie it, but it's report error...

      lorn.potterL 1 Reply Last reply
      0
      • A alphaT

        @lorn.potter did you complie that source?
        I try to complie it, but it's report error...

        lorn.potterL Offline
        lorn.potterL Offline
        lorn.potter
        wrote on last edited by lorn.potter
        #13

        @alphaT Yes, I do compile that. I just did on Mac, with Qt 5.10

        Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
        Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

        A 2 Replies Last reply
        0
        • lorn.potterL lorn.potter

          @alphaT Yes, I do compile that. I just did on Mac, with Qt 5.10

          A Offline
          A Offline
          alphaT
          wrote on last edited by
          #14

          @lorn.potter 5.10 is the latest version?
          I am using an older version, let me try QT 5.10.

          1 Reply Last reply
          0
          • lorn.potterL lorn.potter

            @alphaT Yes, I do compile that. I just did on Mac, with Qt 5.10

            A Offline
            A Offline
            alphaT
            wrote on last edited by
            #15

            @lorn.potter ops, still error too.
            0_1517717253481_e830e2f7-079e-4320-a44b-99cda1e81352-image.png

            jsulmJ 1 Reply Last reply
            0
            • A alphaT

              @lorn.potter ops, still error too.
              0_1517717253481_e830e2f7-079e-4320-a44b-99cda1e81352-image.png

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #16

              @alphaT It looks like you're building with Qt which is delivered by your Linux distribution (/usr/include/qt5).
              I guess you simply called qmake from command line, right?
              You should use complete path to qmake from Qt you installed:

              ~/Qt/5.10.0/gcc_64/bin/qmake
              

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

              1 Reply Last reply
              2
              • A Offline
                A Offline
                Andarang
                wrote on last edited by
                #17

                It's been a while but I experienced some of the issues described here and a few other forums. Just for whoever stumbles upon this issue, there is a small thing I overlooked when getting the source code from GitHub, namely:

                If you clone from the GitHub repo, don't forget to check out a release version!

                Current release is v5.15.0, but I was working from the dev branch, which caused a bunch of errors when compiling. After checking out release v5.15.0 everything suddenly worked.

                1 Reply Last reply
                0
                • lorn.potterL lorn.potter

                  If you want the Qt Mqtt module that Qt Company is developing, that is here:
                  http://code.qt.io/cgit/qt/qtmqtt.git/

                  You need to clone: git://code.qt.io/qt/qtmqtt.git

                  This does install a module called 'mqtt'

                  J Offline
                  J Offline
                  Jari Koivuluoma
                  wrote on last edited by
                  #18

                  @lorn-potter How exactly do I compile this? I am a total newbie on these things. I'm using MSVC 2015 65. I cloned the repo and I opened the terminal in that folder, ran vcvars64.bat and tried qmake but it just gave me the instructions. Should there be a *.pro file in the directory.

                  jsulmJ 1 Reply Last reply
                  0
                  • J Jari Koivuluoma

                    @lorn-potter How exactly do I compile this? I am a total newbie on these things. I'm using MSVC 2015 65. I cloned the repo and I opened the terminal in that folder, ran vcvars64.bat and tried qmake but it just gave me the instructions. Should there be a *.pro file in the directory.

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #19

                    @Jari-Koivuluoma Did you checkout Qt5 branch? If you check https://code.qt.io/cgit/qt/qtmqtt.git/tree/?h=5.12 you will see that there is a pro file. I guess you are on master branch, which is Qt6 and based on CMake.

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

                    1 Reply Last reply
                    2
                    • J Offline
                      J Offline
                      Jari Koivuluoma
                      wrote on last edited by
                      #20

                      Thanks, I had to study how to clone a specific branch. I just mistakenly assumed that the cloning link was automatically generated when I changed the branch. From there it went without a hitch.

                      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