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. Error with MQTT Client GUI Written with Qt
Forum Updated to NodeBB v4.3 + New Features

Error with MQTT Client GUI Written with Qt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 680 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.
  • J Offline
    J Offline
    Juancinho_cardecan
    wrote on last edited by
    #1

    I have a problem with the QMQTT library from https://github.com/emqx/qmqtt-client I've been trying my first with it but there's always this bug:
    error: Unknown module(s) in QT: qmqtt
    f0ea13c3-39b1-4041-9aff-05baf808b0f6-image.png

    This is my tree:

    7977b18d-59b8-402c-a7fa-1b37f5ae13c8-image.png

    And This is my .pro

    71335309-ea33-4e6d-aacf-8b7cb7194acd-image.png

    Anyone can see the problem?

    jsulmJ 1 Reply Last reply
    0
    • J Juancinho_cardecan

      I have a problem with the QMQTT library from https://github.com/emqx/qmqtt-client I've been trying my first with it but there's always this bug:
      error: Unknown module(s) in QT: qmqtt
      f0ea13c3-39b1-4041-9aff-05baf808b0f6-image.png

      This is my tree:

      7977b18d-59b8-402c-a7fa-1b37f5ae13c8-image.png

      And This is my .pro

      71335309-ea33-4e6d-aacf-8b7cb7194acd-image.png

      Anyone can see the problem?

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

      @Juancinho_cardecan You're missing

      QT += mqtt
      

      in your pro file, see https://doc.qt.io/QtMQTT/index.html
      Why is your -L pointing to a source code directory?
      P.S. please post text, not screen-shots

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

      Pablo J. RoginaP 1 Reply Last reply
      0
      • J Offline
        J Offline
        Juancinho_cardecan
        wrote on last edited by
        #3

        With :
        QT += mqtt

        jsulmJ 1 Reply Last reply
        0
        • J Juancinho_cardecan

          With :
          QT += mqtt

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

          @Juancinho_cardecan Do you mean you have that in your pro file?
          If so: did you actually built and installed MQTT?

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

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @Juancinho_cardecan You're missing

            QT += mqtt
            

            in your pro file, see https://doc.qt.io/QtMQTT/index.html
            Why is your -L pointing to a source code directory?
            P.S. please post text, not screen-shots

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @jsulm said in Error with MQTT Client GUI Written with Qt:

            You're missing
            QT += mqtt

            It looks like the OP is creating his Qt MQTT client application based on the external MQTT library qmqtt, not the Qt framework MQTT module itself, that's why the .pro file uses the LIBS directive with -lqmqtt

            @Juancinho_cardecan is there any compelling reason to use this external library qmqtt (and client example) instead of using Qt framework own MQTT module and examples?

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            jsulmJ 1 Reply Last reply
            0
            • Pablo J. RoginaP Pablo J. Rogina

              @jsulm said in Error with MQTT Client GUI Written with Qt:

              You're missing
              QT += mqtt

              It looks like the OP is creating his Qt MQTT client application based on the external MQTT library qmqtt, not the Qt framework MQTT module itself, that's why the .pro file uses the LIBS directive with -lqmqtt

              @Juancinho_cardecan is there any compelling reason to use this external library qmqtt (and client example) instead of using Qt framework own MQTT module and examples?

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

              @Pablo-J-Rogina @Juancinho_cardecan Looks like that, but in this case his -L points to the source directory, unless he built that lib and put the libs inside that directory it can't work. My impressions is that he actually did not build the lib...

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

              1 Reply Last reply
              0

              • Login

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