[PyQt] Compiling PyKDE3

Hans-Peter Jansen hpj at urpla.net
Thu Nov 28 14:42:50 GMT 2013


Hi Phil,

I'm tackling the ingrate of generating the PyKDE3 bindings, and stumbled
across this issue:

[  317s] kfile/sipkfileKFileDetailView.cpp: In function 'PyObject* meth_KFileDetailView_selectionMode(PyObject*, PyObject*)':
[  317s] kfile/sipkfileKFileDetailView.cpp:8474:64: error: request for member 'selectionMode' is ambiguous
[  317s] In file included from /opt/kde3/include/kfiledetailview.h:31:0,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /opt/kde3/include/kfileview.h:219:34: note: candidates are: virtual KFile::SelectionMode KFileView::selectionMode() const
[  317s]      virtual KFile::SelectionMode selectionMode() const;
[  317s]                                   ^
[  317s] In file included from /opt/kde3/include/klistview.h:23:0,
[  317s]                  from /opt/kde3/include/kfiledetailview.h:28,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /usr/lib/qt3/include/qlistview.h:302:19: note:                 QListView::SelectionMode QListView::selectionMode() const
[  317s]      SelectionMode selectionMode() const;
[  317s]                    ^
[  317s] kfile/sipkfileKFileDetailView.cpp:8474:90: error: request for member 'selectionMode' is ambiguous
[  317s] In file included from /opt/kde3/include/kfiledetailview.h:31:0,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /opt/kde3/include/kfileview.h:219:34: note: candidates are: virtual KFile::SelectionMode KFileView::selectionMode() const
[  317s]      virtual KFile::SelectionMode selectionMode() const;
[  317s]                                   ^
[  317s] In file included from /opt/kde3/include/klistview.h:23:0,
[  317s]                  from /opt/kde3/include/kfiledetailview.h:28,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /usr/lib/qt3/include/qlistview.h:302:19: note:                 QListView::SelectionMode QListView::selectionMode() const
[  317s]      SelectionMode selectionMode() const;
[  317s]                    ^
[  317s] kfile/sipkfileKFileDetailView.cpp: In function 'PyObject* meth_KFileDetailView_clear(PyObject*, PyObject*)':
[  317s] kfile/sipkfileKFileDetailView.cpp:8769:55: error: request for member 'clear' is ambiguous
[  317s] In file included from /opt/kde3/include/kfiledetailview.h:31:0,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /opt/kde3/include/kfileview.h:146:18: note: candidates are: virtual void KFileView::clear()
[  317s]      virtual void clear();
[  317s]                   ^
[  317s] In file included from /opt/kde3/include/klistview.h:23:0,
[  317s]                  from /opt/kde3/include/kfiledetailview.h:28,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /usr/lib/qt3/include/qlistview.h:363:18: note:                 virtual void QListView::clear()
[  317s]      virtual void clear();
[  317s]                   ^
[  317s] kfile/sipkfileKFileDetailView.cpp:8769:73: error: request for member 'clear' is ambiguous
[  317s] In file included from /opt/kde3/include/kfiledetailview.h:31:0,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /opt/kde3/include/kfileview.h:146:18: note: candidates are: virtual void KFileView::clear()
[  317s]      virtual void clear();
[  317s]                   ^
[  317s] In file included from /opt/kde3/include/klistview.h:23:0,
[  317s]                  from /opt/kde3/include/kfiledetailview.h:28,
[  317s]                  from sip/kfile/kfiledetailview.sip:58:
[  317s] /usr/lib/qt3/include/qlistview.h:363:18: note:                 virtual void QListView::clear()
[  317s]      virtual void clear();
[  317s]                   ^


The question is, how do I tell sip to prefer one over the other?

Pete


More information about the PyQt mailing list