Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732732 - app-misc/zygrib-8.0.1-r1 w/ Qt 5.15: IacPlot.cpp:275:20: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
Summary: app-misc/zygrib-8.0.1-r1 w/ Qt 5.15: IacPlot.cpp:275:20: error: aggregate ‘QP...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qt-5.15
  Show dependency tree
 
Reported: 2020-07-15 12:18 UTC by Andreas Sturmlechner
Modified: 2020-07-15 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (app-misc:zygrib-8.0.1-r1:20200715-121411.log,131.54 KB, text/x-log)
2020-07-15 12:18 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2020-07-15 12:18:08 UTC
Created attachment 649300 [details]
build.log

The usual stuff.


IacPlot.cpp: In member function ‘void IacPlot::drawIacLine(std::vector<IAC_Point*>&, bool, QPainter&, Projection*)’:
IacPlot.cpp:275:20: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
  275 |       QPainterPath path;
      |                    ^~~~
IacPlot.cpp: In member function ‘void IacPlot::makeBezierPath(QPainterPath&, std::vector<IAC_Point*>&, double, Projection*)’:
IacPlot.cpp:296:2: error: invalid use of incomplete type ‘class QPainterPath’
  296 |  path.moveTo(mi1,mj1); // start = middle of first segment
      |  ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
IacPlot.cpp:307:3: error: invalid use of incomplete type ‘class QPainterPath’
  307 |   path.cubicTo(i1,j1, i1,j1, mi2,mj2);
      |   ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
IacPlot.cpp:325:3: error: invalid use of incomplete type ‘class QPainterPath’
  325 |   path.cubicTo(i1,j1, i1,j1, mi2,mj2);
      |   ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
IacPlot.cpp:333:3: error: invalid use of incomplete type ‘class QPainterPath’
  333 |   path.moveTo(i0, j0);
      |   ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
IacPlot.cpp:334:3: error: invalid use of incomplete type ‘class QPainterPath’
  334 |   path.lineTo(mi1,mj1);
      |   ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
IacPlot.cpp:340:3: error: invalid use of incomplete type ‘class QPainterPath’
  340 |   path.moveTo(mi1,mj1);
      |   ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
IacPlot.cpp:341:3: error: invalid use of incomplete type ‘class QPainterPath’
  341 |   path.lineTo(i1, j1);
      |   ^~~~
In file included from /usr/include/qt5/QtGui/qtransform.h:43,
                 from /usr/include/qt5/QtGui/qimage.h:48,
                 from /usr/include/qt5/QtGui/qpixmap.h:49,
                 from /usr/include/qt5/QtGui/qpainter.h:48,
                 from /usr/include/qt5/QtGui/QPainter:1,
                 from IacPlot.h:32,
                 from IacPlot.cpp:19:
/usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
make[1]: *** [Makefile:2635: objs/IacPlot.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/app-misc/zygrib-8.0.1-r1/work/zyGrib-8.0.1/src'
make: *** [Makefile:40: zyGrib] Error 2
Comment 1 Larry the Git Cow gentoo-dev 2020-07-15 12:28:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c2e2f64bd3905ce43a55f96a497e95e74f9ca2c

commit 4c2e2f64bd3905ce43a55f96a497e95e74f9ca2c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-15 12:23:29 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-15 12:28:04 +0000

    app-misc/zygrib: Fix build with Qt 5.15
    
    Closes: https://bugs.gentoo.org/732732
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-misc/zygrib/files/zygrib-8.0.1-qt-5.15.patch | 38 ++++++++++++++++++++++++
 app-misc/zygrib/zygrib-8.0.1-r1.ebuild           |  1 +
 2 files changed, 39 insertions(+)