ERROR: Could not create GLES window surface

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 !?

Ok, I found the solution from the FAQ of Pi3D here: … 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/ and /opt/vc/lib/ if other ones turn up i.e. /usr/lib/arm-linux-gnueabihf/ you could try creating symbolic links for them all like this:

$ sudo ln -fs /opt/vc/lib/ /usr/lib/arm-linux-gnueabihf/ $ sudo ln -fs /opt/vc/lib/ /usr/lib/arm-linux-gnueabihf/ $ sudo ln -fs /opt/vc/lib/ /usr/lib/arm-linux-gnueabihf/ $ sudo ln -fs /opt/vc/lib/ /usr/lib/arm-linux-gnueabihf/