[PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)
Benjamin Reed
rangerrick at gmail.com
Wed Mar 22 17:59:36 GMT 2006
I'm trying to package kdebindings 3.5.2 for fink (against qt/x11), and
running into a compile error in pykde:
---(snip!)---
g++-4.0 -c -Wno-deprecated-declarations -pipe -fPIC -Os -Wall -W
-D__DARWIN_X11__ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-I/Users/ranger/tmp/kdebindings/kdebindings-3.5.2-new/python/pykde/../pykde/kparts
-I/Users/ranger/tmp/kdebindings/kdebindings-3.5.2-new/python/pykde/extra/kdecvs
-I/sw/include -I/sw/include/kio -I../kio -I/sw/include/kparts
-I/sw/lib/qt3/include
-I/Users/ranger/tmp/kdebindings/kdebindings-3.5.2-new/python/sip/siplib
-I/sw/include/python2.4 -I/usr/X11R6/include -o sipkpartspart0.o
/Users/ranger/tmp/kdebindings/kdebindings-3.5.2-new/python/pykde/../pykde/kparts/sipkpartspart0.cpp
sipkpartsKPartsEvent.h:43: error: expected class-name before '{' token
sipkpartsKPartsEvent.h:46: error: expected unqualified-id before '&' token
sipkpartsKPartsEvent.h:46: error: expected ',' or '...' before '&' token
sipkpartsKPartsEvent.h:46: error: ISO C++ forbids declaration of
'parameter' with no type
sipkpartsKPartsGUIActivateEvent.h:42: error: invalid use of undefined
type 'struct KParts::GUIActivateEvent'
/sw/include/kparts/part.h:49: error: forward declaration of 'struct
KParts::GUIActivateEvent'
sipkpartsKPartsPartSelectEvent.h:44: error: invalid use of undefined
type 'struct KParts::PartSelectEvent'
/sw/include/kparts/part.h:48: error: forward declaration of 'struct
KParts::PartSelectEvent'
sipkpartsKPartsPartActivateEvent.h:44: error: invalid use of undefined
type 'struct KParts::PartActivateEvent'
/sw/include/kparts/part.h:47: error: forward declaration of 'struct
KParts::PartActivateEvent'
sipkpartspart0.cpp: In constructor
'sipKParts_PartSelectEvent::sipKParts_PartSelectEvent(bool,
KParts::Part*, QWidget*)':
sipkpartspart0.cpp:22641: error: type 'class KParts::PartSelectEvent'
is not a direct base of 'sipKParts_PartSelectEvent'
sipkpartspart0.cpp: In constructor
'sipKParts_PartSelectEvent::sipKParts_PartSelectEvent(const
KParts::PartSelectEvent&)':
sipkpartspart0.cpp:22646: error: type 'class KParts::PartSelectEvent'
is not a direct base of 'sipKParts_PartSelectEvent'
sipkpartspart0.cpp: In member function 'const char*
sipKParts_PartSelectEvent::eventName() const':
sipkpartspart0.cpp:22666: error: cannot call member function 'virtual
const char* KParts::Event::eventName() const' without object
sipkpartspart0.cpp: In constructor
'sipKParts_PartActivateEvent::sipKParts_PartActivateEvent(bool,
KParts::Part*, QWidget*)':
sipkpartspart0.cpp:22888: error: type 'class
KParts::PartActivateEvent' is not a direct base of
'sipKParts_PartActivateEvent'
sipkpartspart0.cpp: In constructor
'sipKParts_PartActivateEvent::sipKParts_PartActivateEvent(const
KParts::PartActivateEvent&)':
sipkpartspart0.cpp:22893: error: type 'class
KParts::PartActivateEvent' is not a direct base of
'sipKParts_PartActivateEvent'
sipkpartspart0.cpp: In member function 'const char*
sipKParts_PartActivateEvent::eventName() const':
sipkpartspart0.cpp:22913: error: cannot call member function 'virtual
const char* KParts::Event::eventName() const' without object
sipkpartspart0.cpp: In constructor
'sipKParts_GUIActivateEvent::sipKParts_GUIActivateEvent(bool)':
sipkpartspart0.cpp:23135: error: type 'class KParts::GUIActivateEvent'
is not a direct base of 'sipKParts_GUIActivateEvent'
sipkpartspart0.cpp: In constructor
'sipKParts_GUIActivateEvent::sipKParts_GUIActivateEvent(const
KParts::GUIActivateEvent&)':
sipkpartspart0.cpp:23140: error: type 'class KParts::GUIActivateEvent'
is not a direct base of 'sipKParts_GUIActivateEvent'
sipkpartspart0.cpp: In member function 'const char*
sipKParts_GUIActivateEvent::eventName() const':
sipkpartspart0.cpp:23160: error: cannot call member function 'virtual
const char* KParts::Event::eventName() const' without object
sipkpartspart0.cpp: In member function 'int
sipKParts_BrowserExtension::sipEmit_popupMenu(PyObject*)':
sipkpartspart0.cpp:33837: warning: converting negative value
'-0x00000000000000001' to 'unsigned int'
sipkpartspart0.cpp:33856: warning: converting negative value
'-0x00000000000000001' to 'unsigned int'
sipkpartspart0.cpp:33875: warning: converting negative value
'-0x00000000000000001' to 'unsigned int'
sipkpartspart0.cpp: In constructor
'sipKParts_Event::sipKParts_Event(const char*)':
sipkpartspart0.cpp:34712: error: type 'class KParts::Event' is not a
direct base of 'sipKParts_Event'
sipkpartspart0.cpp: At global scope:
sipkpartspart0.cpp:34717: error: prototype for
'sipKParts_Event::sipKParts_Event(const KParts::Event&)' does not
match any in class 'sipKParts_Event'
sipkpartsKPartsEvent.h:58: error: candidates are:
sipKParts_Event::sipKParts_Event(const sipKParts_Event&)
sipkpartsKPartsEvent.h:46: error:
sipKParts_Event::sipKParts_Event(int)
sipkpartspart0.cpp:34712: error:
sipKParts_Event::sipKParts_Event(const char*)
sipkpartspart0.cpp: In constructor
'sipKParts_Event::sipKParts_Event(const KParts::Event&)':
sipkpartspart0.cpp:34717: error: type 'class KParts::Event' is not a
direct base of 'sipKParts_Event'
sipkpartspart0.cpp: In member function 'const char*
sipKParts_Event::eventName() const':
sipkpartspart0.cpp:34737: error: cannot call member function 'virtual
const char* KParts::Event::eventName() const' without object
sipkpartspart0.cpp: In function 'void* init_KParts_Event(sipWrapper*,
PyObject*, int*)':
sipkpartspart0.cpp:34862: error: no matching function for call to
'sipKParts_Event::sipKParts_Event(const KParts::Event&)'
sipkpartsKPartsEvent.h:58: note: candidates are:
sipKParts_Event::sipKParts_Event(const sipKParts_Event&)
sipkpartsKPartsEvent.h:46: note:
sipKParts_Event::sipKParts_Event(int)
sipkpartspart0.cpp:34712: note:
sipKParts_Event::sipKParts_Event(const char*)
make: *** [sipkpartspart0.o] Error 1
---(snip!)---
Since this is all a maze of generated code, I'm not really sure where
to look to find out what's going on. Any ideas?
More information about the PyQt
mailing list