Summary: | dev-python/PyQt4 fails to build against x11-libs/qt-opengl[egl] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jakub Caban <kuba.iluvatar> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexxy, ansla80, bug, hubertstar, hwoarang, kredba, lucas.yamanishi, marcusvini, qt |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
PyQt4-4.8.1-egl.patch |
Description
Jakub Caban
2010-11-07 13:39:30 UTC
Created attachment 253519 [details]
Build log
Same for me on ~amd64 with gcc-4.5.1: 86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=core2 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/python2.6 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/X11R6/include -o sipQtOpenGLQGL.o sipQtOpenGLQGL.cpp sipQtOpenGLQGLContext.cpp: In member function ‘void* sipQGLContext::chooseVisual()’: sipQtOpenGLQGLContext.cpp:187:16: error: ‘chooseVisual’ is not a member of ‘QGLContext’ sipQtOpenGLQGLContext.cpp: In function ‘PyObject* meth_QGLContext_chooseVisual(PyObject*, PyObject*)’: sipQtOpenGLQGLContext.cpp:708:59: error: ‘class QGLContext’ has no member named ‘chooseVisual’ sipQtOpenGLQGLContext.cpp:708:84: error: ‘class QGLContext’ has no member named ‘chooseVisual’ make[1]: *** [sipQtOpenGLQGLContext.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.8.1/work/PyQt-x11-gpl-4.8.1-2.6/QtOpenGL' Can be dev-python/pygobject-2.26.0 behind this? qt-gui and qt-openg have new use flag: egl disable it and rebuild qt-gui/qt-opengl, then emerge PyQt. Works here, thanks! So probably there should be dep. on PyQt4 to qt-opengl[-egl], isn't it? (In reply to comment #4) > Works here, thanks! > > So probably there should be dep. on PyQt4 to qt-opengl[-egl], isn't it? > Yes, although upstream should probably be informed of the issue. Yeah it fails for me. Please hardcode -egl flag on the PyQt4 deps Created attachment 256321 [details, diff]
PyQt4-4.8.1-egl.patch
This patch enables PyQt to build against qt-opengl with use egl. It's probably not the right fix so it shouldn't be included in portage as is, but it might help anybody that realy needs egl enabled and still build PyQt with opengl support.
*** Bug 347869 has been marked as a duplicate of this bug. *** Same problem for PyQt4-4.8.2, and probably the same fix. What I did: USE=-egl emerge -va1 qt-opengl && emerge -1 dev-python/PyQt4 Dependencies have been adjusted until PyQt4 upstream fixes this bug. >=PyQt4-4.9 builds fine against >=qt-opengl-4.8.0[egl], the dep has been updated accordingly by wired some time ago. Closing.
|