Hi all,
I try to compile qtcontribs as usual on Linux Debian 11.
---------------------------
../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsScene.cpp:1219:92: error: invalid use of incomplete type ?class QPainterPath?
1219 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new QPainterPath( p->selectionArea() ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER ) );
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:47,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsScene.cpp:109:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ?class QPainterPath?
54 | class QPainterPath;
| ^~~~~~~~~~~~
../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsScene.cpp:1219:94: error: invalid use of incomplete type ?class QPainterPath?
1219 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new QPainterPath( p->selectionArea() ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER ) );
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:47,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsScene.cpp:109:
../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:705:132: error: invalid use of incomplete type ?class QPainterPath?
705 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new QPainterPath( p->mapFromScene( *hbqt_par_QPainterPath( 1 ) ) ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER ) );
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:83:
../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:705:134: error: invalid use of incomplete type ?class QPainterPath?
705 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new QPainterPath( p->mapFromScene( *hbqt_par_QPainterPath( 1 ) ) ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER ) );
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:83:
../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:768:130: error: invalid use of incomplete type ?class QPainterPath?
768 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new QPainterPath( p->mapToScene( *hbqt_par_QPainterPath( 1 ) ) ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER ) );
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:83:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ?class QPainterPath?
54 | class QPainterPath;
| ^~~~~~~~~~~~
../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:768:132: error: invalid use of incomplete type ?class QPainterPath?
768 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new QPainterPath( p->mapToScene( *hbqt_par_QPainterPath( 1 ) ) ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER ) );
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:83:
--------------------------
Did someone solve these errors?
Best regards
Claudia
Hi all,
Problem solved:
with qt 5.15 you have to include QPainterPath in several files.
Add:
#include <QtGui/QPainterPath>
in the include sections of
addons/hbqt/qtgui/qth/QGraphicsScene.qth
addons/hbqt/qtgui/qth/QGraphicsView.qth
addons/hbqt/qtgui/qth/QPainter.qth
addons/hbqt/qtgui/qth/QTransform.qth
So qtcontribs will compile.
Best regards
Claudia
Am Dienstag, 13. Dezember 2022, 11:26:19 CET schrieb Claudia Neumann:
> Hi all,
>
> I try to compile qtcontribs as usual on Linux Debian 11.´
>
> ---------------------------
> ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsScene.cpp:1219:92:
> error: invalid use of incomplete type ?class QPainterPath?
> 1219 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, new
> QPainterPath( p-
> >selectionArea() ), "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE
> >|
> HBQT_BIT_OWNER ) );
>
> | ^
>
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
> from
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:47, from
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1, from
> ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsScene.cpp:109:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward
> declaration of ? class QPainterPath?
> declaration of ? class QPainterPath?
> 54 | class QPainterPath;
>
> | ^~~~~~~~~~~~
>
> ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:768:132:
> error: invalid use of incomplete type ?class QPainterPath?
> 768 | hb_itemReturnRelease( hbqt_bindGetHbObject( NULL,
> new QPainterPath( p->mapToScene( *hbqt_par_QPainterPath( 1 ) ) ),
> "HB_QPAINTERPATH", hbqt_del_QPainterPath, HBQT_BIT_NONE | HBQT_BIT_OWNER )
> );
>
> | ^
>
> In file included from
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43, from
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48, from
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49, from
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48, from
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45, from
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1, from
> ../../../../../hbqt/.hbmk/linux/gcc-5113/hbqtgui/QGraphicsView.cpp:83:
> --------------------------
>
>
> Did someone solve these errors?
>
> Best regards
>
> Claudia
>
> --
> You received this message because you are subscribed to the Google Groups
> "QtContribs" group. To unsubscribe from this group and stop receiving
> emails from it, send an email to qtcontribs+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtcontribs/1810351.gsfBxVvl47%40mediondeb
> n.