Thursday, January 13, 2011

Attempting to Enable WebGL on Ubuntu

I wanted to preview Google's new body browser on my Ubuntu workstation.  I am using Ubuntu meerkat with an ATI x1300 graphics card using the open source driver (I believe -- glxinfo | grep render shows direct rendering using Mesa DRI).

First I installed the Chrome beta channel.  When I ran /opt/google/chrome/chrome --enable-webgl and went to the body browser website above and found this error in the command window.
libEGL.so: cannot open shared object file: No such file or directory
So I installed libegl1-mesa to make sure that I had the driver installed.  I still had the same problem and when I ran 'locate libEGL' it found /usr/lib/libEGL.so.1 and /usr/lib/libEGL.so.1.0 but no libEGL.so  All I did was create a symbolic link 'ln -s  /usr/lib/libEGL.so.1 /usr/lib/libEGL.so

When I restarted chrome with the --enable-webgl parameter and went to the website I got a different error.
libEGL warning: unable to load st_GL.so
On the page it looked like Chrome froze waiting to load the textures and content.

Let me know if anyone gets this to work further.