My guess is libGLdispatch is interfering with GLESv2. Not sure were this deps come from (you can try to find "elflibviewer", a handy Qt dependancy walker that shows a tree of the dependancy instead of just the flat out output of ldd). Not sure why you have all those wayland dependancies also. It's quite heavy for a simple GLES program. Do you have a base system or did you customize it a bit?