Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.2.3
-
None
-
-
bb209b5715 (qt/qtbase/dev) 577f0e6e12 (qt/qtbase/6.2) f619678204 (qt/qtbase/6.3) 577f0e6e12 (qt/tqtc-qtbase/6.2) f619678204 (qt/tqtc-qtbase/6.3) bb209b5715 (qt/tqtc-qtbase/dev) f619678204 (qt/tqtc-qtbase/6.3.0)
Description
I want to build Qt for Android. I've checked the instructions from https://doc.qt.io/qt-6/android-building.html#using-manual-installation, and then used https://github.com/qt/qtbase/blob/dev/cmake/configure-cmake-mapping.md to translate the options to `cmake`. However it seems a number of options are not given correctly. For example, configure-cmake-mapping.md gives the following suggestions: * -android-ndk should translate to -DCMAKE_TOOLCHAIN_PATH, however I could not find any documentation of CMAKE_TOOLCHAIN_PATH and the variable does not appear to be used in cmake and in Qt.
- -android-ndk-platform should translate to -DCMAKE_ANDROID_NATIVE_API_LEVEL=23, however I could not find CMAKE_ANDROID_NATIVE_API_LEVEL documented anywhere. I could however find ANDROID_NATIVE_API_LEVEL (without CMAKE) and that seems to work.
There may be other such issues, as I stopped following the document at that point.