I'm trying to compile the latest snapshot of PyQt and got the compile error below.
I'm pulling Qt from the git repo, so I tried the 4.6 stable branch as well as a previous PyQt snapshot (from 8/21). 4.6 stable is dated 8/30. I think all combinations were tried but the failure is in the ScopedPointer stuff which is pretty new IIRC. It would be useful to know if PyQt is being tested against the Qt git repo and, if so, what checkin. Qt is a moving target so I realize there's trickiness. In the past, I've found that in a few days time either Qt or PyQt has found and fixed bugs like this. thanks, -glenn g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/mnt/hdb/sage/sage-4.1.1/tarbox/qt/PyQt/qpy/QtCore -I/mnt/hdb/sage/sage-4.1.1/local/include/python2.6 -I/mnt/hdb/sage/sage-4.1.1/local/mkspecs/default -I/mnt/hdb/sage/ age-4.1.1/local/include/QtCore -I/mnt/hdb/sage/sage-4.1.1/local/include -I/usr/X11R6/include -o sipQtCoreQSemaphore.o sipQtCoreQSemaphore.cpp g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/mnt/hdb/sage/sage-4.1.1/tarbox/qt/PyQt/qpy/QtCore -I/mnt/hdb/sage/sage-4.1.1/local/include/python2.6 -I/mnt/hdb/sage/sage-4.1.1/local/mkspecs/default -I/mnt/hdb/sage/ age-4.1.1/local/include/QtCore -I/mnt/hdb/sage/sage-4.1.1/local/include -I/usr/X11R6/include -o sipQtCoreQRunnable.o sipQtCoreQRunnable.cpp g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/mnt/hdb/sage/sage-4.1.1/tarbox/qt/PyQt/qpy/QtCore -I/mnt/hdb/sage/sage-4.1.1/local/include/python2.6 -I/mnt/hdb/sage/sage-4.1.1/local/mkspecs/default -I/mnt/hdb/sage/ age-4.1.1/local/include/QtCore -I/mnt/hdb/sage/sage-4.1.1/local/include -I/usr/X11R6/include -o sipQtCoreQResource.o sipQtCoreQResource.cpp /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h: In copy constructor ‘QResource::QResource(const QResource&)’: /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h:180: error: ‘QScopedPointer<T, Cleanup>::QScopedPointer(const QScopedPointer<T, Cleanup>&) [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]’ is private /mnt/hdb/sage/sage-4.1.1/local/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 /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h: In static member function ‘static void QScopedPointerDeleter<T>::cleanup(T*) [with T = QResourcePrivate]’: /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h:100: instantiated from ‘QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]’ /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qresource.h:59: instantiated from here /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h:59: error: invalid application of ‘sizeof’ to incomplete type ‘QResourcePrivate’ /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h:59: error: creating array with negative size (‘-0x00000000000000001’) /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h:62: warning: possible problem detected in invocation of delete operator: /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qscopedpointer.h:54: warning: ‘pointer’ has incomplete type /mnt/hdb/sage/sage-4.1.1/local/include/QtCore/qresource.h:56: warning: forward declaration of ‘struct QResourcePrivate’ /mnt/hdb/sage/sage-4.1.1/local/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 `/mnt/hdb/sage/sage-4.1.1/tarbox/qt/PyQt/QtCore' make: *** [all] Error 2 -- Glenn H. Tarbox, PhD || 206-274-6919 http://www.tarbox.org
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
