[PyKDE] problem importing qt

Ulrich Berning berning at teuto.de
Thu Dec 5 02:47:01 GMT 2002


Markus Jais wrote:

>hello
>I have successfully (at least I think so) installed the latest
>snapshot (29th of November).
>I also have the latest sip snapshot, Qt 3.1.0, python 2.2.2
>on RedHat 7.3
>
>now my error:
>
>
>Python 2.2.2 (#1, Nov 22 2002, 23:34:23)
>[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>  
>
>>>>import qt
>>>>        
>>>>
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "/usr/local/lib/python2.2/site-packages/qt.py", line 39, in ?
>    import libqtc
>ImportError: /usr/local/lib/python2.2/site-packages/libqtcmodule.so:
>undefined symbol: metaObject__C16QAssistantClient
>
>
>
>any idea where something went wrong ?
>
>markus
>
>
>
>__________________________________________________________________
>
>Gesendet von Yahoo! Mail - http://mail.yahoo.de
>Weihnachts-Einkäufe ohne Stress! http://shopping.yahoo.de
>
>_______________________________________________
>PyKDE mailing list    PyKDE at mats.gmd.de
>http://mats.gmd.de/mailman/listinfo/pykde
>
>  
>
Hi,

I had the same problen. I guess you have configured Qt-3.1.0 with a 
prefix and
called 'make install' after building.

Installing Qt this way strips not only the executables and shared 
libraries, it also strips
the archive libraries (qmake is very buggy on install targets, it also 
strips html files and
other types of files).

This results in the unresolved symbol when linking.

The solution is to copy the (unstripped) archive libraries from the 
build directory to the
target directory by hand after installing.

Ulli


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20021205/15874777/attachment.html


More information about the PyQt mailing list