Archive 17/01/2023.

ERROR: Could not create GLES window surface

OMID-313

Hi all,

Developers suggested me to install version 1.5 on RPi (topic2447.html).
But after I installed it, I receive the following error every time I try to run an example:

. . . libEGL warning: DRI2: failed to authenticate ERROR: Could not create window, root cause: 'Could not create GLES window surface'

So, what should I do !?

OMID-313

Ok, I found the solution from the FAQ of Pi3D here:
pi3d.github.io/html/FAQ.html#gl … thenticate


GLX DRI2 not supported or failed to authenticate

When I try and run the demos I just get a load of error messages such as libEGL warning: GLX/DRI2 is not supported/failed to authenticate etc

The chances are this is because ?something? (such as gedit) has installed mesa which added its own versions of libEGL and libGLESv2. If you run:

$ sudo find / -name libEGL* $ sudo find / -name libGLESv2*

on the Raspberry Pi you should just get /opt/vc/lib/libEGL.so and /opt/vc/lib/libGLESv2.so if other ones turn up i.e. /usr/lib/arm-linux-gnueabihf/libEGL.so.1 you could try creating symbolic links for them all like this:

$ sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so $ sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1 $ sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so $ sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2