Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. Rabbitmq implementation using Qt

Rabbitmq implementation using Qt

Scheduled Pinned Locked Moved Unsolved India
27 Posts 3 Posters 7.3k 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.
  • D Offline
    D Offline
    daisyvish
    wrote on 14 Jun 2021, 06:21 last edited by
    #3

    @SGaist
    please can u tell me how to implement rabbitmq using qt......

    J 1 Reply Last reply 14 Jun 2021, 06:23
    0
    • D daisyvish
      14 Jun 2021, 06:21

      @SGaist
      please can u tell me how to implement rabbitmq using qt......

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Jun 2021, 06:23 last edited by
      #4

      @daisyvish You need to use it like any other shared library.
      Link your app against the library and include its header files where you want to use it.
      https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
      https://doc.qt.io/qt-5/third-party-libraries.html

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daisyvish
        wrote on 14 Jun 2021, 10:55 last edited by daisyvish
        #5

        @jsulm @SGaist
        yes AMQP is a library .In Tutorial folder there are many example ...i want to implement those .... please help me to implement that.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Jun 2021, 11:45 last edited by
          #6

          The tutorials all comes as full projects so you can build them and run them.

          So implement what exactly ?

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

          D 1 Reply Last reply 15 Jun 2021, 04:39
          0
          • D Offline
            D Offline
            daisyvish
            wrote on 15 Jun 2021, 04:02 last edited by
            #7

            @jsulm @SGaist
            i am creating a gui in Qt and backend functionality is remotely hosted in server .I am using Rabbitmq as a message broker to communicate between Qt and server.
            To implement this use case i am using amqp library.
            For this i am using this reference:
            https://github.com/fuCtor/QAMQP
            I am getting this error:
            09:19:34: Starting C:\Users\XXXXX\Documents\Qt practice\build-qamqp-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\debug\qamqp.exe send...
            Connectto host: "192.168.X.XXX" 5672
            AMQP: Socket Error: "Host not found"
            Send::sendMessage "[1: 2021-06-15T09:19:52] HEYYY/"
            Inside Send Frame: QAbstractSocket::UnconnectedState
            Inside Send Frame: QAbstractSocket::UnconnectedState
            Inside Send Frame: QAbstractSocket::UnconnectedState
            Send::sendMessage "[2: 2021-06-15T09:19:54] HEYYY/"
            Inside Send Frame: QAbstractSocket::UnconnectedState
            Inside Send Frame: QAbstractSocket::UnconnectedState
            Inside Send Frame: QAbstractSocket::UnconnectedState
            Send::sendMessage "[3: 2021-06-15T09:19:57] HEYYY/

            May be i am using it wrongly .......please help me

            J 1 Reply Last reply 15 Jun 2021, 05:17
            0
            • S SGaist
              14 Jun 2021, 11:45

              The tutorials all comes as full projects so you can build them and run them.

              So implement what exactly ?

              D Offline
              D Offline
              daisyvish
              wrote on 15 Jun 2021, 04:39 last edited by
              #8

              @SGaist

              https://github.com/mbroadst/qamqp --from this codes i double click on qamqp.pro and build and run the project
              i am getting these error:
              error: cannot find -lqamqp0
              error: collect2.exe: error: ld returned 1 exit status
              error: cannot find -lqamqp0
              error: collect2.exe: error: ld returned 1 exit status

              S 1 Reply Last reply 15 Jun 2021, 06:11
              0
              • D daisyvish
                15 Jun 2021, 04:02

                @jsulm @SGaist
                i am creating a gui in Qt and backend functionality is remotely hosted in server .I am using Rabbitmq as a message broker to communicate between Qt and server.
                To implement this use case i am using amqp library.
                For this i am using this reference:
                https://github.com/fuCtor/QAMQP
                I am getting this error:
                09:19:34: Starting C:\Users\XXXXX\Documents\Qt practice\build-qamqp-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\debug\qamqp.exe send...
                Connectto host: "192.168.X.XXX" 5672
                AMQP: Socket Error: "Host not found"
                Send::sendMessage "[1: 2021-06-15T09:19:52] HEYYY/"
                Inside Send Frame: QAbstractSocket::UnconnectedState
                Inside Send Frame: QAbstractSocket::UnconnectedState
                Inside Send Frame: QAbstractSocket::UnconnectedState
                Send::sendMessage "[2: 2021-06-15T09:19:54] HEYYY/"
                Inside Send Frame: QAbstractSocket::UnconnectedState
                Inside Send Frame: QAbstractSocket::UnconnectedState
                Inside Send Frame: QAbstractSocket::UnconnectedState
                Send::sendMessage "[3: 2021-06-15T09:19:57] HEYYY/

                May be i am using it wrongly .......please help me

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 15 Jun 2021, 05:17 last edited by
                #9

                @daisyvish said in Rabbitmq implementation using Qt:

                AMQP: Socket Error: "Host not found"

                This is quite clear: connection failed. So, check why you can't connect (are IP and port correct?).

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

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  daisyvish
                  wrote on 15 Jun 2021, 05:47 last edited by
                  #10

                  @jsulm
                  Yes IP and Port is correct .

                  J 1 Reply Last reply 15 Jun 2021, 06:04
                  0
                  • D daisyvish
                    15 Jun 2021, 05:47

                    @jsulm
                    Yes IP and Port is correct .

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 15 Jun 2021, 06:04 last edited by
                    #11

                    @daisyvish When you need to investigate why it can't connect (for example firewall could block the connection).

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

                    D 1 Reply Last reply 15 Jun 2021, 10:24
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 15 Jun 2021, 06:10 last edited by
                      #12

                      Are you sure you are on the same network ?
                      Are you sure the machine is reachable ?
                      Are you sure the port on that machine is opened ?
                      How remote is that machine with regards to yours ?

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

                      D 1 Reply Last reply 15 Jun 2021, 08:36
                      0
                      • D daisyvish
                        15 Jun 2021, 04:39

                        @SGaist

                        https://github.com/mbroadst/qamqp --from this codes i double click on qamqp.pro and build and run the project
                        i am getting these error:
                        error: cannot find -lqamqp0
                        error: collect2.exe: error: ld returned 1 exit status
                        error: cannot find -lqamqp0
                        error: collect2.exe: error: ld returned 1 exit status

                        S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 15 Jun 2021, 06:11 last edited by
                        #13

                        @daisyvish said in Rabbitmq implementation using Qt:

                        @SGaist

                        https://github.com/mbroadst/qamqp --from this codes i double click on qamqp.pro and build and run the project
                        i am getting these error:
                        error: cannot find -lqamqp0
                        error: collect2.exe: error: ld returned 1 exit status
                        error: cannot find -lqamqp0
                        error: collect2.exe: error: ld returned 1 exit status

                        Did the library build successfully ?
                        Did you check where it is ?

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

                        D 1 Reply Last reply 15 Jun 2021, 09:32
                        0
                        • S SGaist
                          15 Jun 2021, 06:10

                          Are you sure you are on the same network ?
                          Are you sure the machine is reachable ?
                          Are you sure the port on that machine is opened ?
                          How remote is that machine with regards to yours ?

                          D Offline
                          D Offline
                          daisyvish
                          wrote on 15 Jun 2021, 08:36 last edited by
                          #14

                          @SGaist
                          Yes i am on same network.
                          yes machine is reachable.
                          yes port of that machine is opened.
                          Remote machine is in the same network.
                          Rabbitmq Server is accesible through browser and also on another computer inside the network.

                          1 Reply Last reply
                          0
                          • S SGaist
                            15 Jun 2021, 06:11

                            @daisyvish said in Rabbitmq implementation using Qt:

                            @SGaist

                            https://github.com/mbroadst/qamqp --from this codes i double click on qamqp.pro and build and run the project
                            i am getting these error:
                            error: cannot find -lqamqp0
                            error: collect2.exe: error: ld returned 1 exit status
                            error: cannot find -lqamqp0
                            error: collect2.exe: error: ld returned 1 exit status

                            Did the library build successfully ?
                            Did you check where it is ?

                            D Offline
                            D Offline
                            daisyvish
                            wrote on 15 Jun 2021, 09:32 last edited by
                            #15

                            @SGaist
                            How can i know library is build or not ?
                            after clicking on run button build folder is created and that build is having debug,pckgconfig,release, .dll,make file,.o

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 15 Jun 2021, 09:34 last edited by
                              #16

                              Anything called "libqamqp0.lib" or similar ?

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

                              D 1 Reply Last reply 15 Jun 2021, 11:09
                              0
                              • J jsulm
                                15 Jun 2021, 06:04

                                @daisyvish When you need to investigate why it can't connect (for example firewall could block the connection).

                                D Offline
                                D Offline
                                daisyvish
                                wrote on 15 Jun 2021, 10:24 last edited by
                                #17

                                @jsulm
                                i have done sending message to server(rabbitmq) in python .It is not blocking .Rabbitmq is receiving the messages.

                                1 Reply Last reply
                                0
                                • S SGaist
                                  15 Jun 2021, 09:34

                                  Anything called "libqamqp0.lib" or similar ?

                                  D Offline
                                  D Offline
                                  daisyvish
                                  wrote on 15 Jun 2021, 11:09 last edited by
                                  #18

                                  @SGaist said in Rabbitmq implementation using Qt:

                                  libqamqp0.lib

                                  no,there is nothing like libqamqp0.lib and no any .lib file .
                                  it is containing only .o,.cpp, qamqp.exe,make,release and debug file

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 15 Jun 2021, 11:12 last edited by
                                    #19

                                    Did you open the main .pro file ? The one at the top of the project ?

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

                                    D 1 Reply Last reply 15 Jun 2021, 11:21
                                    0
                                    • S SGaist
                                      15 Jun 2021, 11:12

                                      Did you open the main .pro file ? The one at the top of the project ?

                                      D Offline
                                      D Offline
                                      daisyvish
                                      wrote on 15 Jun 2021, 11:21 last edited by
                                      #20

                                      @SGaist
                                      i opened qamqp.pro file.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 15 Jun 2021, 19:42 last edited by
                                        #21

                                        Can you build just the src project ?

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

                                        D 1 Reply Last reply 16 Jun 2021, 04:31
                                        0
                                        • S SGaist
                                          15 Jun 2021, 19:42

                                          Can you build just the src project ?

                                          D Offline
                                          D Offline
                                          daisyvish
                                          wrote on 16 Jun 2021, 04:31 last edited by
                                          #22

                                          @SGaist
                                          I tried to build src by opening src.pro.But it is not creating any exe file(src.exe) and showing error: You need to set an executable in the custom run configuration.
                                          after manually setting an executable(src.exe) i am getting this Error:

                                          09:58:42: Starting C:\Users\Deepa\Downloads\New folder\qamqp-master(4)\qamqp-master\build-src-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\debug\src.exe ...
                                          09:58:42: Failed to start program. Path or permissions wrong?
                                          09:58:42: C:\Users\Deepa\Downloads\New folder\qamqp-master(4)\qamqp-master\build-src-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\debug\src.exe exited with code -1
                                          09:58:42: The process failed to start. Either the invoked program "C:\Users\Deepa\Downloads\New folder\qamqp-master(4)\qamqp-master\build-src-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\debug\src.exe" is missing, or you may have insufficient permissions to invoke the program.

                                          J 1 Reply Last reply 16 Jun 2021, 04:33
                                          0

                                          12/27

                                          15 Jun 2021, 06:10

                                          • Login

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