Android Lubuntu - libGL错误:无法加载驱动程序:i965

时间:2013-12-07 08:55:45

标签: android linux eclipse

我正在尝试在Lubuntu上设置Android开发环境,但是在加载模拟器时我一直收到此错误:

⇒ ./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

当我使用LIBGL_DEBUG = verbose运行它时,我得到:

⇒ ./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

模拟器运行速度非常慢,占用了大约80%的CPU。有没有人遇到这个或有任何建议使其工作?

编辑:好的,我可能已经弄清楚了。事实证明我需要将自己添加到视频组,注销并重新登录。此外,我必须运行export LD_LIBRARY_PATH=/home/facetoe/programs/adt-bundle-linux-x86_64-20131030/sdk/tools/lib。这似乎修复了它,虽然我仍然收到关于音频的错误......

1 个答案:

答案 0 :(得分:2)

export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1为我做了。与系统的其他部分相比,嵌入模拟器的libstdc ++似乎太旧了。

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