[PyKDE] Qt 3.0.4 and PyQt-3.2.4 install trouble
Hi, just tried to install $subject. While building Qt and PyQt was successful, PyQt throws this error message on make install: /bin/sh ../mkinstalldirs /usr/lib/python2.1/site-packages /usr/bin/install -c -m 644 qt.py /usr/lib/python2.1/site-packages/qt.py make install-data-hook make[3]: Entering directory `/home/hp/Downloads/qt/PyQt-3.2.4/qt' (cd /tmp; PYTHONPATH=/usr/lib/python2.1/site-packages:/usr/lib/python2.1/site-packages /usr/bin/python -c "import qt") Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.1/site-packages/qt.py", line 49, in ? import libqtc ImportError: /usr/lib/python2.1/site-packages/libqtcmodule.so: undefined symbol: static_QUType_ptr while objdump says, it exists: objdump -t /usr/lib/python2.1/site-packages/libqtcmodule.so | grep static_QUType_ptr *UND* static_QUType_ptr I haven't seen this one before. Any ideas? To be sure, I removed all sip and qt rudiments from site-packages and tried again, with the same results. I'm puzzled :-( /usr/lib/python2.1/site-packages: -rw-r--r--1 root root91470 8. Jun 21:43 qt.pyc -rwxr-xr-x1 root root 7513152 8. Jun 21:43 libqtcmodule-3.2.4.so* -rwxr-xr-x1 root root 910 8. Jun 21:43 libqtcmodule.la* lrwxrwxrwx1 root root 21 8. Jun 21:43 libqtcmodule.so -> libqtcmodule-3.2.4.so* -rw-r--r--1 root root21518 8. Jun 21:43 qt.py -rwxr-xr-x1 root root 769 8. Jun 21:11 libsip.la* lrwxrwxrwx1 root root 15 8. Jun 21:11 libsip.so -> libsip.so.9.0.3* lrwxrwxrwx1 root root 15 8. Jun 21:11 libsip.so.9 -> libsip.so.9.0.3* -rwxr-xr-x1 root root 159003 8. Jun 21:11 libsip.so.9.0.3* System: SuSE 7.3 Above is running in a shell with: export QTDIR=/usr/lib/qt3 export LD_LIBRARY_PATH=$QTDIR/lib Any help highly appreciated. TIA, Hans-Peter ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Qt 3.0.4 and PyQt-3.2.4 install trouble
On Saturday 08 June 2002 8:49 pm, Hans-Peter Jansen wrote: > Hi, > > just tried to install $subject. While building Qt and PyQt was successful, > PyQt throws this error message on make install: > > /bin/sh ../mkinstalldirs /usr/lib/python2.1/site-packages > /usr/bin/install -c -m 644 qt.py /usr/lib/python2.1/site-packages/qt.py > make install-data-hook > make[3]: Entering directory `/home/hp/Downloads/qt/PyQt-3.2.4/qt' > (cd /tmp; > PYTHONPATH=/usr/lib/python2.1/site-packages:/usr/lib/python2.1/site-package >s /usr/bin/python -c "import qt") > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.1/site-packages/qt.py", line 49, in ? > import libqtc > ImportError: /usr/lib/python2.1/site-packages/libqtcmodule.so: undefined > symbol: static_QUType_ptr Hi Although my error message was different, I think I had the same problem. PyQt has been linked against an old version of Qt, to confirm this do ldd /usr/lib/python2.1/site-packages/libqtcmodule.so ; If you see a different version of Qt than what you thought you had linked against, then you have the same problem. Although I had $QTDIR correct in the shell I did ./configure ; make ; in I then did su ; make install ; and my /root/.bashrc exported the wrong $QTDIR. Even after I had changed this no amount of make uninstall ; make install ; would make things better. Here is the list of things I did before I got things working. 1)Delete all PyQt and sip files from /usr/lib/python2.1/site-packages/ including eric/ . 2)If you have ever installed a version of sip less than 3.1 there will be files in /usr/local/lib and /usr/local/include , get rid of these, there is also a file in /usr/local/bin , I got rid of this as well, but it is not mentioned in the sip README file. 3)The PyQt README file mentions version prior to 2.0, but I don't know where they installed. 4)chmod 000 the old version of Qt that was causing problems. Remember that software using it wont work. 5)Delete the source trees of PyQt and sip, assuming you built in the source tree, and create them again from the original .tar.gz files. 6)Start all over again but this time using ./configure --with-qt-dir=$QTDIR ; for both sip and PyQT. I doubt all of this was necessary, but PyQt takes such a long time to compile I was taking no chances. I hope this is usefull to you. It would be good if someone could tell me at what point Qt is linked to, and how it is decided which Qt to link to? I notice that make install ; uses libtool . Joe Jones [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Qt 3.0.4 and PyQt-3.2.4 install trouble
Joe Jones wrote: > It would be good if someone could tell me at what point Qt is linked to, and > how it is decided which Qt to link to? I notice that make install ; uses > libtool . Assuming you don't use the options to ./configure to override individual Qt components then --with-qt-dir is used if specified, then $QTDIR is used if specified, finally a search for every Qt version is made through a number of directories. The latter is probably rarely needed. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Qt 3.0.4 and PyQt-3.2.4 install trouble
On Sat, 8 Jun 2002, Hans-Peter Jansen wrote: > Hi, > > just tried to install $subject. While building Qt and PyQt was successful, > PyQt throws this error message on make install: > > /bin/sh ../mkinstalldirs /usr/lib/python2.1/site-packages > /usr/bin/install -c -m 644 qt.py /usr/lib/python2.1/site-packages/qt.py > make install-data-hook > make[3]: Entering directory `/home/hp/Downloads/qt/PyQt-3.2.4/qt' > (cd /tmp; >PYTHONPATH=/usr/lib/python2.1/site-packages:/usr/lib/python2.1/site-packages > /usr/bin/python -c "import qt") > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.1/site-packages/qt.py", line 49, in ? > import libqtc > ImportError: /usr/lib/python2.1/site-packages/libqtcmodule.so: undefined symbol: > static_QUType_ptr > > while objdump says, it exists: > > objdump -t /usr/lib/python2.1/site-packages/libqtcmodule.so | grep static_QUType_ptr > *UND* static_QUType_ptr > > I haven't seen this one before. Any ideas? To be sure, I removed all sip and qt > rudiments from site-packages and tried again, with the same results. > I'm puzzled :-( gingercat% /usr/gcc-3.1/bin/c++filt static_QUType_ptr short gingercat% Oddly enough, this only demangles when I use gcc 3.1. Perhaps you're trying to link libraries built by different C++ compilers ? Anyway, looks like you've got a compatibility issue of sorts, perhaps a shared library conflict, or something. I'd try running ldd and looking for obvious red flags (such as attempts to link to two different versions of the same library) in the output. Cheers, -- Donovan ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Qt 3.0.4 and PyQt-3.2.4 install trouble
Hi Joe, hi Donovan, thanks for your answers. They pushed me in the right direction. Let me resume, that, if you get strange build errors like mine or Joe's, clean up your environment: check $QTDIR for root and your build account > 1)Delete all PyQt and sip files from /usr/lib/python2.1/site-packages/ > including eric/ . > 2)If you have ever installed a version of sip less than 3.1 there will be > files in /usr/local/lib and /usr/local/include , get rid of these, there is > also a file in /usr/local/bin , I got rid of this as well, but it is not > mentioned in the sip README file. > 3)The PyQt README file mentions version prior to 2.0, but I don't know where > they installed. > 4)chmod 000 the old version of Qt that was causing problems. Remember that > software using it wont work. > 5)Delete the source trees of PyQt and sip, assuming you built in the source > tree, and create them again from the original .tar.gz files. > 6)Start all over again but this time using ./configure --with-qt-dir=$QTDIR ; > for both sip and PyQT. I've done 1, 2, 5 before. 3 and 4 seems not to matter here. 6 was the one, which solved $subject for me, although ldd /usr/lib/python2.1/site-packages/libqtcmodule.so linked to the correct version via some symlink levels: libqt-mt.so.2 => /usr/lib/libqt-mt.so.2 /usr/lib/libqt-mt.so.2 -> qt2/lib/libqt-mt.so.2 /usr/lib/qt2/lib/libqt-mt.so.2 -> libqt-mt.so.2.3.1 -rwxr-xr-x1 root root 5567532 24. Sep 2001 /usr/lib/qt2/lib/libqt-mt.so.2.3.1 Self compiled KDE 2.2.2 is running fine with it, btw... > I doubt all of this was necessary, but PyQt takes such a long time to compile > I was taking no chances. > > I hope this is usefull to you. Indeed, it was. Thanks again. > It would be good if someone could tell me at what point Qt is linked to, and > how it is decided which Qt to link to? I notice that make install ; uses > libtool . I assume, gcc and/or build tools gets confused somehow with deeply symlinked libs. Some questions remain: PyQt links against /usr/lib/qt3/lib/libqt-mt.so.3 What are the tradeoffs of the multithread option. Should I rebuild without? Is this the source of the "Mutex destroy failure: Device or resource busy" errors with examples/desktop.py? I tried to port examples/table.py, but besides of including qttable, it seem to be QTableView is missing, isn't it? Cheers, Hans-Peter ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde