Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved how to add library(qmqtt.h) in qmqtt client for windows

    General and Desktop
    7
    59
    22123
    Loading More Posts
    • 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.
    • jsulm
      jsulm Lifetime Qt Champion @shravani last edited by

      @shravani While running from QtCreator?

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

      S 1 Reply Last reply Reply Quote 0
      • S
        shravani @jsulm last edited by shravani

        @jsulm
        while running from qt creator(DLL not found)

        0_1499057065092_Capture.PNG
        so i checked from outside qt to see which dll missing.so i added that

        jsulm 1 Reply Last reply Reply Quote 0
        • jsulm
          jsulm Lifetime Qt Champion @shravani last edited by

          @shravani Running outside from QtCreator is different. You actually only need to copy your qmqtt.dll if you want to run from QtCreator. If you want to run outside of QtCreator you need to deploy your app as @SGaist already said. In one of my previous posts in this thread I posted a link to a side where you can read how to deploy your app on Windows.

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

          S 1 Reply Last reply Reply Quote 0
          • S
            shravani @jsulm last edited by shravani

            @jsulm
            i copied qmqtt.dll but still got that error (DLL not found).do i need to add anything else?

            jsulm 1 Reply Last reply Reply Quote 0
            • jsulm
              jsulm Lifetime Qt Champion @shravani last edited by

              @shravani After adding qmqtt.dll which DLL is missing?

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

              S 1 Reply Last reply Reply Quote 0
              • S
                shravani @jsulm last edited by

                @jsulm
                it was just showing the above error.i cannot find which dll is missing

                jsulm 1 Reply Last reply Reply Quote 0
                • jsulm
                  jsulm Lifetime Qt Champion @shravani last edited by

                  @shravani When you built qmqtt.dll were any other DLLs created in the same directory? Did you try to find out what is missing using http://www.dependencywalker.com ?

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

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    shravani @jsulm last edited by

                    @jsulm
                    only 2 dll files(qmqtt.dll,qmqttd.dll) created and i copied both.

                    jsulm 1 Reply Last reply Reply Quote 0
                    • jsulm
                      jsulm Lifetime Qt Champion @shravani last edited by

                      @shravani Then you should deploy your app using Qt Windows Deployment Tool and see which DLL will end up in your deployment directory.

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

                      S 2 Replies Last reply Reply Quote 0
                      • S
                        shravani @jsulm last edited by

                        @jsulm
                        i changed build to release and its working now.

                        1 Reply Last reply Reply Quote 0
                        • S
                          shravani @jsulm last edited by shravani

                          @jsulm
                          i am able to connect to emq broker.
                          but it is not connecting to other brokers like shiftr.io,IBM cloud through internet ?

                          jsulm 1 Reply Last reply Reply Quote 0
                          • jsulm
                            jsulm Lifetime Qt Champion @shravani last edited by

                            @shravani Should be possible if you have Internet connection and access rights.

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

                            S 1 Reply Last reply Reply Quote 1
                            • S
                              shravani @jsulm last edited by

                              @jsulm
                              internet connection is there. access rights?
                              do i need to change anything in qt program?

                              jsulm 1 Reply Last reply Reply Quote 0
                              • jsulm
                                jsulm Lifetime Qt Champion @shravani last edited by

                                @shravani I never used it but I guess you need access rights to connect? You should ask the people providing those brokers.

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

                                S 1 Reply Last reply Reply Quote 1
                                • S
                                  shravani @jsulm last edited by

                                  @jsulm
                                  do you know any broker that can be connected to qt application through internet?

                                  jsulm 1 Reply Last reply Reply Quote 0
                                  • jsulm
                                    jsulm Lifetime Qt Champion @shravani last edited by

                                    @shravani I guess any mqtt broker?

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

                                    S 1 Reply Last reply Reply Quote 1
                                    • S
                                      shravani @jsulm last edited by shravani

                                      @jsulm
                                      everything is working now.i converted server url to ip address and tried.so i got

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        FiveSmart last edited by

                                        Hi @shravani
                                        can you make tutorial step by step how to add library (qmqtt.h). can you help me
                                        thank you

                                        jsulm 1 Reply Last reply Reply Quote 0
                                        • jsulm
                                          jsulm Lifetime Qt Champion @FiveSmart last edited by

                                          @FiveSmart http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

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

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post