Unsolved Rabbitmq implementation using Qt
-
@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. -
@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 -
Anything called "libqamqp0.lib" or similar ?
-
@jsulm
i have done sending message to server(rabbitmq) in python .It is not blocking .Rabbitmq is receiving the messages. -
@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?
-
@jsulm
It is creating libqamqpd.a file. Is it library file?
except this these are also created:
qamqpd.dll ,qamqp.prl,qamqpd.prl,some make, release and build files. -
@daisyvish said in Rabbitmq implementation using Qt:
Is it library file?
Yes, it is a static library.
qamqpd.dll is the shared library. -
@jsulm @SGaist
ok ,that's mean library is created.Then what to do next to run the project.
should i open tutorial.pro or qamqp.pro or any other .pro file to implement project. -
@daisyvish You need to add this library to your app. See here for more details: https://doc.qt.io/qt-5/third-party-libraries.html