Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
6.0.0
-
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)
- if (NOT DEFINED ANDROID_SDK_ROOT)
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
- [EffectiveSourcePaths]
- example:
Attachments
Issue Links
- depends on
-
QTBUG-86049 Qt6 packaging: Cross-compiled package installation
-
- Closed
-