Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Wrong ANDROID_PLATFORM value.



  • I was able to build QT for Android with the following configuration

    set "ANDROID_SDK_ROOT=C:\Users\D-Ef\AppData\Local\Android\Sdk"
    set "ANDROID_NDK_PATH=C:\Users\D-Ef\AppData\Local\Android\Sdk\ndk\23.1.7779620"
    set "ANDROID_BUILD_TOOLS_REVISION=31.0.0"
    set "ANDROID_NDK_PLATFORM=android-23"
       
    configure.bat -platform win32-msvc -xplatform android-clang -prefix %MY_INSTALL_PATH% -qt-host-path %QT_HOST_PATH% ^
      -android-sdk %ANDROID_SDK_ROOT% -android-ndk %ANDROID_NDK_PATH% -android-ndk-platform android-23 -android-abis x86_64 ^
      -DQT_NO_EXCEPTIONS=1 -release -force-debug-info -opensource -confirm-license
    

    But the only thing that seemed wrong to me was that the configuration script displayed ANDROID_PLATFORM=android-21:

        -DANDROID_ABI=x86_64
        -DANDROID_ARM_MODE=thumb
        -DANDROID_ARM_NEON=TRUE
        -DANDROID_PLATFORM=android-21
        -DANDROID_STL=c++_shared
        -DANDROID_TOOLCHAIN=clang
        -DCMAKE_ANDROID_STL_TYPE=c++_shared
        -DCMAKE_OBJCOPY=C:/Users/D-Ef/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy.exe
        -DCMAKE_TOOLCHAIN_FILE=C:/Users/D-Ef/AppData/Local/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake
        -DCMAKE_C_STANDARD=11
        -DCMAKE_CXX_STANDARD=17
        -DCMAKE_MODULE_PATH:STRING=E:/repos/qt-everywhere-src-6.2.2/qtbase/cmake/platforms
    

    while I specified 23.

    Does it mean that something went wrong?

    What ANDROID_BUILD_TOOLS_REVISION should I use?



  • This post is deleted!


  • @Dmitriano ANDROID_PLATFORM is correct with NDK 21.3.6528147 and NDK 22.1.7171670 but with NDK 23.1.7779620 it is not.


Log in to reply