[PyKDE] Problem installing PyQt 3.5 with Qt 3.0.4...
phil at river-bank.demon.co.uk
Mon Apr 14 14:05:01 BST 2003
On Monday 14 April 2003 12:10 pm, Laurent Claustre wrote:
> 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
> To make PyQt working patch the your-sip-dir/siplib/sipQt.h file like that:
> #include <Python.h>
> #if defined(truncate)
> # undef truncate
> #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 ?
The current snapshots #include Python.h before stdio.h based on a previous
suggestion. I can't test it though.
More information about the PyQt