Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94388

Can not compile examples on Android: "ninja: error: unknown target 'apk', did you mean 'all'?"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • None
    • 6.2.0 FF
    • Build System: CMake
    • Android

    Description

      Install Qt6.2.0 Android binaries (logs from Windows, reproduces on linux and macOS also).

      Configure gui/analogclock:

      C:\Users\qt\RTA\qt5\6.2.0\android_x86\bin\qt-cmake -S C:\Users\qt\RTA\qt5\Examples\Qt-6.2.0\gui\analogclock -B C:\Users\qt\RTA\qt5\Examples\Qt-6.2.0\gui\analogclock\bld_x86 -DANDROID_SDK_ROOT=C:\Utils\Android -DANDROID_NDK_ROOT=c:\Utils\Android\android-ndk-r22b -GNinja

      -> passes fine

      Build with cmake --build . --target apk

      -> fails with
      "ninja: error: unknown target 'apk', did you mean 'all'?"
      SHA1 30e02f32fb1fb6d190d90d2d145b6f29c076ebd8

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes