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

In an Android top-level CMake build it is necessary to pass ANDROID_STL=c++_shared

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 6.0.0 Alpha
    • Build System: CMake
    • Android

      In an Android top-level CMake build it is necessary to pass ANDROID_STL=c++_shared.
      This is not needed in a qtbase-only build.

      In a qtbase-only build, QtAutoDetect.cmake is included before the Android toolchain file.
      QtAutoDetect.cmake defaults ANDROID_STL to c++_shared, which is the only value we're supporting.

      In a top-level build, the Android toolchain file is included before QtAutoDetect.cmake.
      The Android toolchain file defaults ANDROID_STL to c++_static, and we get an error message that this value is unsupported.

      The loading of the toolchain file is triggered by the first project command CMake encounters.
      We must ensure that QtAutoDetect always runs before any project command.

        For Gerrit Dashboard: QTBUG-87309
        # Subject Branch Project Status CR V

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes