[PyKDE] Problem installing PyQt 3.5 with Qt 3.0.4...

Laurent Claustre claustre at esrf.fr
Mon Apr 14 13:13:00 BST 2003


I've got the same problem compiling on solaris 7 and 8, problem comes 
from the Python.h file which
include unistd.h where truncate is defined has truncate64 (POSIX Large 
Support).
To make PyQt working patch the your-sip-dir/siplib/sipQt.h file like that:
#include <Python.h>
#if defined(truncate)
# undef truncate
#endif
#include <qobject.h>
#include <sip.h>
 
Trollteck takes care  about all the  POSIX LFS redefinitions and does 
such an undef (e.g. your-qt-dir/src/kernel/qapplication_x11.cpp:6157)

If someone can propose a better way to patch this bug ?

Piel Jayce wrote:

> Piel Jayce wrote:
>
>>
>> Hi,
>>
>> I have to install PyQt 3.x on a Solaris 2.6 system...
>>
>> I have qt 3.0.4 installed.
>>
>> The only PyQt source archive I found was a PyQt 3.5... Then I 
>> installed Python 2.2.2 and sip 3.5. All works well.
>>
>> Using gcc 2.95 (the one used to compile python and sip), the 
>> installation of PyQt seems to work well, but, when trying to launch 
>> examples, I have the error :
>> ImportError: ld.so.1: python: fatal: relocation error: file
>> /usr/local/lib/python2.2/site-packages/libqtcmodule.so:symbol 
>> truncate64__7QStringUi: referenced symbol not found
>>
>> Can someone help me ?
>> Thanks.
>>
>
> Nop idea for this problem ?
> Do I need to upgrade qt to a newer version ?
>


-- 
	/===============================================================\
	|  Laurent Claustre               | eMail: claustre at esrf.fr     |
	|  BeamLine Instrument Software   | Phone: +33 (0)476 88 29 12  |
	|  Support Group  (BLISS)         | Fax  : +33 (0)476 88 25 42  |
	|  www.esrf.fr/computing/bliss    | Web  : www.esrf.fr          |
	|  Experiments        Division    | Central Building Room 150   |
	| ------------------------------------------------------------- |
	|            European Synchrotron Radiation Facility            |
	|   6 rue Jules Horowitz BP220 38042 Grenoble Cedex - France    |
	\===============================================================/





More information about the PyQt mailing list