[PyQt] [Help] PyQt building issue

Diego Casella ([Po]lentino) polentino911 at gmail.com
Fri Oct 9 08:01:22 BST 2009


Hi,
I'm in trouble with building PyQt ( 20091007 snapshot version ) with both
SIP4.6 stable and the development version;
this is what it shows:

/default -I/opt/qt4/include/QtCore -I/opt/qt4/include -I/usr/X11R6/include
-o sipQtCoreQResource.o sipQtCoreQResource.cpp
In file included from sip/QtCore/qresource.sip:39:
/opt/qt4/include/QtCore/qscopedpointer.h: In copy constructor
'QResource::QResource(const QResource&)':
/opt/qt4/include/QtCore/qscopedpointer.h:180: error: 'QScopedPointer<T,
Cleanup>::QScopedPointer(const QScopedPointer<T, Cleanup>&) [with T =
QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]' is
private
/opt/qt4/include/QtCore/qresource.h:59: error: within this context
sipQtCoreQResource.cpp: In constructor 'sipQResource::sipQResource(const
QResource&)':
sipQtCoreQResource.cpp:78: note: synthesized method
'QResource::QResource(const QResource&)' first required here
In file included from /opt/qt4/include/QtCore/qdatastream.h:45,
                 from /opt/qt4/include/QtCore/qmetatype.h:49,
                 from /opt/qt4/include/QtCore/QMetaType:1,
                 from sipAPIQtCore.h:40,
                 from sipQtCoreQResource.cpp:34:
/opt/qt4/include/QtCore/qscopedpointer.h: In static member function 'static
void QScopedPointerDeleter<T>::cleanup(T*) [with T = QResourcePrivate]':
/opt/qt4/include/QtCore/qscopedpointer.h:100:   instantiated from
'QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QResourcePrivate,
Cleanup = QScopedPointerDeleter<QResourcePrivate>]'
/opt/qt4/include/QtCore/qresource.h:59:   instantiated from here
/opt/qt4/include/QtCore/qscopedpointer.h:59: error: invalid application of
'sizeof' to incomplete type 'QResourcePrivate'
/opt/qt4/include/QtCore/qscopedpointer.h:59: error: creating array with
negative size ('-0x00000000000000001')
/opt/qt4/include/QtCore/qscopedpointer.h:62: warning: possible problem
detected in invocation of delete operator:
/opt/qt4/include/QtCore/qscopedpointer.h:54: warning: 'pointer' has
incomplete type
/opt/qt4/include/QtCore/qresource.h:56: warning: forward declaration of
'struct QResourcePrivate'
/opt/qt4/include/QtCore/qscopedpointer.h:62: note: neither the destructor
nor the class-specific operator delete will be called, even if they are
declared when the class is defined.
make[1]: *** [sipQtCoreQResource.o] Error 1
make[1]: Leaving directory
`/home/polentino/svn-kde/PyQt-x11-gpl-4.6.1-snapshot-20091007/QtCore'
make: *** [all] Error 2



Any ideas?
Cheers,

Diego.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091009/56d028ba/attachment.html


More information about the PyQt mailing list