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 to add library(qmqtt.h) in qmqtt client for windows
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
59 Posts 7 Posters 29.9k Views 3 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.
  • jsulmJ jsulm

    @shravani
    Again: you need the DLL file to be able to execute your app. Where is qmqtt.dll (or libqmqtt.dll)?

    S Offline
    S Offline
    shravani
    wrote on last edited by shravani
    #33

    @jsulm
    it is inside src only.do i need to add anywhere else again?
    after building library it created in /bin so i copied from there to src folder

    jsulmJ 1 Reply Last reply
    0
    • S shravani

      @jsulm
      it is inside src only.do i need to add anywhere else again?
      after building library it created in /bin so i copied from there to src folder

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

      @shravani The DLL must be in a directory where the operating system is looking for shared libraries when loading an app. Fastest way is to copy it to the build directory of your app (where your executable is).

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

      S 2 Replies Last reply
      2
      • jsulmJ jsulm

        @shravani The DLL must be in a directory where the operating system is looking for shared libraries when loading an app. Fastest way is to copy it to the build directory of your app (where your executable is).

        S Offline
        S Offline
        shravani
        wrote on last edited by
        #35
        This post is deleted!
        1 Reply Last reply
        1
        • jsulmJ jsulm

          @shravani The DLL must be in a directory where the operating system is looking for shared libraries when loading an app. Fastest way is to copy it to the build directory of your app (where your executable is).

          S Offline
          S Offline
          shravani
          wrote on last edited by
          #36

          @jsulm
          i added all dlls but now getting this error
          0_1498976658348_error.png

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #37

            Hi,

            You can't start an application like that from explorer, you first have to follow the same steps you would before deploying your application on another computer.

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

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              You can't start an application like that from explorer, you first have to follow the same steps you would before deploying your application on another computer.

              S Offline
              S Offline
              shravani
              wrote on last edited by shravani
              #38

              @SGaist
              In Qt creator also I'm getting same error after adding ucrtbased.dll to debug folder.
              i tried executing examples given in qt but getting same error.
              recently i installed this qt 5.8.1 msvc2015 new version because in qt 5.0 it(mqtt) is not working.

              0_1499045791448_error2.png 0_1499045799223_path.png

              jsulmJ 1 Reply Last reply
              0
              • S shravani

                @SGaist
                In Qt creator also I'm getting same error after adding ucrtbased.dll to debug folder.
                i tried executing examples given in qt but getting same error.
                recently i installed this qt 5.8.1 msvc2015 new version because in qt 5.0 it(mqtt) is not working.

                0_1499045791448_error2.png 0_1499045799223_path.png

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

                @shravani Which DLLs exactly did you copy and from where? No need to copy ucrtbased.dll when starting from QtCreator.

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

                S 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @shravani Which DLLs exactly did you copy and from where? No need to copy ucrtbased.dll when starting from QtCreator.

                  S Offline
                  S Offline
                  shravani
                  wrote on last edited by shravani
                  #40

                  @jsulm
                  but while running it showed ucrtbased.dll is missing)DLL not found as above post)

                  jsulmJ 1 Reply Last reply
                  0
                  • S shravani

                    @jsulm
                    but while running it showed ucrtbased.dll is missing)DLL not found as above post)

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

                    @shravani While running from QtCreator?

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

                    S 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @shravani While running from QtCreator?

                      S Offline
                      S Offline
                      shravani
                      wrote on last edited by shravani
                      #42

                      @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

                      jsulmJ 1 Reply Last reply
                      0
                      • S 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

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

                        @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
                        0
                        • jsulmJ jsulm

                          @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.

                          S Offline
                          S Offline
                          shravani
                          wrote on last edited by shravani
                          #44

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

                          jsulmJ 1 Reply Last reply
                          0
                          • S shravani

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

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

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

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

                            S 1 Reply Last reply
                            0
                            • jsulmJ jsulm

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

                              S Offline
                              S Offline
                              shravani
                              wrote on last edited by
                              #46

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

                              jsulmJ 1 Reply Last reply
                              0
                              • S shravani

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

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

                                @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
                                0
                                • jsulmJ jsulm

                                  @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 ?

                                  S Offline
                                  S Offline
                                  shravani
                                  wrote on last edited by
                                  #48

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

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • S shravani

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

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

                                    @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
                                    0
                                    • jsulmJ jsulm

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

                                      S Offline
                                      S Offline
                                      shravani
                                      wrote on last edited by
                                      #50

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

                                      1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

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

                                        S Offline
                                        S Offline
                                        shravani
                                        wrote on last edited by shravani
                                        #51

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

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • S 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 ?

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

                                          @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
                                          1

                                          • Login

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