[PyQt] QVector*D related compile failure in current PyQt snapshots

Hans-Peter Jansen hpj at urpla.net
Tue Apr 12 13:42:30 BST 2011


Hi Phil,

there's a missing version conditional in qpyopengl_attribute_array.cpp 
resulting in compilation failures for certain Qt versions with current 
snapshots:

g++ -c -pipe -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fPIC -Wall 
-W -D_REENTRANT -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui 
-I/usr/include/QtOpenGL -I/usr/include -I/usr/include/python2.6 -I../../QtOpenGL 
-I. -I/usr/X11R6/include -I. -o qpyopengl_attribute_array.o 
qpyopengl_attribute_array.cpp

qpyopengl_attribute_array.cpp:35:21: error: QVector2D: No such file or 
directory
qpyopengl_attribute_array.cpp:36:21: error: QVector3D: No such file or 
directory
qpyopengl_attribute_array.cpp:37:21: error: QVector4D: No such file or 
directory
qpyopengl_attribute_array.cpp: In function 'const GLfloat* 
qpyopengl_attribute_array(PyObject*, PyObject*, PyObject*, int*, 
sipErrorState*)':
qpyopengl_attribute_array.cpp:113: error: 'sipType_QVector2D' was not 
declared in this scope
qpyopengl_attribute_array.cpp:118: error: 'sipType_QVector3D' was not 
declared in this scope
qpyopengl_attribute_array.cpp:123: error: 'sipType_QVector4D' was not 
declared in this scope
qpyopengl_attribute_array.cpp:171: error: 'sipType_QVector2D' was not 
declared in this scope

Build log for Qt v4.5.3:
https://build.opensuse.org/package/live_build_log?arch=i586&package=python-qt4&project=home%3Afrispete%3APyQt-next&repository=openSUSE_11.2

Build log for Qt v4.4.3:
https://build.opensuse.org/package/live_build_log?arch=i586&package=python-qt4&project=home%3Afrispete%3APyQt-next&repository=openSUSE_11.1

Pete


More information about the PyQt mailing list