[PyKDE] Buling PyQt into Python: Errors
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Oct 20 17:14:05 BST 2004
>
> 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
More information about the PyQt
mailing list