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

simplify args needed for qt-cmake for Android

    XMLWordPrintable

    Details

      Description

      In the staging packages for Android 6.0.0, qt-cmake requires the following arguments

       

      -DANDROID_ABI:STRING=arm64-v8a 
      -DANDROID_NATIVE_API_LEVEL:STRING=23 
      -DANDROID_SDK_ROOT:PATH=~/Android/Sdk 
      -DCMAKE_TOOLCHAIN_FILE:PATH=/home/assam/Android/Sdk/ndk/21.1.6352462/build/cmake/android.toolchain.cmake 
      -DCMAKE_FIND_ROOT_PATH:PATH=/home/assam/Qt/6.0.0/android_arm64_v8a 
      -DQT_HOST_PATH:STRING=/home/assam/Qt/6.0.0/gcc_64
      

      Ideally, the user would need to provide only the ANDROID_NDK and cmake could deduce the toolchain path, instead of the user providing the toolchain file path. Then CMAKE_FIND_ROOT_PATH could also be not required, because it's the same path as the target installation path which qt-cmake is executed from.

       

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes