Rabbitmq implementation using Qt
-
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 ? -
@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. -
Anything called "libqamqp0.lib" or similar ?
-
@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 -
Did you open the main .pro file ? The one at the top of the project ?
-
Can you build just the src project ?
-
@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. -
@daisyvish said in Rabbitmq implementation using Qt:
it is not creating any exe file
I guess because it is a library, so a library file is created?
14/27