Details
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
For Gerrit Dashboard: PYSIDE-2553 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
527209,5 | Android Deployment: CMake Version Update | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |