[SailfishDevel] opengl support in the sailfish emulator?
Wim de Vries
wsvries at xs4all.nl
Wed Jul 10 12:53:39 UTC 2013
My testing goes no further than glClear, but even that does not work. It
works fine in the desktop version.
The related error is (i think):
"libEGL warning: DRI2: failed to authenticate"
Googling on this error didn help me any further.
> On Jul 9, 2013, at 2:06 PM, Wim de Vries <wsvries at xs4all.nl> wrote:
>> I have asked this question before, but got no answer.
>> Now the issue becomes more urgent for my project.
>> Trying again:
>> does/should the sailfish emulator support openGL (ES)?
> Yes, OpenGL ES 1.1 and OpenGL ES 2.0 are supported in the Sailfish
> [root at SailfishEmul ~]# rpm -qa | egrep '(GLES|EGL)'
> (note that the -devel packages are only needed for development, so on the
> Emulator you don't need them)
> OpenGL ES 2.0 can be used directly with Qt (QGLWidget in QtOpenGL), OpenGL
> ES 1.1 can be used via Xlib + EGL, an example on how to do this is here:
> This example uses OpenGL ES 2.0, but you can easily modify it to use
> OpenGL ES 1.1 instead (untested):
> Instead of linking against GLESv2, you link against GLESv1_CM, instead of
> including GLES2/gl2.h, you include GLES/gl.h and instead of using the
> EGL_OPENGL_ES2_BIT attribute, you use EGL_OPENGL_ES_BIT. You obviously
> also have to replace the shader usage with fixed function pipeline
> equivalents, but if you do OpenGL ES programming, you know how to do that.
> This even works with Python - make sure you have python-pyside and
> python-imaging installed, and you should be able to run OpenGL ES 2.0
> examples like SwipEout (http://thp.io/2011/swipeout/) directly from the
> console - no compiler needed, just ssh into the emulator (export
> DISPLAY=:0; python swipeout.py).
> HTH :)
More information about the Devel