Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. how to add a mqtt library on qt
Forum Updated to NodeBB v4.3 + New Features

how to add a mqtt library on qt

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 3 Posters 912 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.
  • O Offline
    O Offline
    OSEMO NDJUDI
    wrote on 15 Sept 2021, 15:01 last edited by
    #1

    After I do all command

    git clone https://github.com/qt/qtmqtt
    cd qmqtt
    mkdir build
    cd build
    qmake -r ..
    make
    sudo make install
    when i created a project i got an error, unknown module(s) in QT : qtmqtt
    it is possible to help me please

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 15 Sept 2021, 15:17 last edited by
      #2

      Hi
      maybe it was not copied to right place
      try

      /full path to the qt you use/qmake -query QT_INSTALL_LIBS
      (like ~/Qt/5.10.0/gcc_64/bin/qmake )

      and see where it points.
      then look there if you have
      Qt5Mqtt.so in the right folder

      O 1 Reply Last reply 16 Sept 2021, 08:58
      0
      • O Offline
        O Offline
        OSEMO NDJUDI
        wrote on 15 Sept 2021, 16:36 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Sept 2021, 18:08 last edited by
          #4

          Hi and welcome to devnet,

          Any chances that you wrote QT += qtmqtt rather than QT += mqtt ?

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

          O 1 Reply Last reply 16 Sept 2021, 10:08
          1
          • M mrjj
            15 Sept 2021, 15:17

            Hi
            maybe it was not copied to right place
            try

            /full path to the qt you use/qmake -query QT_INSTALL_LIBS
            (like ~/Qt/5.10.0/gcc_64/bin/qmake )

            and see where it points.
            then look there if you have
            Qt5Mqtt.so in the right folder

            O Offline
            O Offline
            OSEMO NDJUDI
            wrote on 16 Sept 2021, 08:58 last edited by OSEMO NDJUDI
            #5

            @mrjj Hi
            my QT path is ~/QT/5.15.2/gcc_64/lib.
            it is normal?
            thank you for the answer

            M 1 Reply Last reply 16 Sept 2021, 09:03
            0
            • O OSEMO NDJUDI
              16 Sept 2021, 08:58

              @mrjj Hi
              my QT path is ~/QT/5.15.2/gcc_64/lib.
              it is normal?
              thank you for the answer

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 16 Sept 2021, 09:03 last edited by
              #6

              @OSEMO-NDJUDI

              Well you can install it as you wish so any path can be normal.

              Make sure you are not using a distro that has Qt already included as then there can be multiple qmake etc.

              So in that libs, do you have the Qt5Mqtt file ?

              else try to see where it put it with

              sudo updatedb
              locate Qt5Mqtt

              O 1 Reply Last reply 16 Sept 2021, 09:34
              0
              • M mrjj
                16 Sept 2021, 09:03

                @OSEMO-NDJUDI

                Well you can install it as you wish so any path can be normal.

                Make sure you are not using a distro that has Qt already included as then there can be multiple qmake etc.

                So in that libs, do you have the Qt5Mqtt file ?

                else try to see where it put it with

                sudo updatedb
                locate Qt5Mqtt

                O Offline
                O Offline
                OSEMO NDJUDI
                wrote on 16 Sept 2021, 09:34 last edited by
                #7

                @mrjj in lib I have libqt5qmqtt file.
                i have a directory Qt5Mqtt in ~/lib/cmake.
                how do i know if my distribution has Qt included?

                1 Reply Last reply
                0
                • S SGaist
                  15 Sept 2021, 18:08

                  Hi and welcome to devnet,

                  Any chances that you wrote QT += qtmqtt rather than QT += mqtt ?

                  O Offline
                  O Offline
                  OSEMO NDJUDI
                  wrote on 16 Sept 2021, 10:08 last edited by
                  #8

                  @SGaist I wrote in QT += mqtt in my .pro file

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 16 Sept 2021, 19:15 last edited by
                    #9

                    Which distribution are you using ?
                    Which version of a Qt are you using ?
                    How 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

                    1/9

                    15 Sept 2021, 15:01

                    • Login

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