<div dir="ltr">I installed the latest SIP snapshot (4.19.dev1610281521), but when I try to compile the latest PyQt5 snapshot, I get the following compilation error.  I found a reference to it possibly (though unlikely) being related to building on an old GCC (4.5, <a href="https://sourceforge.net/p/kmymoney2/bugs/401/">https://sourceforge.net/p/kmymoney2/bugs/401/</a>), but I'm currently on GCC 5.4.0.<div><br></div><div><div>In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qsurfaceformat.h:37:0,</div><div>                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QSurfaceFormat:1,</div><div>                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qopenglcontext.h:45,</div><div>                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QOpenGLContext:1,</div><div>                 from ../qpy/QtGui/qpyopengl_api.h:31,</div><div>                 from /home/lsimons/workspace/PyQt5_gpl-5.7.1.dev1611041415/sip/QtGui/qopenglshaderprogram.sip:332,</div><div>                 from sipQtGuiQVector0600QPair24000100QColor.cpp:24:</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qpair.h: In instantiation of ‘struct QPair<double, QColor>’:</div><div>sip/QtCore/qpycore_qvector.sip:304:48:   required from here</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qpair.h:85:8: error: ‘QPair<T1, T2>::second’ has incomplete type</div><div>     T2 second;</div><div>        ^</div><div>In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMetaType:1:0,</div><div>                 from sipAPIQtGui.h:33,</div><div>                 from sipQtGuiQVector0600QPair24000100QColor.cpp:24:</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:1: note: forward declaration of ‘class QColor’</div><div> QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)</div><div> ^</div><div>sip/QtCore/qpycore_qvector.sip: In function ‘PyObject* convertFrom_QVector_0600QPair_2400_0100QColor(void*, PyObject*)’:</div><div>sip/QtCore/qpycore_qvector.sip:151:41: error: invalid use of incomplete type ‘class QColor’</div><div>In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMetaType:1:0,</div><div>                 from sipAPIQtGui.h:33,</div><div>                 from sipQtGuiQVector0600QPair24000100QColor.cpp:24:</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:1: note: forward declaration of ‘class QColor’</div><div> QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)</div><div> ^</div><div>sip/QtCore/qpycore_qvector.sip:157:20: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]</div><div>sip/QtCore/qpycore_qvector.sip:151:17: warning: ‘s2’ has incomplete type</div><div>In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMetaType:1:0,</div><div>                 from sipAPIQtGui.h:33,</div><div>                 from sipQtGuiQVector0600QPair24000100QColor.cpp:24:</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:1: note: forward declaration of ‘class QColor’</div><div> QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)</div><div> ^</div><div>sip/QtCore/qpycore_qvector.sip:157:20: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined</div><div>In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1098:0,</div><div>                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:38,</div><div>                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMetaType:1,</div><div>                 from sipAPIQtGui.h:33,</div><div>                 from sipQtGuiQVector0600QPair24000100QColor.cpp:24:</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qtypeinfo.h: In instantiation of ‘class QTypeInfo<QColor>’:</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qtypeinfo.h:119:46:   required from ‘class QTypeInfoMerger<QPair<double, QColor>, double, QColor, double, double>’</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qpair.h:95:7:   required from ‘class QTypeInfo<QPair<double, QColor> >’</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:609:9:   required from ‘void QVector<T>::append(const T&) [with T = QPair<double, QColor>]’</div><div>sip/QtCore/qpycore_qvector.sip:304:49:   required from here</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qtypeinfo.h:58:26: error: invalid application of ‘sizeof’ to incomplete type ‘QColor’</div><div>         isLarge = (sizeof(T)>sizeof(void*)),</div><div>                          ^</div><div>/usr/include/x86_64-linux-gnu/qt5/QtCore/qtypeinfo.h:60:24: error: invalid application of ‘sizeof’ to incomplete type ‘QColor’</div><div>         sizeOf = sizeof(T)</div><div>                        ^</div><div>Makefile:1379: recipe for target 'sipQtGuiQVector0600QPair24000100QColor.o' failed</div><div>make[1]: *** [sipQtGuiQVector0600QPair24000100QColor.o] Error 1</div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 4, 2016 at 12:10 PM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3 Nov 2016, at 12:07 am, Louis Simons <<a href="mailto:lousimons@gmail.com" class="gmail_msg" target="_blank">lousimons@gmail.com</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> I've been teaching myself QML/QtQuick using the examples at <a href="https://github.com/baoboa/pyqt5/tree/master/examples/quick/tutorials/extending" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/baoboa/pyqt5/tree/master/examples/quick/tutorials/extending</a> which are based on the C++ tutorials.  Everything works up until chapter 5, where I get a segmentation fault.  I'm running Python3 on Linux Mint 18 with PyQt5 5.7 (built from source to get the latest).  Does this example work on anyone else's system with version 5.7?  The backtrace follows:<br class="gmail_msg">
<br class="gmail_msg">
It's a regression in PyQt v5.6 - shoul dbe fixed in tonight's snapshot.<br class="gmail_msg">
<br class="gmail_msg">
Thanks,<br class="gmail_msg">
Phil</blockquote></div>