Unsolved MQTT client for QT
Ferni last edited by
I'm currently working with this MQTT client for qt (https://github.com/emqtt/qmqtt) but I have some problems. First I had an error due to the old version of qt and adding #include "QString" in qmqtt_routedmessage.h it's solved. Now I can build it and run it for Desktop but when I try to run it in my android device just doesn't work.
This is the first error I receive:
E/dalvikvm( 4873): dlopen("/data/app-lib/org.qtproject.example.qmqtt_example-1/libqmqtt_example.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libqmqtt.so" needed by "libqmqtt_example.so"; caused by load_library(linker.cpp:745): library "libqmqtt.so" not found
The funny thing is that I can build the project for my android target but the problem comes when I try to run it.
What am I doing wrong? Has anyone create a "Hello world" with MQTT for android? Btw I use API 17.
AFAIK, you need to add your dependencies to the list of things to deploy. See here for more information.
I also want to use the qmqtt to achieve message push, but now I have a big problem. As it uses signals and slots to transmit data, how to invoke it in android server.
Android server ?
If I want to be able to accept the notification when the application is not started，i think i should use the android to create a Background server , and to keep long connection with my server proxy, was i wrong?
Do you mean a background service ?
IIRC, background services with Qt are part of 5.7