Issues building Qt5:QtNetwork (QSslCipher) v5.15.2 for Android

Phil Thompson phil at riverbankcomputing.com
Sat Jan 2 18:31:44 GMT 2021


On 02/01/2021 17:29, Frans Fürst wrote:
> On two (dockerized) platforms (Debian-10, Fedora-33) which compiled
> the demo for Linux successfully (Qt5.15.2 => sysroot => demo) as well
> as Qt5 for Android (same version) I'm getting errors when I try to
> build the demo (sysroot-step) for Android:
> 
> PATH="$HOME/qt5-android/build/bin/:$PATH" \
> ANDROID_SDK_ROOT=/opt/android-sdk/ \
> ANDROID_NDK_PLATFORM=android-29 \
> ANDROID_NDK_ROOT=/opt/android-sdk/ndk/21.3.6528147/ \
> python3 ./build-demo.py --target android --verbose
> 
> gives me
> 
> /home/me/demo/sysroot-android-32/build/PyQt5-5.15.2/sip/QtCore/qpycore_qlist.sip:128:9:
> error: use of undeclared identifier 'ql'
> ql->append(*t);
> ^
> /home/me/demo/sysroot-android-32/build/PyQt5-5.15.2/sip/QtCore/qpycore_qlist.sip:136:6:
> error: use of undeclared identifier 'sipCppPtr'
> *sipCppPtr = ql;
> ^
> /home/me/demo/sysroot-android-32/build/PyQt5-5.15.2/sip/QtCore/qpycore_qlist.sip:136:18:
> error: use of undeclared identifier 'ql'
> *sipCppPtr = ql;
> ^
> /tmp/tmpkobwn4pj/QtNetwork/sipQtNetworkpart0.cpp:3340:13: error: no
> member named 'QSslCipher' in the global namespace
> QList< ::QSslCipher> *sipCpp = reinterpret_cast<QList< ::QSslCipher>
> *>(sipCppV);
> ~~^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 12 warnings and 20 errors generated.
> make[1]: *** [Makefile:548: armeabi-v7a/sipQtNetworkpart0.o] Error 1
> make[1]: Leaving directory '/tmp/tmpkobwn4pj/QtNetwork'
> make: *** [Makefile:94: sub-QtNetwork-make_first-ordered] Error 2
> pyqtdeploy-sysroot: execution of 'sip-install' failed: returned exit 
> code 1
> 
> after a while.
> 
> As I said - the same machines successfully compiled the same version
> of Qt5 and the whole demo for Linux before, so I guess it must be an
> Android-related problem. Qt5 itself had also been built from source
> successfully.
> 
> The only modification I made to the demo was to change all version
> strings "5.15.0" to "5.15.2".
> 
> Is this a known problem?
> 
> I'll try with the default "5.15.0" setting of course but since this
> will take hours to complete it would be nice to know in advance if
> there's any hope this will help :)

The error message would suggest that your Android build of Qt does not 
support SSL but your PyQt configuration says that it does.

Phil


More information about the PyQt mailing list