[PyKDE] PyQt on Mandrake 10.1 fails to compile after README patch

Phil Thompson phil at riverbankcomputing.co.uk
Fri Jan 14 23:35:30 GMT 2005


On Friday 14 January 2005 6:38 pm, Parzival wrote:
> On Friday 14 January 2005 11:49, Phil Thompson wrote:
> > On Friday 14 January 2005 5:20 pm, Parzival Herzog wrote:
>
> <<snip>>
>
> > > The newly built and installed PyQt would not work, giving
> > >
> > > Error: /usr/lib/python2.3/site-packages/qt.so: undefined symbol:
> > > _ZNK14QPlatinumStyle9classNameEv
>
> <<snip>>>
>
> > You shouldn't need to edit qconfig.h anymore. It was needed when PyQt's
> > build system didn't check for styles that had been built as plugins.
> > configure.py should tell which styles have been disabled.
>
> Phil, thanks, but I still don't know how to make all this work again.
>
> What then is the problem associated with the unresolved
> _ZNK14QPlatinumStyle9classNameEv ?

It's in a header file, but it's not in the corresponding library.

> As I said, after building and installing PyQt on mdk 10.1, pyqt scripts
> failed with that message, and I assumed that the README.Unix, which seemed
> to address this problem, and advised that fix was to edit qconfig.h
> applied.

I've now removed that file (README.Linux).

> In /usr/lib/python2.3/site-packages/sipconfig.py, it reads:
>
> _pkg_config = {
>     'default_bin_dir':  '/usr/bin',
>     'default_mod_dir':  '/usr/lib/python2.3/site-packages',
>     'default_sip_dir':  '/usr/share/sip',
>     'py_inc_dir':       '/usr/include/python2.3',
>     'py_lib_dir':       '/usr/lib/python2.3/config',
>     'py_version':       0x020304,
>     'qt_dir':           '/usr/lib/qt3/',
>     'qt_edition':       'free',
>     'qt_inc_dir':       '/usr/lib/qt3//include',
>     'qt_lib':           'qt-mt',
>     'qt_lib_dir':       '/usr/lib/qt3//lib',
>     'qt_threaded':      1,
>     'qt_version':       0x030102,
>     'qt_winconfig':     '',
>     'sip_bin':          '/usr/bin/sip',
>     'sip_inc_dir':      '/usr/include/python2.3',
>     'sip_mod_dir':      '/usr/lib/python2.3/site-packages',
>     'sip_version':      0x040001,
>     'sip_version_str':  '4.0.1'
> }
>
> There is a "sip.so" which was installed with the new pyqt build, and there
> is also a "libsip.so", which (I assume) came as a part of the Mandrake 10.1
> install, and links to "libsip.so.10.1.1". In fact there are a whole lot of
> libraries whose names start with "lib" that seem to be similar by name to
> what pyqt installs.
>
> Here is a listing of qt and sip related files in

This is all generated by SIP v3 - best to remove all of it.

Phil




More information about the PyQt mailing list