Monday, January 13, 2014

Failed to load libGL.so when running Android Emulator in Ubuntu

Starting emulator for AVD 'Nexus'
Failed to load libGL.so
Failed to allocate 2147483648 B: Cannot allocate memory
error libGL.so: cannot open shared object file: No such file or directory
Failed to load libGL.so
error libGL.so: cannot open shared object file: No such file or directory



Two ways to fix the problem:

1st: Create a symbolic link or soft link to /usr folder
  Command: ln -s /usr/lib/libGL.so.1 /tools/lib/libGL.so 
2nd: Install the OpenGL driver
  Command: sudo apt-get install libgl1-mesa-dev

Friday, January 10, 2014

Eclipse Indigo - Ubuntu 12.04 Failed To Open Error: swt/lib/linux/x86/libswt-gtk-3740.so

After installing Eclipse Indigo in Ubuntu Desktop 12.04, the Eclipse failed to start. An error message box displayed:

To fix the problem, simply create a symbolic link into your home folder. Use the command below:

For Ubuntu 12.04 32 bit: 
   ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
For Ubuntu 12.04 64 bit: 
   ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

If you have questions, please leave a comment(s).