Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27761

CMake: ANDROID_NDK_ROOT is not set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 7.0.1, Qt Creator 7.0.2
    • Fix Version/s: None
    • Component/s: Android Support
    • Labels:
      None
    • Platform/s:
      All

      Description

      When building aab file for few abi (using QT_ANDROID_ABIS variable) following warning is produced:

      Qt/6.3.1/android_armv7/lib/cmake/Qt6/qt.toolchain.cmake:82 (message):
       The toolchain file to be chainloaded
       '/opt/android/android-ndk-r22b/build/cmake/android.toolchain.cmake' does
       not exist.
      

      The reason of warning is that I have NDK installed at different location and android.toolchain.cmake script expect to read it from variable ANDROID_NDK_ROOT while in Qt Creator there is only variable ANDROID_NDK.

      Adding ANDROID_NDK_ROOT manually clears the warning.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              portale Alessandro Portale
              Reporter:
              lkorbel Łukasz Korbel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes