Re: PyQt 5.13.2 issues with sip 4.19.23

Kálmán Viktor <[email protected]> Sun, 21 Jun 2020 11:56:38 +0200
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CA+sJfQxr2bryHg6uLzHJ-=qQ-=BnUuuBRcfZL_1f+kUjH3cK6A@mail.gmail.com>
--00000000000018ab5905a89525cc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I see. By the way the issue with 5.15.1 was that it was missing pkgutil, I
assume it was added to 5.14/5.15 in PyQt because 5.13 was working without
it, after adding it in the .pdy file things seem to work.

Phil Thompson <[email protected]> ezt =C3=ADrta (id=C5=91pont: 20=
20. j=C3=BAn.
20., Szo, 10:48):

> On 19/06/2020 23:23, K=C3=A1lm=C3=A1n 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] =3D
> > *reinterpret_cast< ::QSGGeometry *>(sipSrc);
> >                                                           ^
> >
> /home/kviktor/Qt/5.13.2/android_arm64_v8a/include/QtQuick/qsggeometry.h:2=
07: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 =3D 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
>

--00000000000018ab5905a89525cc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I see. By the way the issue with 5.15.1 was that it was mi=
ssing pkgutil, I assume it was added to 5.14/5.15 in PyQt because 5.13 was =
working without it, after adding it in the .pdy file things seem to work.</=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Ph=
il Thompson &lt;<a href=3D"mailto:[email protected]">phil@riverba=
nkcomputing.com</a>&gt; ezt =C3=ADrta (id=C5=91pont: 2020. j=C3=BAn. 20., S=
zo, 10:48):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 1=
9/06/2020 23:23, K=C3=A1lm=C3=A1n Viktor wrote:<br>
&gt; Got the error below while trying to build android sysroot.<br>
&gt; <br>
&gt; (I also tried the current dev version (PyQt5-5.15.1.dev2006161728) wit=
h<br>
&gt; that SIP and sysroot builds fine however my application crashes on <br=
>
&gt; Android<br>
&gt; for some reason (couldn&#39;t find anything useful in adb logcat), wit=
h <br>
&gt; 5.13.2<br>
&gt; and 4.19.22 the same code builds fine and works without issues on <br>
&gt; Android)<br>
&gt; <br>
&gt; <br>
&gt; sysroot-android-64/build/PyQt5-5.13.2/QtQuick/sipQtQuickpart1.cpp:2920=
:59:<br>
&gt; error: object of type &#39;QSGGeometry&#39; cannot be assigned because=
 its copy<br>
&gt; assignment operator is implicitly deleted<br>
&gt;=C2=A0 =C2=A0 =C2=A0reinterpret_cast&lt; ::QSGGeometry *&gt;(sipDst)[si=
pDstIdx] =3D<br>
&gt; *reinterpret_cast&lt; ::QSGGeometry *&gt;(sipSrc);<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>
&gt; /home/kviktor/Qt/5.13.2/android_arm64_v8a/include/QtQuick/qsggeometry.=
h:207:25:<br>
&gt; note: copy assignment operator of &#39;QSGGeometry&#39; is implicitly =
deleted<br>
&gt; because field &#39;m_attributes&#39; is of reference type &#39;const<b=
r>
&gt; QSGGeometry::AttributeSet &amp;&#39;<br>
&gt;=C2=A0 =C2=A0 =C2=A0const AttributeSet &amp;m_attributes;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0^<br>
&gt; sysroot-android-64/build/PyQt5-5.13.2/QtQuick/sipQtQuickpart1.cpp:9128=
:30:<br>
&gt; warning: &#39;sendEvent&#39; is deprecated [-Wdeprecated-declarations]=
<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sipRes =3D sipCpp-&gt;s=
endEvent(a0,a1);<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
&gt; 5.13.2/android_arm64_v8a/include/QtQuick/qquickwindow.h:124:5: note:<b=
r>
&gt; &#39;sendEvent&#39; has been explicitly marked deprecated here<br>
&gt;=C2=A0 =C2=A0 =C2=A0QT_DEPRECATED bool sendEvent(QQuickItem *, QEvent *=
);<br>
&gt;=C2=A0 =C2=A0 =C2=A0^<br>
&gt; android_arm64_v8a/include/QtCore/qglobal.h:292:25: note: expanded from=
<br>
&gt; macro &#39;QT_DEPRECATED&#39;<br>
&gt; #=C2=A0 define QT_DEPRECATED Q_DECL_DEPRECATED<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0^<br>
&gt; 5.13.2/android_arm64_v8a/include/QtCore/qcompilerdetection.h:233:45: <=
br>
&gt; note:<br>
&gt; expanded from macro &#39;Q_DECL_DEPRECATED&#39;<br>
&gt; #=C2=A0 define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0^<br>
&gt; 1 warning and 1 error generated.<br>
&gt; make[1]: *** [Makefile:1181: sipQtQuickpart1.o] Error 1<br>
&gt; make[1]: Leaving directory <br>
&gt; &#39;sysroot-android-64/build/PyQt5-5.13.2/QtQuick&#39;<br>
&gt; make: *** [Makefile:447: sub-QtQuick-make_first-ordered] Error 2<br>
&gt; pyqtdeploy-sysroot: Execution failed: returned exit code 2<br>
<br>
Those are bugs in earlier versions of PyQt exposed by later versions of <br=
>
SIP. Later versions are not yet supported by pyqtdeploy.<br>
<br>
Phil<br>
</blockquote></div>

--00000000000018ab5905a89525cc--