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

Qt6 packaging: Cross-compiled package patching

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • None
    • 6.0.0
    • Packaging & Installer
    • None

    Description

      During installation these need to be patched:

      • qt-cmake wrappers
        • e.g. lib/cmake/Qt6/qt.toolchain.cmake
        • example:
          • if (NOT DEFINED ANDROID_SDK_ROOT)
            set(ANDROID_SDK_ROOT "<QtSDK>/android/sdk" CACHE STRING "")
            endif()
            set(QT_HOST_PATH "<QtSDK>/qt/qt5_cmake/qtbase_built_developer" CACHE PATH "" FORCE)
            set(QT_HOST_PATH_CMAKE_DIR "<QtSDK>/qt/qt5_cmake/qtbase_built_developer/lib/cmake" CACHE PATH "" FORCE)

      set(__qt_chainload_toolchain_file "<QtSDK>/android/sdk/ndk/20.0.5594570/build/cmake/android.toolchain.cmake")

      • qmake wrapper
        • call the actual qmake from host tools
      • target_qt.conf
        • example:
          • [EffectiveSourcePaths]
            HostData=<QtSDK>/qt/qt5_cmake/qtbase
            [EffectivePaths]
            HostData=<QtSDK>/qt/qt5_cmake/qtbase_built_developer_android
            Prefix=../
            [Paths]
            Prefix=../
            HostPrefix=../../qtbase_built_developer
            HostData=../qtbase_built_developer_android
            Sysroot=
            SysrootifyPrefix=true
            TargetSpec=android-clang
            HostSpec=macx-clang

      Attachments

        Issue Links

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

          Activity

            People

              releaseteam Qt Release Team
              iknd Iikka Eklund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes