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

Android help from configure-cmake-mapping.md seems outdated (or wrong)?

    XMLWordPrintable

Details

    • Android
    • 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.

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            emmenlau Mario Emmenlauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes