[PyKDE] Buling PyQt into Python: Errors
Hihn, Jason
Jason.Hihn at verint.com
Wed Oct 20 17:24:00 BST 2004
Yes, that worked!
Now I just get them as unresolveds by the linker in the final step. I
think this comes from confusion in the first part of "Rebuilding
Python". When it says:
Edit Makefile.pre.in and add the macros PYQT_OBJS and PYQT_LIBS.
PYQT_OBJS contains the path names of all the object files that
were created when you built the static SIP and PyQt modules, ie. the
outputs of ls siplib/*.o and ls qt*/*.o from the SIP and PyQt source
directories respectively.
PYQT_LIBS contains the command line flags needed to link the
various Qt libraries. For example:
PYQT_LIBS= -L/usr/local/qt/lib -lqscintilla -lqassistantclient
-lqui - lqt-mt
Where it says "add the macros" I am assuming that PYQT_OBJS and
PYQT_LIBS are already defined and that I do not have to define them? But
I don't see where they are specified.
Thanks again!
> -----Original Message-----
> From: Phil Thompson [mailto:phil at riverbankcomputing.co.uk]
> Sent: Wednesday, October 20, 2004 11:14 AM
> To: Hihn, Jason
> Cc: pykde at mats.imk.fraunhofer.de
> Subject: Re: [PyKDE] Buling PyQt into Python: Errors
>
> >
> > I got through to the re-building on python part, and during the make
it
> > complains that the functions in the config.c lines that were added
(from
> > config.c.in) are calling undefined functions:
> >
> >
> >
> > Modules/config.c:81: `initqtcanvas' undeclared here (not in a
function)
> >
> > Modules/config.c:81: initializer element is not constant
> >
> > Modules/config.c:81: (near initialization for
> > `_PyImport_Inittab[18].initfunc')
> >
> > Modules/config.c:81: initializer element is not constant
> >
> > Modules/config.c:81: (near initialization for
`_PyImport_Inittab[18]')
> >
> > Modules/config.c:82: `initqtext' undeclared here (not in a function)
> >
> > Modules/config.c:82: initializer element is not constant
> >
> > Modules/config.c:82: (near initialization for
> > `_PyImport_Inittab[19].initfunc')
> >
> > Modules/config.c:82: initializer element is not constant
> >
> > Modules/config.c:82: (near initialization for
`_PyImport_Inittab[19]')
> >
> > Modules/config.c:83: `initqtgl' undeclared here (not in a function)
> >
> > Modules/config.c:83: initializer element is not constant
> >
> > Modules/config.c:83: (near initialization for
> > `_PyImport_Inittab[20].initfunc')
> >
> > Modules/config.c:83: initializer element is not constant
> >
> > Modules/config.c:83: (near initialization for
`_PyImport_Inittab[20]')
> >
> > Modules/config.c:84: `initqtnetwork' undeclared here (not in a
function)
> >
> > Modules/config.c:84: initializer element is not constant
> >
> > Modules/config.c:84: (near initialization for
> > `_PyImport_Inittab[21].initfunc')
> >
> > Modules/config.c:84: initializer element is not constant
> >
> > Modules/config.c:84: (near initialization for
`_PyImport_Inittab[21]')
> >
> > Modules/config.c:85: `initqtsql' undeclared here (not in a function)
> >
> > Modules/config.c:85: initializer element is not constant
> >
> > Modules/config.c:85: (near initialization for
> > `_PyImport_Inittab[22].initfunc')
> >
> > Modules/config.c:85: initializer element is not constant
> >
> > Modules/config.c:85: (near initialization for
`_PyImport_Inittab[22]')
> >
> > Modules/config.c:86: `initqttable' undeclared here (not in a
function)
> >
> > Modules/config.c:86: initializer element is not constant
> >
> > Modules/config.c:86: (near initialization for
> > `_PyImport_Inittab[23].initfunc')
> >
> > Modules/config.c:86: initializer element is not constant
> >
> > Modules/config.c:86: (near initialization for
`_PyImport_Inittab[23]')
> >
> > Modules/config.c:87: `initqtui' undeclared here (not in a function)
> >
> > Modules/config.c:87: initializer element is not constant
> >
> > Modules/config.c:87: (near initialization for
> > `_PyImport_Inittab[24].initfunc')
> >
> > Modules/config.c:87: initializer element is not constant
> >
> > Modules/config.c:87: (near initialization for
`_PyImport_Inittab[24]')
> >
> > Modules/config.c:88: `initqtxml' undeclared here (not in a function)
> >
> > Modules/config.c:88: initializer element is not constant
> >
> > Modules/config.c:88: (near initialization for
> > `_PyImport_Inittab[25].initfunc')
> >
> > Modules/config.c:88: initializer element is not constant
> >
> > Modules/config.c:88: (near initialization for
`_PyImport_Inittab[25]')
> >
> > Modules/config.c:91: initializer element is not constant
> >
> > Modules/config.c:91: (near initialization for
`_PyImport_Inittab[26]')
> >
> > make: *** [Modules/config.o] Error 1
> >
> >
> >
> > Can anyone enlighten me? Is there a step missing from the
instructions
> > (don't I need a #include?)
>
> There is definately a documentation bug. Try changing the function
> declarations to remove the trailing "c" from initqtcanvasc() etc. That
> should get it to compile. If it doesn't link then try putting the "c"
back
> (everywhere, including where they were missing). I can't remember off
the
> top of my head if the "c" should be there or not - you can check by
> looking at the generated code.
>
> Phil
>
__________________________________________________________________________________________
This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail. (1)
More information about the PyQt
mailing list