gpt4 book ai didi

Android Lubuntu - libGL 错误 : failed to load driver: i965

转载 作者:IT王子 更新时间:2023-10-29 00:35:46 25 4
gpt4 key购买 nike

我正在尝试在 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/库。这似乎已经解决了它,尽管我仍然收到有关音频的错误...

最佳答案

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

关于Android Lubuntu - libGL 错误 : failed to load driver: i965,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20439541/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com