error while loading shared libraries: libGLESv2.so

sudhanshu gupta sudhanshugupta2511 at gmail.com
Tue May 31 02:59:12 UTC 2011


Hey

I am not trying to install cube game or something like that . I was trying
to run an example of OpenGL-ES 2.0 in laptop (linux-ubuntu) . I was facing
difficulty because its an application for embedded systems and I am running
on laptop.
Actually OpenGL-ES 2.0 needs an emulator for its working in laptop/Desktop .
I done that part and installed it but everytime I get error:

./cube: error while loading shared libraries: libGLESv2.so: cannot open
shared object file: No such file or directory

but I have configured the error and now the example is working:

Actually to run these we need

You need to install the libgles2-mesa package to get libGLESv2. Presumably
the application also uses EGL, in which case you'll also need libegl1-mesa
and libegl1-mesa-drivers.

If you're going to compile ES2/EGL apps, you'll also need libgles2-mesa-dev
and libegl1-mesa-dev.  If you want to be able to debug inside Mesa or the
drivers, you'll need libgles2-mesa-dbg, libegl1-mesa-dbg, and
libegl-mesa-drivers-dbg.

these are the additional drivers we need to run the OpenGL-ES 2.0  demos in
Laptop or Desktop.

if still it does not work :

write in terminal :

fglrxinfo

if it says command not found , install it by typing:

sudo apt-get install fglrx

then try again.

Also go to system->administration->Additional drivers->and install ati
drivers there. then run glxgears . it pops up a window with 3 gears rotating
which means that your ati is working fine.
you can also try :

glxinfo | grep version

it will show your ati , OpenGl version .

Thank you
Sudhanshu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110531/cba80d22/attachment.html>


More information about the ubuntu-users mailing list