Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.0
Description
In the staging packages for Android 6.0.0, qt-cmake requires the following arguments
-DANDROID_ABI:STRING=arm64-v8a -DANDROID_NATIVE_API_LEVEL:STRING=23 -DANDROID_SDK_ROOT:PATH=~/Android/Sdk -DCMAKE_TOOLCHAIN_FILE:PATH=/home/assam/Android/Sdk/ndk/21.1.6352462/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH:PATH=/home/assam/Qt/6.0.0/android_arm64_v8a -DQT_HOST_PATH:STRING=/home/assam/Qt/6.0.0/gcc_64
Ideally, the user would need to provide only the ANDROID_NDK and cmake could deduce the toolchain path, instead of the user providing the toolchain file path. Then CMAKE_FIND_ROOT_PATH could also be not required, because it's the same path as the target installation path which qt-cmake is executed from.
Attachments
Issue Links
- is duplicated by
-
QTBUG-87114 CMake build of Android looks for wrong ABI
- Closed
- is required for
-
QTBUG-85982 Android applications and examples build on Qt 6.0 with cmake
- Closed
- relates to
-
QTBUG-87066 Qt6: Android, unable to build examples with cmake
- Closed
-
QTBUG-87071 qt-cmake and qmake for Android have hardcoded values for cmake and host qmake
- Closed
-
QTBUG-87146 Qt6 Add-on package build with Conan @ Android
- Closed
For Gerrit Dashboard: QTBUG-87068 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
316503,2 | CMake: Introduce QT_CHAINLOAD_TOOLCHAIN_FILE | dev | qt/qtbase | Status: MERGED | +2 | 0 |
317013,2 | CMake: Allow customization of the generated CMake toolchain file | dev | qt/qtbase | Status: MERGED | +2 | 0 |
317248,3 | CMake: Autodetect Android toolchain file and NDK | dev | qt/qtbase | Status: MERGED | +2 | 0 |