Ok, lift off :-) See screenie.
Thank Even, I had mixed version qwt headers and libs.
So on Debian Trixie, there seems no libqwt for qt6 available yet?
Had to pull these from experimental:
libqwt-headers_6.2.0-1_amd64.deb
libqwt-qt6-6.2_6.2.0-1_amd64.deb
libqwt-qt6-dev_6.2.0-1_amd64.deb
Then QGIS-qt6 compiles and I can run it, without python though, because
creation of the bindings fails.
Not sure if this is because of the libqwt in my setup or something else.
Also not sure if these are warnings, or the actual cause of stopping:
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project
metadata is deprecated and will be removed in SIP v7.0.0, use '[project]'
instead
Querying qmake about your Qt installation...
These bindings will be built: gui.
Generating the gui bindings...
sip-build:
/home/richard/git/qgisqt6/build/python/core/auto_generated/qgsspatialindex.sip:
line 148: column 5: 'QgsSpatialIndex::intersects' has an unsupported return
type - provide %MethodCode and a C++ signature
/home/richard/git/qgisqt6/build/python/core/auto_generated/qgsspatialindex.sip:
line 159: column 5: 'QgsSpatialIndex::nearestNeighbor' has an unsupported
return type - provide %MethodCode and a C++ signature
/home/richard/git/qgisqt6/build/python/core/auto_generated/qgsspatialindex.sip:
line 179: column 5: 'QgsSpatialIndex::nearestNeighbor' has an unsupported
return type - provide %MethodCode and a C++ signature
/home/richard/git/qgisqt6/build/python/gui/auto_generated/attributetable/qgsattributetableview.sip:
line 63: column 5: 'QgsAttributeTableView::selectedFeaturesIds' has an
unsupported return type - provide %MethodCode and a C++ signature
ninja: build stopped: subcommand failed.
Regards & Thanks,
Richard Duivenvoorde
PS: slightly disappointed because QGIS looks exactly the same in qt6 :-) Was
hoping that... don't know, would look very shiny now ;-)
On 1/27/24 12:42, Even Rouault wrote:
Richard,
There's something weird with your installation. According to
https://salsa.debian.org/qt-kde-team/extras/qwt/-/blob/debian/master/src/qwt_plot_layout.h?ref_type=heads#L84,
this should be
|constQRectF& plotRect, Options options = Options());|
According to
https://packages.debian.org/experimental/amd64/libqwt-headers/filelist , this
file is provided by the libqwt-header package. Check that it is at version
6.2.0-1
The version you have is presumably 6.1.4-2:
https://salsa.debian.org/qt-kde-team/extras/qwt/-/blob/debian/6.1.4-2/src/qwt_plot_layout.h?ref_type=tags#L84
Even
Le 27/01/2024 à 10:39, Richard Duivenvoorde via QGIS-Developer a écrit :
On 1/27/24 00:31, Nyall Dawson wrote:
Looks like you'll need https://github.com/qgis/QGIS/pull/56033 too.
Try removing that line for now.
Yep, thanks. Merged/fixed now apparently.
Next issue with qwt:
FAILED: src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o
...
In file included from
/home/richard/git/qgisqt6/src/gui/raster/qgsrasterhistogramwidget.cpp:45:
/usr/include/qwt/qwt_plot_layout.h:84:51: error: invalid conversion from ‘int’
to ‘QwtPlotLayout::Option’ [-fpermissive]
84 | const QRectF &plotRect, Options options = 0x00 );
| ^~~~
| |
| int
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:1401,
from /usr/include/x86_64-linux-gnu/qt6/QtGui/qtguiglobal.h:7,
from
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qtwidgetsglobal.h:7,
from
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qapplication.h:7,
from
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/QApplication:1,
from /home/richard/git/qgisqt6/src/core/qgsapplication.h:19,
from
/home/richard/git/qgisqt6/src/gui/raster/qgsrasterhistogramwidget.cpp:18:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qflags.h:74:45: note: initializing argument
1 of ‘constexpr QFlags<T>::QFlags(Enum) [with Enum = QwtPlotLayout::Option]’
74 | constexpr inline Q_IMPLICIT QFlags(Enum flags) noexcept :
i(Int(flags)) {}
| ~~~~~^~~~~
[344/2107] Building CXX object
src/gui/CMakeFiles/qgis_gui.dir/qgis_gui_autogen/mocs_compilation.cpp.o
Not sure if this has something to do with my qwt install from experimental/sid:
libqwt-qt6-6.2/now 6.2.0-1 amd64 [installed,local]
Qt widgets library for technical applications (runtime, qt6)
I think the version is more or less in line with my qt6 from testing/trixie?
pyqt6-dev/testing,now 6.6.1-2 all [installed]
development files for PyQt6
libqt6core6/testing,now 6.4.2+dfsg-21 amd64 [installed,automatic]
Qt 6 core module
Any hint to overcome this one?
Regards,
Richard Duivenvoorde
PS: let me know if this is totally not helpful, I'm just eager to know if
QGIS-qt6 is building (or I can make it build) on Debian testing/trixie
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer