<div class="gmail_quote">On Mon, Apr 20, 2009 at 2:54 PM, Phil Thompson <span dir="ltr">&lt;<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 20 Apr 2009 08:22:54 +0200, Simon Edwards &lt;<a href="mailto:simon@simonzone.com">simon@simonzone.com</a>&gt;<br>
<div><div></div><div class="h5">wrote:<br>
&gt; Phil Thompson wrote:<br>
&gt;&gt; On Sun, 19 Apr 2009 21:39:29 +0200, Simon Edwards &lt;<a href="mailto:simon@simonzone.com">simon@simonzone.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt; Phil Thompson wrote:<br>
&gt;&gt;&gt;&gt; sipForceConvertTo_*() (and related functions) are internal and should<br>
&gt;&gt; not<br>
&gt;&gt;&gt;&gt; be used by handwritten code. If it isn&#39;t documented then you can&#39;t use<br>
&gt;&gt;&gt;&gt; it.<br>
&gt;&gt;&gt; Thanks that helps a lot.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Another question. 4.8 gives errors on PyKDE related it trying to use a<br>
&gt;&gt;&gt; copy constructor or operator=() on some classes which don&#39;t have one or<br>
<br>
&gt;&gt;&gt; have one which is private. It looks like SIP wants to use the copy<br>
&gt;&gt;&gt; constructor to copy a returned value from a method and then fails. Has<br>
&gt;&gt;&gt; anything changed? Have you got any tips about what I should be trying.<br>
&gt;&gt;<br>
&gt;&gt; If a copy ctor is private then SIP should be told about it - see<br>
&gt;&gt; qobject.sip.<br>
&gt;<br>
&gt; The copy ctor is included and private like many others. This might be a<br>
&gt; namespace related issue. Here is what I&#39;ve got. It worked in SIP &lt; 4.8.<br>
&gt;<br>
&gt; class KEditListBox : QGroupBox<br>
&gt; {<br>
&gt; public:<br>
&gt;      class CustomEditor<br>
&gt;      {<br>
&gt;      public:<br>
&gt;          CustomEditor ();<br>
&gt;          CustomEditor (QWidget* repWidget, KLineEdit* edit);<br>
&gt;          CustomEditor (KComboBox* combo);<br>
&gt;<br>
&gt;      private:<br>
&gt;          CustomEditor (const KEditListBox::CustomEditor&amp;);<br>
&gt;      };<br>
&gt; // ...<br>
&gt; };<br>
&gt;<br>
&gt;<br>
&gt; class KUrlRequester : KHBox<br>
&gt; {<br>
&gt; // ...<br>
&gt; public:<br>
&gt;      explicit KUrlRequester (QWidget* parent /TransferThis/ = 0);<br>
&gt;      explicit KUrlRequester (const KUrl&amp; url, QWidget* parent<br>
&gt; /TransferThis/ = 0);<br>
&gt;      KUrlRequester (QWidget* editWidget, QWidget* parent /TransferThis/);<br>
&gt;<br>
&gt;      const KEditListBox::CustomEditor&amp;  customEditor ();<br>
&gt; //  ^ This here fails.<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; /home/sbe/devel/kdesvninstall/include/keditlistbox.h: In function<br>
&gt; ‘PyObject* meth_KUrlRequester_customEditor(PyObject*, PyObject*)’:<br>
&gt; /home/sbe/devel/kdesvninstall/include/keditlistbox.h:77: error:<br>
&gt; ‘KEditListBox::CustomEditor::CustomEditor(const<br>
&gt; KEditListBox::CustomEditor&amp;)’ is private<br>
&gt; sipkiopart5.cpp:22797: error: within this context<br>
<br>
</div></div>Try tonight&#39;s SIP snapshot. It&#39;s a problem with the new implicit copying of<br>
const reference results.<br>
</blockquote><div><br>This morning I checkout out pykde revision 959021 and tried to build it against kde-4.2.2 and the most recent SIP/PyQt4 snapshots. qhostinfo.h can not be found during make, but the file is present on my system in both /usr/include/qt4/QtNetwork/ and /usr/include/qt4/Qt/. Is it possible to build pykde with the riverbank snapshots and kde-4.2.2? Could anyone please advise?<br>
<br>Thanks,<br>Darren<br><br>$ make     <br>make[1]: Entering directory `/usr/local/src/pykde4/kdecore&#39;<br>make[1]: Nothing to be done for `all&#39;.                     <br>make[1]: Leaving directory `/usr/local/src/pykde4/kdecore&#39; <br>
make[1]: Entering directory `/usr/local/src/pykde4/solid&#39;  <br>make[1]: Nothing to be done for `all&#39;.                     <br>make[1]: Leaving directory `/usr/local/src/pykde4/solid&#39;   <br>make[1]: Entering directory `/usr/local/src/pykde4/kdeui&#39;  <br>
make[1]: Nothing to be done for `all&#39;.                     <br>make[1]: Leaving directory `/usr/local/src/pykde4/kdeui&#39;   <br>make[1]: Entering directory `/usr/local/src/pykde4/kio&#39;    <br>g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -march=k8 -mtune=k8 -pipe -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/usr/local/src/pykde4/extra/kde422 -I/usr/include -I/usr/include/qt4 -I/usr/include/QtCore -I/usr/include/qt4/QtCore -I/usr/include/QtGui -I/usr/include/qt4/QtGui -I/usr/include/QtXml -I/usr/include/qt4/QtXml -I/usr/include/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/solid -I/usr/include/qt4/solid -I/usr/include/kio -I/usr/include/qt4/kio -I/usr/include/kfile -I/usr/include/qt4/kfile -I/usr/include/kssl -I/usr/include/qt4/kssl -I/usr/include/python2.6 -I/usr/share/qt4/mkspecs/default -I/usr/X11R6/include -o sipkiopart0.o sipkiopart0.cpp                                            <br>
In file included from sipkiopart0.cpp:7:                                                     <br>sipAPIkio.h:6417:1: warning: &quot;sipType_QList_27000600QPair_0100QString_0100QString&quot; redefined <br>sipAPIkio.h:5668:1: warning: this is the location of the previous definition                 <br>
sipAPIkio.h:6683:1: warning: &quot;sipType_QList_27000600QPair_0100QString_0100QString&quot; redefined <br>sipAPIkio.h:6417:1: warning: this is the location of the previous definition                 <br>sipAPIkio.h:6689:1: warning: &quot;sipType_QList_27000600QPair_0100QByteArray_0100QByteArray&quot; redefined                                                                                        <br>
sipAPIkio.h:6415:1: warning: this is the location of the previous definition                 <br>sipAPIkio.h:10427:1: warning: &quot;sipType_QList_27000600QPair_0100QString_0100QString&quot; redefined<br>sipAPIkio.h:6683:1: warning: this is the location of the previous definition                 <br>
/usr/share/sip/PyQt4/QtNetwork/qhostinfo.sip:42:23: error: qhostinfo.h: No such file or directory                                                                                         <br>make[1]: *** [sipkiopart0.o] Error 1                                                         <br>
make[1]: Leaving directory `/usr/local/src/pykde4/kio&#39;                                       <br>make: *** [all] Error 2<br></div></div><br>