Opened 4 years ago

Closed 4 years ago

#61946 closed defect (fixed)

mlt @6.10.0: error: invalid use of incomplete type 'QPainterPath'

Reported by: ShadSterling (Shad Sterling) Owned by: ddennedy (Dan Dennedy)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: RJVB (René Bertin)
Port: mlt

Description

:info:build producer_qtext.cpp:41:2: warning: deleting pointer to incomplete type 'QPainterPath' may cause undefined behavior [-Wdelete-incomplete]
:info:build         delete static_cast<QPainterPath*>( qpath );
:info:build         ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build producer_qtext.cpp:142:11: error: invalid use of incomplete type 'QPainterPath'
:info:build         *qPath = QPainterPath();
:info:build                  ^~~~~~~~~~~~~~
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build producer_qtext.cpp:143:7: error: member access into incomplete type 'QPainterPath'
:info:build         qPath->setFillRule(Qt::WindingFill);
:info:build              ^
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build producer_qtext.cpp:196:8: error: member access into incomplete type 'QPainterPath'
:info:build                 qPath->addText( x, y, font, line );
:info:build                      ^
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build producer_qtext.cpp:358:33: error: allocation of incomplete type 'QPainterPath'
:info:build                 QPainterPath* framePath = new QPainterPath( *prodPath );
:info:build                                               ^~~~~~~~~~~~
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build producer_qtext.cpp:487:83: error: allocation of incomplete type 'QPainterPath'
:info:build                 mlt_properties_set_data( producer_properties, "_qpath", static_cast<void*>( new QPainterPath() ), 0, close_qpath, NULL );
:info:build                                                                                                 ^~~~~~~~~~~~
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build graph.cpp:156:15: error: variable has incomplete type 'QPainterPath'
:info:build         QPainterPath curvePath;
:info:build                      ^
:info:build /opt/local/libexec/qt5/include/QtGui/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
:info:build class QPainterPath;
:info:build       ^
:info:build 1 warning and 5 errors generated.

This came up in reinstalling everything after moving to Big Sur, mlt is not requested.

Attachments (1)

main.log (183.9 KB) - added by ShadSterling (Shad Sterling) 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:2 Changed 4 years ago by kencu (Ken)

Cc: RJVB added; dbevans removed
Keywords: bigsur removed
Owner: set to ddennedy
Status: newassigned

comment:4 Changed 4 years ago by kencu (Ken)

Summary: mlt build fails on big sur due to incomplete type 'QPainterPath'mlt @6.10.0: error: invalid use of incomplete type 'QPainterPath'

comment:5 Changed 4 years ago by ddennedy (Dan Dennedy)

Should be fixed in pull request https://github.com/macports/macports-ports/pull/9577 I was able to build and test with Qt 5.15.2 on my macOS 10.14 machine, but my only Big Sur machine at the moment is M1, for which qt5 ports fail on icu dependency.

comment:6 Changed 4 years ago by ddennedy (Dan Dennedy)

Resolution: fixed
Status: assignedclosed

In 6f337f07d245abdebf249c01b0642c0647db31aa/macports-ports (master):

mlt: update to 6.24.0

fixes #61946

Note: See TracTickets for help on using tickets.