Rabbitmq implementation using Qt
-
i want to implement rabbitmq using and i m refering this
https://github.com/mbroadst/qamqp
but getting error
:-1: error: You need to set an executable in the custom run configuration.Please tell how to resolve it
-
Hi,
It's a client library, not an executable you cannot run it.
-
@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 -
The tutorials all comes as full projects so you can build them and run them.
So implement what exactly ?
-
@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
-
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 -
@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?).
-
@daisyvish When you need to investigate why it can't connect (for example firewall could block the connection).
-
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 ? -
@daisyvish said in Rabbitmq implementation using Qt:
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 statusDid the library build successfully ?
Did you check where it is ? -
Anything called "libqamqp0.lib" or similar ?
-
Did you open the main .pro file ? The one at the top of the project ?