How to build MQTT for android devices?
Quang Phu last edited by Quang Phu
I am devlop an app use MQTT protocol to communicate server.
First I build and run MQTT on desktop OK.
Then, I tried to build with android device, I got errors mqtt module is unknown. Then I tried to build mqtt for android as desktop way, but when I run program, It had error
So I just wonder how to build MQTT correctly for Android?
- Qt: 5.13.0
- OS: Ubuntu 18.04
- Project target: Android x86
- NDK: r20
Pablo J. Rogina last edited by
o I just wonder how to build MQTT correctly for Android?
I guess that you need to follow the same procedure you did for building the module for Desktop, this time using the compiler/tools from the NDK
Quang Phu last edited by
I tried again, built as the procedure of Desktop one, there is an error:
cannot find -lc++
and this was fixed by adding -nostdlib++ into .../Qt5.13.0/5.13.0/android_x86/mkspecs/android-clang/qmake.conf as
Then building was successful, and it works now. I will mark this issue be resolved.
Thank for your help :)