[PyKDE] Help needed with SIP

Gerard Vermeulen gvermeul at labs.polycnrs-gre.fr
Sat Jun 9 11:53:23 BST 2001


Try to add something like -L$(PYTHON_SITE) -lqtcmodule to your linker flags,
where PYTHONSIDE=path_to_your_qtcmodule
(at least I have to do that on Mandrake-7.2)

So presumably:

LDFLAGS = -L/usr/local/lib -L/usr/lib/qt-2.2.4/lib -lsip -lqt
-L/usr/local/python2.1 -lqtcmodule -L/usr/X11R6/lib -lSM -lICE -lX11

If that does not work look at http://gerard.vermeulen.free.fr in
PyQwt*.tar.bz2 :-)

Gerard


On Saturday 09 June 2001 00:49, Kaercher, Joerg wrote:
> Hi,
>
> I want to use SIP to create Python bindings to a sample C++ Qt class I have
> written, but whenever I try to import the module in Python I get the
> following error message:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "b.py", line 6, in ?
>     import libbc
> ImportError: /usr/local/lib/python2.1/site-packages/libbcmodule.so:
> undefined symbol: sipName_qt_destroyed
>
> Any help is appreciated.
>
> Joerg
>




More information about the PyQt mailing list