Solved set up mqtt for android_armv7
-
Hi as mqtt is not included as a module in Qt. So I have to add it manually. I added for mingw32. and my project is working on desktop environment.
When I am trying to change the platform i.e. desktop to arm v7. If i disable mqtt module and respective objects in my programme than it works on android device. So it means sdk and ndk files are correctly configured in Qt.
However, when I try to add mqtt module in armv7 Qt dir
by simply going to cmd and downloading the mqtt from
- git clone "https://codereview.qt-project.org/qt/qtmqtt"
- cd qtmqtt
- git checkout 5.12.6
- D:\qT\5.12.6\android_armv7\bin\qmake
then i have the error
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK. Could not read qmake configuration file D:/qT/5.12.6/android_armv7/mkspecs/android-clang/qmake.conf. Error processing project file: C:\Temp\android\qtmqtt\qtmqtt.pro
-
@Mandeep-Chaudhary said in set up mqtt for android_armv7:
You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK
Did you do this?
You need to install Android NDK to be able to build C++ applications for Android. -
This post is deleted!