Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2553

PySide6 for Android Build Issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.0
    • 6.5.0, 6.6.0
    • PySide, Tooling
    • None
    • Linux/X11
    • 0632caba9 (dev)

    Description

      I'm trying to build a PySide6 application for Android on Ubuntu 20.04. To build I followed the instructions outlined here (all commands used are from this link): https://www.qt.io/blog/taking-qt-for-python-to-android.

      The NDK version it mentions to use is 25.2.9519653, which could be installed via the shell script provided in the how-to post linked above. I did so, but as the build script runs (the `python tools/cross_compile_android/main.py ...` in the instructions above) I get the following error:

      CMake Error at /usr/local/share/cmake-3.18/Modules/Platform/Android-Determine.cmake:176 (message):
            Android: The API specified by CMAKE_ANDROID_API='31' does not exist in the
            NDK.  The directory:

             .../android_sdk/ndk/25.2.9519653/platforms/android-31

            does not exist.

      It seems like the more recent NDKs, including the one it mentioned to use no longer have the `platforms` directory. I am not sure why the build script would be looking for the `platforms` directory given the instructions mentioned to use an NDK where that has been deprecated. If someone could please investigate or tell me who to reach out to that would be great.

      Please email myself at epropp@envgo.com if emailing prior to December 21 2023. If after this day, please email jerry@envgo.com

      Attachments

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

        Activity

          People

            shpremna Shyamnath Premnadh
            elipropp Eli Propp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes