<div dir="ltr"><div dir="ltr">Hi Julien,<div><br></div><div>Thanks for the explanation!</div><div><br></div><div>Regards,</div><div><br></div><div>Germán</div></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 28 may 2024 a las 10:34, Julien Cabieces (<<a href="mailto:julien.cabieces@oslandia.com">julien.cabieces@oslandia.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi German,<br>
<br>
If I believe the PR [0] I pushed 4 month ago, QList<qint64> is now<br>
wrapped so there is no need to add it in conversions.sip<br>
<br>
If I remember correctly we can't add it back because we would get some<br>
type colliding on other system (fedora for instance). I fail to find exact reason of why we needed it before<br>
and we don't need it now, but I just remember it was the right things to<br>
do.<br>
<br>
Anyway, it seems to work on fedora, but there is something wrong on<br>
Debian that would need further investigation.<br>
<br>
Regards,<br>
Julien<br>
<br>
<br>
[0] <a href="https://github.com/qgis/QGIS/pull/55674" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/pull/55674</a><br>
<br>
> Hi Richard and Julien,<br>
><br>
> Thanks a lot for sharing the steps to compile QGIS with Qt6 on Debian. I followed your steps on Ubuntu Noble (24.04) and I've been able to<br>
> reach this point that you're mentioning in this thread, namely:<br>
><br>
> 'QgsSpatialIndex::intersects' has an unsupported return type - provide %MethodCode and a C++ signature<br>
> 'QgsSpatialIndex::nearestNeighbor' has an unsupported return type - provide %MethodCode and a C++ signature<br>
> 'QgsSpatialIndex::nearestNeighbor' has an unsupported return type - provide %MethodCode and a C++ signature<br>
> 'QgsAttributeTableView::selectedFeaturesIds' has an unsupported return type - provide %MethodCode and a C++ signature<br>
> ninja: build stopped: subcommand failed.<br>
><br>
> For me, it has worked by bringing back the MethodCode removed at [1] (which dealt with QList<qint64>). Namely, I copied these lines [2] to<br>
> python/PyQt6/core/conversions.sip and built QGIS again.<br>
><br>
> After doing that, and after installing a couple of missing libs (pytho3-pyqt6.qtpositioning and pytho3-pyqt6.qtserialport), QGIS runs with Python<br>
> bindings enabled on Qt6.<br>
><br>
> Julien, could this MethodCode be still needed for particular SIP versions? Could we bring back this MethodCode to<br>
> python/PyQt6/core/conversions.sip or what could be the recommended approach?<br>
><br>
> Regards,<br>
><br>
> Germán<br>
> ------------<br>
> [1] <a href="https://github.com/qgis/QGIS/pull/55674/commits/5711a69d26e980395529b56e8e3fa757fbfb5550" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/pull/55674/commits/5711a69d26e980395529b56e8e3fa757fbfb5550</a><br>
> [2] <a href="https://github.com/qgis/QGIS/blob/895193f2dddb616cfd21c8cdde037b971f15aa32/python/core/conversions.sip#L1566-L1613" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/blob/895193f2dddb616cfd21c8cdde037b971f15aa32/python/core/conversions.sip#L1566-L1613</a><br>
>  <br>
><br>
> El mié, 31 ene 2024 a las 9:11, Richard Duivenvoorde via QGIS-Developer (<<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>>) escribió:<br>
><br>
>  Hi,<br>
><br>
>  My Qt6 (test) build stops with the following:<br>
><br>
>  Generating the gui bindings...<br>
>  sip-build: /home/richard/git/qgisqt6/build/python/core/auto_generated/qgsspatialindex.sip: line 148: column 5:<br>
>  'QgsSpatialIndex::intersects' has an unsupported return type - provide %MethodCode and a C++ signature<br>
>  /home/richard/git/qgisqt6/build/python/core/auto_generated/qgsspatialindex.sip: line 159: column 5: 'QgsSpatialIndex::nearestNeighbor'<br>
>  has an unsupported return type - provide %MethodCode and a C++ signature<br>
>  /home/richard/git/qgisqt6/build/python/core/auto_generated/qgsspatialindex.sip: line 179: column 5: 'QgsSpatialIndex::nearestNeighbor'<br>
>  has an unsupported return type - provide %MethodCode and a C++ signature<br>
>  /home/richard/git/qgisqt6/build/python/gui/auto_generated/attributetable/qgsattributetableview.sip: line 63: column 5:<br>
>  'QgsAttributeTableView::selectedFeaturesIds' has an unsupported return type - provide %MethodCode and a C++ signature<br>
>  ninja: build stopped: subcommand failed.<br>
><br>
>  Is this my setup?<br>
>  Do others succeed in creating the python bindings?<br>
><br>
>  python3-sip/testing,now 4.19.25+dfsg-5+b2 amd64 [installed]<br>
>  python3-pyqt6.sip/testing,now 13.6.0-1+b1 amd64 [installed,automatic]<br>
>  python3-sipbuild/testing,now 6.8.1+dfsg-1 all [installed,automatic]<br>
><br>
>  Regards,<br>
><br>
>  Richard Duivenvoorde<br>
>  _______________________________________________<br>
>  QGIS-Developer mailing list<br>
>  <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
>  List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>  Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
<br>
-- <br>
<br>
Julien Cabieces<br>
Senior Developer at Oslandia<br>
<a href="mailto:julien.cabieces@oslandia.com" target="_blank">julien.cabieces@oslandia.com</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>-----------<br></div><div>   |\__  <br>(:>__)(<br>   |/    <br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2" target="_blank">https://twitter.com/GeoTux2</a></div><div><br></div><div></div></div></div></div></div></div></div>