Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

    1. git clone "https://codereview.qt-project.org/qt/qtmqtt"
    2. cd qtmqtt
    3. git checkout 5.12.6
    4. 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
    

  • Lifetime Qt Champion

    @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!

Log in to reply