[PyQt] PyQtDeploy: Supported development hosts for Android

Phil Thompson phil at riverbankcomputing.com
Thu Sep 12 17:21:00 BST 2019


On 12/09/2019 14:44, Safa Alfulaij wrote:
> Thanks :)
> Well, maybe once I gain the needed knowledge :)
> 
> Now I tried it on my ArchLinux. Using NDK r19c, SDK 22&26, Qt 5.12.2,
> PyQt5.12.1.
> I'm getting
> /home/safa/Android/Ndk/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
> -c -D__ANDROID_API__=26 -target aarch64-none-linux-android 
> -gcc-toolchain
> /home/safa/Android/Ndk/android-ndk-r19c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64
> -fno-limit-debug-info -DANDROID_HAS_WSTRING
> --sysroot=/home/safa/Android/Ndk/android-ndk-r19c/sysroot -isystem
> /home/safa/Android/Ndk/android-ndk-r19c/sysroot/usr/include/aarch64-linux-android
> -isystem
> /home/safa/Android/Ndk/android-ndk-r19c/sources/cxx-stl/llvm-libc++/include
> -isystem
> /home/safa/Android/Ndk/android-ndk-r19c/sources/android/support/include
> -isystem
> /home/safa/Android/Ndk/android-ndk-r19c/sources/cxx-stl/llvm-libc++abi/include
> -fstack-protector-strong -DANDROID -O2 -O2 -fPIC -fvisibility=hidden
> -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT
> -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public 
> -DPy_LIMITED_API=0x03040000
> -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I.
> -I../../../include/python3.7 -I../qpy/QtCore
> -I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include
> -I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore -I.
> -I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/mkspecs/android-clang -o
> qpycore_post_init.o qpycore_post_init.cpp
> In file included from qpycore_post_init.cpp:23:
> In file included from
> /home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/QMutex:1:
> In file included from
> /home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/qmutex.h:43:
> /home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/qglobal.h:45:12:
> fatal error: 'type_traits' file not found
> #  include <type_traits>
>            ^~~~~~~~~~~~~
> 1 error generated.
> make[1]: *** [Makefile:1027: qpycore_post_init.o] Error 1
> make[1]: Leaving directory
> '/home/safa/0000-PyQt_Andoird/pyqtdeploy-2.4/demo/sysroot-android-64/build/PyQt5_gpl-5.12.1/QtCore'
> make: *** [Makefile:53: sub-QtCore-make_first-ordered] Error 2
> pyqtdeploy-sysroot: Execution failed: returned exit code 2
> [safa at archlinux demo]$
> I'm pretty sure that this is about gcc/clang/c++17, but I'm using the
> proper versions, I suppose.

Start by building the demo using the same versions shown in the demo 
screenshots. Only those combinations of versions has been tested. Once 
that works, change versions one thing at a time until you are using the 
versions you want to use. If a version doesn't work then *you* have to 
debug it.

Phil


More information about the PyQt mailing list