Skip to contentSkip to conversation

python-pyqt compile error with latest org.openembedded.dev

DISCUSSION Tasslehoff Kjappfot 1 participant 2 messages May 5, 2010 – May 7, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.5784.1273038368.24517.openembedded-devel@lists.openembedded.org

#1 lore raw

I was told on #oe that I should have been a bit more verbose in my previous mail, and I agree :-)

I'm compiling Angstrom for the Beagleboard with the latest org.openembedded.dev, and python-pyqt fails. I took a closer look at the recipes for python-pyqt and python-sip, and they use old versions that don't match the Qt-version currently in use. I'm attempting to make it build with updated versions on my machine, but my recipe-fu isn't very good, so any help is appreciated.

Compilation output ===>

NOTE: make MAKEFLAGS=

cd QtCore/ && make -f Makefile

make[1]: Entering directory `/data/src/openembedded/build/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/python-pyqt-4.4.3-ml5/PyQt-x11-gpl-4.4.3/QtCore'

arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -c -pipe -isystem/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -isystem/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/share/qt4/mkspecs/linux-g++ -I. -I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore -I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtGui -I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4 -I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/Qt -I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/python2.6 -I. -o sipQtCoreQResource.o sipQtCoreQResource.cpp

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h: In copy constructor 'QResource::QResource(const QResource&)':

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:170: error: 'QScopedPointer<T, Cleanup>::QScopedPointer(const QScopedPointer<T, Cleanup>&) [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]' is private

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:59: error: within this context

sipQtCoreQResource.cpp: In constructor 'sipQResource::sipQResource(const QResource&)':

sipQtCoreQResource.cpp:84: note: synthesized method 'QResource::QResource(const QResource&)' first required here

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h: In member function 'QResource& QResource::operator=(const QResource&)':

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:170: error: 'QScopedPointer<T, Cleanup>& QScopedPointer<T, Cleanup>::operator=(const QScopedPointer<T, Cleanup>&) [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]' is private

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:59: error: within this context

sipQtCoreQResource.cpp: In function 'void assign_QResource(void*, const void*)':

sipQtCoreQResource.cpp:618: note: synthesized method 'QResource& QResource::operator=(const QResource&)' first required here

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h: In static member function 'static void QScopedPointerDeleter<T>::cleanup(T*) [with T = QResourcePrivate]':

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:100: instantiated from 'QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]'

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:59: instantiated from here

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:59: error: invalid application of 'sizeof' to incomplete type 'QResourcePrivate'

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:59: error: creating array with negative size ('-0x00000000000000001')

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:62: warning: possible problem detected in invocation of delete operator:

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:54: warning: 'pointer' has incomplete type

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:56: warning: forward declaration of 'struct QResourcePrivate'

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/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 `/data/src/openembedded/build/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/python-pyqt-4.4.3-ml5/PyQt-x11-gpl-4.4.3/QtCore'

make: *** [sub-QtCore-make_default] Error 2

FATAL: oe_runmake failed

#2 lore raw

Doesn't seem to be a lot of interest in this, and I stumbled across an old post about "End-of-life for PyQt-Embedded" ( http://lists.linuxtogo.org/pipermail/openembedded-devel/2007-August/002802.html). Was this the end of PyQt in OE? If so, should the recipes be removed?

What about PySide ( http://www.pyside.org/), Nokias own Python bindings for Qt? Is that something it would be interesting to have a recipe for? I've been trying to make one myself, but my OE skills haven't proven good enough.

Quoted 77 lines · Tasslehoff Kjappfot

I was told on #oe that I should have been a bit more verbose in my previous mail, and I agree :-)

I'm compiling Angstrom for the Beagleboard with the latest org.openembedded.dev, and python-pyqt fails. I took a closer look at the recipes for python-pyqt and python-sip, and they use old versions that don't match the Qt-version currently in use. I'm attempting to make it build with updated versions on my machine, but my recipe-fu isn't very good, so any help is appreciated.

Compilation output ===>

NOTE: make MAKEFLAGS=

cd QtCore/ && make -f Makefile

make[1]: Entering directory `/data/src/openembedded/build/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/python-pyqt-4.4.3-ml5/PyQt-x11-gpl-4.4.3/QtCore'

arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8

(quoted diff) +0 -16
-mfpu=neon -mfloat-abi=softfp -c -pipe 
-isystem/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include 
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 
-ggdb3 
-isystem/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include 
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 
-ggdb3 -fpermissive -fvisibility-inlines-hidden -Wall -W -D_REENTRANT 
-fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/share/qt4/mkspecs/linux-g++ 
-I. 
-I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore 
-I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtGui 
-I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4 
-I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/Qt 
-I/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/python2.6 
-I. -o sipQtCoreQResource.o sipQtCoreQResource.cpp

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h: In copy constructor 'QResource::QResource(const QResource&)':

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:170: error: 'QScopedPointer<T, Cleanup>::QScopedPointer(const QScopedPointer<T, Cleanup>&) [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]' is private

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:59: error: within this context

sipQtCoreQResource.cpp: In constructor 'sipQResource::sipQResource(const QResource&)':

sipQtCoreQResource.cpp:84: note: synthesized method 'QResource::QResource(const QResource&)' first required here

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h: In member function 'QResource& QResource::operator=(const QResource&)':

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:170: error: 'QScopedPointer<T, Cleanup>& QScopedPointer<T, Cleanup>::operator=(const QScopedPointer<T, Cleanup>&) [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]' is private

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:59: error: within this context

sipQtCoreQResource.cpp: In function 'void assign_QResource(void*, const void*)':

sipQtCoreQResource.cpp:618: note: synthesized method 'QResource& QResource::operator=(const QResource&)' first required here

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h: In static member function 'static void QScopedPointerDeleter<T>::cleanup(T*) [with T = QResourcePrivate]':

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:100: instantiated from 'QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]'

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:59: instantiated from here

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:59: error: invalid application of 'sizeof' to incomplete type 'QResourcePrivate'

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:59: error: creating array with negative size ('-0x00000000000000001')

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:62: warning: possible problem detected in invocation of delete operator:

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qscopedpointer.h:54: warning: 'pointer' has incomplete type

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/QtCore/qresource.h:56: warning: forward declaration of 'struct QResourcePrivate'

/data/src/openembedded/build/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/qt4/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 `/data/src/openembedded/build/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/python-pyqt-4.4.3-ml5/PyQt-x11-gpl-4.4.3/QtCore'

make: *** [sub-QtCore-make_default] Error 2

FATAL: oe_runmake failed