在CentOS上使用android SKD时出现“ERROR: OpenGLES初始化失败!”错误。

7
当我运行以下命令时: /usr/local/android-sdk-linux/tools/emulator -avd tst 我遇到了以下错误:
Failed to open lib64EGL_translator
Failed to init_egl_dispatch
emulator: ERROR: OpenGLES initialization failed!
emulator: ERROR: OpenGLES emulation library could not be initialized!
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
emulator: emulator window was out of view and was recentered

我已经按照这里的步骤操作:http://www.redips.net/android/emulator-fedora-linux/ 我还尝试使用命令emulator-arm和emulator64-arm。
我还尝试了另外一种方法。
export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib:$LD_LIBRARY_PATH

另一个尝试是使用参数:
-no-audio -gpu off

我正在使用全新安装的CentOS 6.6,并运行了yum update。我正在使用Android SDK:http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz 我运行了/usr/local/android-sdk-linux/tools/android并安装了Android 5.0 api+arm。我尝试过Android 4.4 AVM。
我已经尝试了所有我能找到的建议。还有其他建议吗?

嗨,Brian,我的电脑上不存在文件夹/usr/local/android-sdk-linux/tools/lib。我需要安装哪些软件包? - pxc3110
3个回答

2
在命令行中运行模拟器前,请将lib64目录添加到LD_LIBRARY_PATH中,例如:
$ export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib64:$LD_LIBRARY_PATH

或者

$ export LD_LIBRARY_PATH=$HOME/Android/Sdk/tools/lib64:$LD_LIBRARY_PATH

根据SDK安装路径独立设置。


0

我的回复是为了“支持”Brian的帖子,这样就知道Brian不是唯一看到这个错误的人。

在我的CentOS 6.6盒子上,我也尝试了相同的步骤,并且我也看到了几乎相同的错误消息。唯一的区别是我没有得到:

emulator: emulator window was out of view and was recentered

我的模拟器只需基本调用即可运行(此 AVD 未配置使用主机的 GPU):

emulator -avd Nexus_S_ARM

但错误信息表明某些东西出了问题,应该加以修复。


0

对我来说,'export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib:$LD_LIBRARY_PATH' 让它工作了。同时在命令行中指定了 '-gpu off'。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接