[PyQt] Help needed with OpenGL ES2
Mark Burton
burtoogle at gmail.com
Wed Feb 5 09:33:20 GMT 2020
Hi Phil,
On Tue, 04 Feb 2020 12:32:27 +0000
Phil Thompson <phil at riverbankcomputing.com> wrote:
> Hmm - the API calls are disabled for reasons that escape me. I have
> re-enabled them and they will be in tonight's PyQt5 snapshot.
>
> Note that, quite obviously, nobody is using them.
>
> Phil
Thanks for the quick response.
I tried using the new dev release of PyQt and it fails to build with
the following messages, no wonder the ES2 part was disabled.
[ 93%] Performing build step for 'PyQt'
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:
In function ‘PyObject*
meth_QOpenGLFunctions_ES2_glReadPixels(PyObject*, PyObject*)’:
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:585:18:
error: ‘GL_BGR’ was not declared in this scope case GL_BGR: ^~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:585:18:
note: suggested alternative: ‘GL_RG’ case GL_BGR: ^~~~~~
GL_RG
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:592:18:
error: ‘GL_BGRA’ was not declared in this scope case GL_BGRA:
^~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:592:18:
note: suggested alternative: ‘GL_RGBA’ case GL_BGRA:
^~~~~~~
GL_RGBA
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:642:18:
error: ‘GL_UNSIGNED_INT_8_8_8_8’ was not declared in this scope case
GL_UNSIGNED_INT_8_8_8_8: ^~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:642:18:
note: suggested alternative: ‘GL_UNSIGNED_INT_24_8’ case
GL_UNSIGNED_INT_8_8_8_8: ^~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_INT_24_8
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:643:18:
error: ‘GL_UNSIGNED_INT_8_8_8_8_REV’ was not declared in this scope
case GL_UNSIGNED_INT_8_8_8_8_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:643:18:
note: suggested alternative: ‘GL_UNSIGNED_INT_5_9_9_9_REV’ case
GL_UNSIGNED_INT_8_8_8_8_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_INT_5_9_9_9_REV
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:644:18:
error: ‘GL_UNSIGNED_INT_10_10_10_2’ was not declared in this scope case
GL_UNSIGNED_INT_10_10_10_2: ^~~~~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:644:18:
note: suggested alternative: ‘GL_UNSIGNED_INT_10_10_10_2_OES’ case
GL_UNSIGNED_INT_10_10_10_2: ^~~~~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_INT_10_10_10_2_OES
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:662:18:
error: ‘GL_UNSIGNED_SHORT_5_6_5_REV’ was not declared in this scope
case GL_UNSIGNED_SHORT_5_6_5_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:662:18:
note: suggested alternative: ‘GL_UNSIGNED_SHORT_5_5_5_1’ case
GL_UNSIGNED_SHORT_5_6_5_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_SHORT_5_5_5_1
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:664:18:
error: ‘GL_UNSIGNED_SHORT_4_4_4_4_REV’ was not declared in this scope
case GL_UNSIGNED_SHORT_4_4_4_4_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:664:18:
note: suggested alternative: ‘GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT’ case
GL_UNSIGNED_SHORT_4_4_4_4_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:666:18:
error: ‘GL_UNSIGNED_SHORT_1_5_5_5_REVQtGui/qopenglext.h’ was not
declared in this scope case GL_UNSIGNED_SHORT_1_5_5_5_REV:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:666:18:
note: suggested alternative: ‘GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT’ case
GL_UNSIGNED_SHORT_1_5_5_5_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:669:18:
error: ‘GL_UNSIGNED_BYTE_3_3_2’ was not declared in this scope case
GL_UNSIGNED_BYTE_3_3_2: ^~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:669:18:
note: suggested alternative: ‘GL_UNSIGNED_BYTE’ case
GL_UNSIGNED_BYTE_3_3_2: ^~~~~~~~~~~~~~~~~~~~~~ GL_UNSIGNED_BYTE
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:670:18:
error: ‘GL_UNSIGNED_BYTE_2_3_3_REV’ was not declared in this scope case
GL_UNSIGNED_BYTE_2_3_3_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~
/media/markb/Samsung/cura/cura-build-environment/build/PyQt-prefix/src/PyQt/sip/_QOpenGLFunctions_ES2/qopenglfunctions_es2.sip:670:18:
note: suggested alternative: ‘GL_UNSIGNED_INT_5_9_9_9_REV’ case
GL_UNSIGNED_BYTE_2_3_3_REV: ^~~~~~~~~~~~~~~~~~~~~~~~~~
GL_UNSIGNED_INT_5_9_9_9_REV
The symbols that are undefined are defined in QtGui/qopenglext.h but I
don't think that header is referenced in the sip file.
Any thoughts on how to fix this?
Thanks,
Mark
More information about the PyQt
mailing list