[Pkg-deepin-devel] Bug#972354: deepin-screenshot: FTBFS with Qt 5.15: error: aggregate ‘QPainterPath rectPath’ has incomplete type and cannot be defined
Dmitry Shachnev
mitya57 at debian.org
Fri Oct 16 18:49:38 BST 2020
Source: deepin-screenshot
Version: 5.0.0-1
Severity: important
Tags: ftbfs
User: debian-qt-kde at lists.debian.org
Usertags: qt5.15
Control: block 972278 by -1
Dear Maintainer,
deepin-screenshot fails to build with Qt 5.15, currently available in
experimental.
After building a fixed version of dtkwidget (see #972155), I get this error:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void ShapesWidget::paintRect(QPainter&, FourPoints, int, ShapesWidget::ShapeBlurStatus, bool, bool)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1262:18: error: aggregate ‘QPainterPath rectPath’ has incomplete type and cannot be defined
1262 | QPainterPath rectPath;
| ^~~~~~~~
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void ShapesWidget::paintEllipse(QPainter&, FourPoints, int, ShapesWidget::ShapeBlurStatus, bool, bool)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1300:18: error: aggregate ‘QPainterPath ellipsePath’ has incomplete type and cannot be defined
1300 | QPainterPath ellipsePath;
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void ShapesWidget::paintArrow(QPainter&, QList<QPointF>, int, bool)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1328:26: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
1328 | QPainterPath path;
| ^~~~
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void ShapesWidget::paintLine(QPainter&, QList<QPointF>)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1346:18: error: aggregate ‘QPainterPath linePaths’ has incomplete type and cannot be defined
1346 | QPainterPath linePaths;
| ^~~~~~~~~
Adding #include <QPainterPath> should fix it.
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-deepin-devel/attachments/20201016/af18d91b/attachment.sig>
More information about the Pkg-deepin-devel
mailing list