Android SDK Error under Ubuntu 12.04 “Precise Pangolin” 64-bit – AVD Emulator Failed to load libGL.so

Doing some Android bloodshedding with the good ol’ Tux gives an undescribable feel in elaborating your carefully crafted lines of code…so does an error message which pops it’s head up if you’ve recently upgraded to the latest LTS release of Ubuntu. Precisely, test-driving your code on an Android Vitual Device will surely lead to the result you more or less have expected, albeit with a little stuttering: if all of this is happening on the 64-bit variant of the OS, then you are most likely to be exposed to the error message in the headline. The fix is right here, in form of installing a small package and making a correspondent symbolic link. Let’s roll:

As always, issue these commands with a logged on user who is in the sudoers group!

 

sudo apt-get install libgl1-mesa-dev

sudo ln -s /usr/lib/libGL.so.1.2 /usr/lib/libGL.so

 

Or if the above path does not exist in your system in the first place, make sure libgl1-mesa-glx:i386 is installed, then issue this:

 

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2 /usr/lib/libGL.so

 

Re-start Eclipse and now the pesky error message should have vanished away into oblivion.

 

 

About the author

Gábor Hargitai

View all posts

Leave a Reply