我正在尝试在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
仿真器运行非常缓慢,占用了我CPU的80%左右。 有没有人遇到这个或有任何build议,使其工作?
编辑:好的,我可能已经知道了。 原来,我需要将自己添加到video组,注销并重新login。另外,我必须运行export LD_LIBRARY_PATH=/home/facetoe/programs/adt-bundle-linux-x86_64-20131030/sdk/tools/lib
。 这似乎已经修复了,虽然我仍然得到一个关于audio的错误…
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