PyQt 5.13.2 issues with sip 4.19.23

Phil Thompson phil at riverbankcomputing.com
Sat Jun 20 09:48:53 BST 2020


On 19/06/2020 23:23, Kálmán Viktor wrote:
> Got the error below while trying to build android sysroot.
> 
> (I also tried the current dev version (PyQt5-5.15.1.dev2006161728) with
> that SIP and sysroot builds fine however my application crashes on 
> Android
> for some reason (couldn't find anything useful in adb logcat), with 
> 5.13.2
> and 4.19.22 the same code builds fine and works without issues on 
> Android)
> 
> 
> sysroot-android-64/build/PyQt5-5.13.2/QtQuick/sipQtQuickpart1.cpp:2920:59:
> error: object of type 'QSGGeometry' cannot be assigned because its copy
> assignment operator is implicitly deleted
>     reinterpret_cast< ::QSGGeometry *>(sipDst)[sipDstIdx] =
> *reinterpret_cast< ::QSGGeometry *>(sipSrc);
>                                                           ^
> /home/kviktor/Qt/5.13.2/android_arm64_v8a/include/QtQuick/qsggeometry.h:207:25:
> note: copy assignment operator of 'QSGGeometry' is implicitly deleted
> because field 'm_attributes' is of reference type 'const
> QSGGeometry::AttributeSet &'
>     const AttributeSet &m_attributes;
>                         ^
> sysroot-android-64/build/PyQt5-5.13.2/QtQuick/sipQtQuickpart1.cpp:9128:30:
> warning: 'sendEvent' is deprecated [-Wdeprecated-declarations]
>             sipRes = sipCpp->sendEvent(a0,a1);
>                              ^
> 5.13.2/android_arm64_v8a/include/QtQuick/qquickwindow.h:124:5: note:
> 'sendEvent' has been explicitly marked deprecated here
>     QT_DEPRECATED bool sendEvent(QQuickItem *, QEvent *);
>     ^
> android_arm64_v8a/include/QtCore/qglobal.h:292:25: note: expanded from
> macro 'QT_DEPRECATED'
> #  define QT_DEPRECATED Q_DECL_DEPRECATED
>                         ^
> 5.13.2/android_arm64_v8a/include/QtCore/qcompilerdetection.h:233:45: 
> note:
> expanded from macro 'Q_DECL_DEPRECATED'
> #  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
>                                             ^
> 1 warning and 1 error generated.
> make[1]: *** [Makefile:1181: sipQtQuickpart1.o] Error 1
> make[1]: Leaving directory 
> 'sysroot-android-64/build/PyQt5-5.13.2/QtQuick'
> make: *** [Makefile:447: sub-QtQuick-make_first-ordered] Error 2
> pyqtdeploy-sysroot: Execution failed: returned exit code 2

Those are bugs in earlier versions of PyQt exposed by later versions of 
SIP. Later versions are not yet supported by pyqtdeploy.

Phil


More information about the PyQt mailing list