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

Qt Creator doesn't take the Qt version into account for calculating the min android sdk

    XMLWordPrintable

Details

    • cd8da8fe5f608d4968b90f19f30b515058605b8c (qt-creator/tqtc-qt-creator/6.0)

    Description

      Qt Creator's CMake configuration doesn't respect the minimum sdk level used for each Qt version when setting ANDROID_NATIVE_API_LEVEL cmake parameter which can lead to the project not respecting the minimum sdk. This can work in most cases, however, with Qt Multimedia in Qt 6.2, we're using the NDK Media api which is not available for API 16 (which is currently the default min sdk in Creator), and that will lead to linker error

      /Users/assam/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lmediandk
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      20:10:03: The process "/usr/local/Cellar/cmake/3.19.1/bin/cmake" exited with code 1.
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-26127
        # Subject Branch Project Status CR V

        Activity

          People

            assam Assam Boudjelthia
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes