Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-286

Error: Cannot find toolchain files for the manually specified Android ABIs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QtGP 1.1
    • QtGP: General
    • None
    • macOS

    Description

      Env:

      OS 15.2 Qt 6.9.0b2

      Qt GP 1.1 (Qt Maven)

      QtTAS Plugin 4.0 (dev - f79fb9575f3f083a35dabe805eba03802dc23380)

      AS Ladybug 2024.2.2

       

      Steps:

      1. Open example qtquickview_java and make sure the qt project is also there.
      2. Update the build.gradle and run the app on supported device/emulator:
      QtBuild {
          qtPath file("/Users/lukaszkosiorowski/Qt/6.9.0")
          projectPath file("/Users/lukaszkosiorowski/workspace/qt/android_examples/qtquickview")
          setExtraCMakeArguments('-DQT_ANDROID_BUILD_ALL_ABIS=FALSE', '-DQT_ANDROID_ABIS="arm64-v8a;x86_64"')
      } 

      Expected: Like on Windows the app is built for two ABIs only. 

      Actual: 

      I was trying to limit number of ABIs build, so that I can run the app on device connected (arm64-v8a) and on emulator (x86_64). Since, all the ABIs are built automatically (-DQT_ANDROID_BUILD_ALL_ABIS=ON) I tried to switch the flag (set to FALSE). It works well on Windows, but on macOS it throws the error:

      Cannot find toolchain files for the manually specified Android ABIs:
      "arm64-v8a, x86_64" 

      CMake arguments:

      Command arguments: [-S, /Users/lukaszkosiorowski/workspace/qt/android_examples/qtquickview, -B, /Users/lukaszkosiorowski/workspace/qt/android_examples/qtquickview_java/app/build/qt_generated/qtquickview, -G, Ninja, -DQT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS=ON, -DQT_USE_TARGET_ANDROID_BUILD_DIR=ON, -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja, -DANDROID_SDK_ROOT=/Users/lukaszkosiorowski/Library/Android/sdk, -DANDROID_NDK_ROOT=/Users/lukaszkosiorowski/Library/Android/sdk/ndk/26.1.10909125, -DQT_ANDROID_BUILD_ALL_ABIS=ON, -DQT_ANDROID_BUILD_ALL_ABIS=FALSE, -DQT_ANDROID_ABIS="arm64-v8a;armeabi-v7a"] 

       

       

      Attachments

        Issue Links

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

          Activity

            People

              olvuolte Olli Vuolteenaho
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes