Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24624

Initial CMake variable "ANDROID_STL" not accepted by newer NDK versions

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.13.0
    • Fix Version/s: Qt Creator 4.13.1
    • Component/s: Android Support
    • Labels:
      None
    • Environment:

      Ubuntu 20.04 LTS

      Qt 5.15

      GCC

      Android NDK v.21.1.6352462

    • Platform/s:
      Linux/X11

      Description

      In Qt Creator just creating a blank project, under the Projects tab, in initial CMake settings, the ANDROID_STL is set to cxx_shared. Newer cmake modules in Android NDK don't accept cxx_shared, but accept c++_shared. I used that, and CMake no longer complains.

      The source of the issue is android.toolchain.cmake, line 377, residing in ndk/21.1.6352462/build/cmake/:

      message(FATAL_ERROR "Invalid Android STL: ${ANDROID_STL}.")

      Please make c++_shared the default initial variable for ANDROID_STL under the build settings for Android kits.

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              portale Alessandro Portale
              Reporter:
              bgc Benjamin Cottrell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes