[PyKDE] Re: Building PyQt4

m.gehling at gmx.de m.gehling at gmx.de
Tue Dec 6 20:11:32 GMT 2005


Douglas Soares de Andrade schrieb: 

> Hi all ! 
> 
> Im trying to build PyQt4 20051205 with 20051205 and im not having success.
> Here is the errors: 
> 
> sip/QtCore/qglobal.sip: In function 'int 
> convertTo_QUrl_FormattingOptions(PyObject*, void**, int*)':
> sip/QtCore/qglobal.sip:196: error: 'sipEnum_QUrl_FormattingOption' was not 
> declared in this scope
> sip/QtCore/qglobal.sip:205: error: 'sipEnum_QUrl_FormattingOption' was not 
> declared in this scope
> make[1]: ** [sipQtCoreQUrlFormattingOptions.o] Erro 1
> make[1]: Leaving directory 
> `/home/douglas/pacotes/pkg/gcc4/pyqt4/src/PyQt4-gpl-snapshot-20051205/QtCore'
> make: ** [all] Erro 2
> ==> ERROR: Build Failed.  Aborting... 
> 
> Anyone managed to build PyQt4 with the current snapshots ? 
> 

if you can't wait: 

 - Install sip snap 20051205 

 - Install pyqt snap 20051205 

1) in sip/QtCore/qbitarray.sip: comment out
QBitArray operator&(const QBitArray &, const QBitArray &);
QBitArray operator|(const QBitArray &, const QBitArray &);
QBitArray operator^(const QBitArray &, const QBitArray &); 

2) python configure.py -q /usr/share/qt4 -c -j 4 LIBDIR_QT=/usr/lib 

3) adding an include in
  sipQtCorepart2.cpp:  #include "sipQtCoreQEventLoop.h"
  sipQtGuipart1.cpp:  #include "sipQtGuiQStyle.h"
  sipQtGuipart2.cpp:  #include "sipQtGuiQFileDialog.h"
  sipQtGuipart3.cpp:  #include "sipQtGuiQDockWidget.h"
  sipQtGuipart3.cpp:  #include "sipQtGuiQAbstractPrintDialog.h" 

4) make
5) make install 

that works for me. 

gema




More information about the PyQt mailing list