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

[REG 6.4.0->6.5.0] Can not compile Qt examples with Android pre-build binaries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.5.0 FF
    • Packaging & Installer
    • Android
    • a5f6bc2392 (qtsdk/tqtc-qtsdk/master)

    Description

      Install Qt6.5.0 Android binaries on linux, configure example gui/analogclock

      /home/qt/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/bin/qt-cmake -S /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock -B /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_arm64-v8a -DANDROID_SDK_ROOT=/opt/android/sdk -DANDROID_NDK_ROOT=/opt/android/android-ndk-r23b -GNinja
      

      Fails:

      CMake Error at /home/qt/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:258 (message):
      CMake Error at CMakeLists.txt:15 (find_package):
      -- Android toolchain file within NDK detected: /opt/android/android-ndk-r23b/build/cmake/android.toolchain.cmake
      -- Android: Targeting API '23' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
      -- Android toolchain file within NDK detected: /opt/android/android-ndk-r23b/build/cmake/android.toolchain.cmake
      -- Android: Selected unified Clang toolchain
      -- The CXX compiler identification is Clang 12.0.8
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /opt/android/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Error at /home/qt/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:258 (message):
        To use a cross-compiled Qt, please set the QT_HOST_PATH cache variable to
        the location of your host Qt installation.
      Call Stack (most recent call first):
        /home/qt/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6/Qt6Dependencies.cmake:7 (_qt_internal_setup_qt_host_path)
        /home/qt/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmake:112 (include)
        CMakeLists.txt:15 (find_package)
      CMake Error at CMakeLists.txt:15 (find_package):
        Found package configuration file:
          /home/qt/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmake
        but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
        FOUND.
      -- Configuring incomplete, errors occurred!
      

      Reproduces in all platforms

      Attachments

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

        Activity

          People

            janihe Jani Heikkinen
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes