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. QtMqtt on windows lib install

QtMqtt on windows lib install

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 1 Posters 734 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.
  • C Offline
    C Offline
    ccandido
    wrote on last edited by
    #1

    hi,
    problem is (lib QtMqtt not found)
    Win10 OS.
    I need Mqtt for AWS IoT.
    what I've done so far.
    git clone -b 6.6.1 git://code.qt.io/qt/qtmqtt.git
    Open CMakeLists.txt with VS2022
    see:
    64543213-6eda-4a0e-963f-ca75a419a671-image.png

    make and install ok

    now in QT6 error lib not found.

    cmakelists
    target_link_libraries(ATPOnline_EMS PRIVATE

       Qt${QT_VERSION_MAJOR}::Widgets
       Qt::Core
       Qt::Gui
     **#  Qt::Mqtt error**
    )
    

    mainwindow.cpp
    #include <QtMqtt/QMqttClient> error

    what is the problems, and,

    how to tell QT the directory where the Lib QtMqtt is installed.

    thanks,
    Carlos

    C 1 Reply Last reply
    0
    • C ccandido

      hi,
      problem is (lib QtMqtt not found)
      Win10 OS.
      I need Mqtt for AWS IoT.
      what I've done so far.
      git clone -b 6.6.1 git://code.qt.io/qt/qtmqtt.git
      Open CMakeLists.txt with VS2022
      see:
      64543213-6eda-4a0e-963f-ca75a419a671-image.png

      make and install ok

      now in QT6 error lib not found.

      cmakelists
      target_link_libraries(ATPOnline_EMS PRIVATE

         Qt${QT_VERSION_MAJOR}::Widgets
         Qt::Core
         Qt::Gui
       **#  Qt::Mqtt error**
      )
      

      mainwindow.cpp
      #include <QtMqtt/QMqttClient> error

      what is the problems, and,

      how to tell QT the directory where the Lib QtMqtt is installed.

      thanks,
      Carlos

      C Offline
      C Offline
      ccandido
      wrote on last edited by
      #2

      @ccandido
      hi,

      this: https://www.emqx.com/en/blog/how-to-create-an-mqtt-application-in-qt6

      Git clone C:\Qt....
      Qt6 open CMakeLists.txt... + Run CMake
      create: C:\Qt\build-qtmqtt-Desktop_Qt_6_6_1_MSVC2019_64bit-Release

      in my App:

      target_link_libraries add Qt6::Mqtt now I can see

      #include <QtMqtt/QMqttClient> ok
      m_client = new QMqttClient(this); compiling Yes ....run.

      Then I'll test it at a broker to see if it works,
      but installation seems to have gone well.

      thanks,
      Carlos.

      C 1 Reply Last reply
      0
      • C ccandido

        @ccandido
        hi,

        this: https://www.emqx.com/en/blog/how-to-create-an-mqtt-application-in-qt6

        Git clone C:\Qt....
        Qt6 open CMakeLists.txt... + Run CMake
        create: C:\Qt\build-qtmqtt-Desktop_Qt_6_6_1_MSVC2019_64bit-Release

        in my App:

        target_link_libraries add Qt6::Mqtt now I can see

        #include <QtMqtt/QMqttClient> ok
        m_client = new QMqttClient(this); compiling Yes ....run.

        Then I'll test it at a broker to see if it works,
        but installation seems to have gone well.

        thanks,
        Carlos.

        C Offline
        C Offline
        ccandido
        wrote on last edited by
        #3

        @ccandido
        Qt6 on Win10 ok

        71bf30d2-0f7d-4f96-8dca-db4c3cd5c916-image.png

        thanks,
        Carlos.

        1 Reply Last reply
        0
        • C ccandido has marked this topic as solved on

        • Login

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