Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. ERROR: Cannot detect Android NDK toolchain.
Forum Updated to NodeBB v4.3 + New Features

ERROR: Cannot detect Android NDK toolchain.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 2 Posters 869 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Shrinidhi Upadhyaya
    wrote on 12 Jul 2020, 19:25 last edited by
    #1

    Hi All,

    iam trying to build Qt Android Source Code on MACOS.

    MACOS Version - Catalina 10.15.5

    Qt Source Code - 5.12.2 "https://download.qt.io/archive/qt/5.12/5.12.2/single/"

    Android NDK -

    1. android-ndk-r17c
    2. android-ndk-r19c
    3. android-ndk-r10e

    Qt_AndroidBuild.sh

    ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk android-ndk-r17c -android-sdk sdk -android-ndk-host darwin-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtserialport -no-warnings-are-errors
    

    I have tried all the 3 NDK's, but still its giving me the below error:-

    35d105f2-6720-4fbe-beb4-fe205e94da21-image.png

    Iam trying to follow this article or document "https://wiki.qt.io/Android"

    Please can someone help me on this or guide me.
    @SGaist @J-Hilk @sierdzio @mrjj @Pablo-J-Rogina @jsulm @KroMignon @ekkescorner

    Shrinidhi Upadhyaya.
    Upvote the answer(s) that helped you to solve the issue.

    J 1 Reply Last reply 13 Jul 2020, 05:13
    0
    • S Shrinidhi Upadhyaya
      12 Jul 2020, 19:25

      Hi All,

      iam trying to build Qt Android Source Code on MACOS.

      MACOS Version - Catalina 10.15.5

      Qt Source Code - 5.12.2 "https://download.qt.io/archive/qt/5.12/5.12.2/single/"

      Android NDK -

      1. android-ndk-r17c
      2. android-ndk-r19c
      3. android-ndk-r10e

      Qt_AndroidBuild.sh

      ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk android-ndk-r17c -android-sdk sdk -android-ndk-host darwin-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtserialport -no-warnings-are-errors
      

      I have tried all the 3 NDK's, but still its giving me the below error:-

      35d105f2-6720-4fbe-beb4-fe205e94da21-image.png

      Iam trying to follow this article or document "https://wiki.qt.io/Android"

      Please can someone help me on this or guide me.
      @SGaist @J-Hilk @sierdzio @mrjj @Pablo-J-Rogina @jsulm @KroMignon @ekkescorner

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 13 Jul 2020, 05:13 last edited by
      #2

      @Shrinidhi-Upadhyaya hi

      taken from https://doc.qt.io/qt-5/android-getting-started.html

      Note: If your Qt version is earlier than v5.9, use the SDK tools package v25.2.5 or earlier.

      You're using 5.12 so I would suggest 26, I'm personally using 26.1.1


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Shrinidhi Upadhyaya
        wrote on 13 Jul 2020, 05:24 last edited by
        #3

        Hi @J-Hilk ,

        iam also using SDK Version 26.1.1. But i guess there is some problem with NDK android toolchain version,i have tried using using the "android-toolchain-version 4.9", but it did not work. Have i specified something wrong in the command or am i missing something. Because with respect to "https://wiki.qt.io/Android", they have not specified any android-toolchain-version in there command. So whether specify the android toolchain version or not, its giving me the same error.

        Shrinidhi Upadhyaya.
        Upvote the answer(s) that helped you to solve the issue.

        J 1 Reply Last reply 13 Jul 2020, 05:47
        0
        • S Shrinidhi Upadhyaya
          13 Jul 2020, 05:24

          Hi @J-Hilk ,

          iam also using SDK Version 26.1.1. But i guess there is some problem with NDK android toolchain version,i have tried using using the "android-toolchain-version 4.9", but it did not work. Have i specified something wrong in the command or am i missing something. Because with respect to "https://wiki.qt.io/Android", they have not specified any android-toolchain-version in there command. So whether specify the android toolchain version or not, its giving me the same error.

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 13 Jul 2020, 05:47 last edited by
          #4

          @Shrinidhi-Upadhyaya may I ask why you want to build Qt yourself instead of using the installer?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Shrinidhi Upadhyaya
            wrote on 13 Jul 2020, 06:03 last edited by Shrinidhi Upadhyaya
            #5

            Actually iam working on WebView qml for Android, so i have URL which does not load, so i want to add a function called setDomStorageEnabled() in QtAndroidWebViewController.java .

            You can check this out

            Shrinidhi Upadhyaya.
            Upvote the answer(s) that helped you to solve the issue.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Shrinidhi Upadhyaya
              wrote on 30 Jul 2020, 16:16 last edited by
              #6

              Solved by adding the complete path to the SDK and NDK.

              Shrinidhi Upadhyaya.
              Upvote the answer(s) that helped you to solve the issue.

              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