Android Lubuntu - libGL error: failed to load driver: i965

I am trying to set up the Android dev environment on Lubuntu, but I keep getting this error when loading the emulator:

⇒ ./emulator-x86 -avd test libGL error: failed to load driver: i965 libGL error: Try again with LIBGL_DEBUG=verbose for more details. emulator: warning: opening audio output failed 

When I run it with LIBGL_DEBUG = verbose, I get:

 ⇒ ./emulator-x86 -avd test libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/i965_dri.so libGL error: failed to open drm device: Permission denied libGL error: failed to load driver: i965 libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so libGL: Can't open configuration file /home/facetoe/.drirc: No such file or directory. libGL: Can't open configuration file /home/facetoe/.drirc: No such file or directory. libGL: Can't open configuration file /home/facetoe/.drirc: No such file or directory. libGL: Can't open configuration file /home/facetoe/.drirc: No such file or directory. emulator: warning: opening audio output failed 

The emulator is very slow and uses about 80% of my processor. Has anyone come across this or had any suggestions to make it work?

Edit: Well, I might have figured this out. It turns out I had to add myself to the video group, log out and log back in. Also, I had to run export LD_LIBRARY_PATH=/home/facetoe/programs/adt-bundle-linux-x86_64-20131030/sdk/tools/lib . This seems to be fixed, although I still get the error message ...

+7
android eclipse linux
source share
1 answer

export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1 did this for me. It seems that the libstdC ++ built into the emulator was too old compared to the rest of the system.

Source: https://wiki.archlinux.org/index.php/Android#libGL_error:_failed_to_load_driver:_swrast_OR_AVD_doesn.27t_load_and_no_error_message_displayed

+2
source share

All Articles