无法加载libGL.so在Android [英] Failed to load libGL.so on Android
本文介绍了无法加载libGL.so在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 Ubuntu的  12.04 (precise穿山甲)与Oracle 的JDK 7,而当我运行Android模拟器从的Eclipse ,它给这个错误:
I am using Ubuntu 12.04 (Precise Pangolin) with the Oracle JDK 7, and when I am running the Android emulator from Eclipse, it's giving this error:
[2012-07-04 02:52:10 - Emulator] error libGL.so: cannot open shared object file: No such file or directory
[2012-07-04 02:52:10 - Emulator] Failed to load libGL.so
另外,仿真器是很慢的。我该如何解决这个问题呢?
Also the emulator is very slow. How can I solve this problem?
推荐答案
我在Android SDK安装到〜/ Android的SDK-linux_x86,所以我所做的:
I have the Android SDK installed into ~/android-sdk-linux_x86, so I did:
ln -s /usr/lib/libGL.so.1 ~/android-sdk-linux_x86/tools/lib/libGL.so
这解决了错误,就像链接到/ usr / lib中做,但它并不需要root并且不惹核心系统目录。
This solves errors just like linking to /usr/lib does, but it doesn't require root and doesn't mess with core system directories.
这篇关于无法加载libGL.so在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文