Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. set up mqtt for android_armv7

set up mqtt for android_armv7

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 500 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mandeep.Chaudhary
    wrote on last edited by
    #1

    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
    
    jsulmJ 1 Reply Last reply
    0
    • M Mandeep.Chaudhary

      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
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • jsulmJ jsulm

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

        M Offline
        M Offline
        Mandeep.Chaudhary
        wrote on last edited by Mandeep.Chaudhary
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved