Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"ERROR: OpenGLES initialization failed!" on CentOS with android SKD

Tags:

android

When I run: /usr/local/android-sdk-linux/tools/emulator -avd tst

I get the error:

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

I've followed the steps here: http://www.redips.net/android/emulator-fedora-linux/

I've also tried using the commands emulator-arm and emulator64-arm

Another thing I tried was

export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib:$LD_LIBRARY_PATH

Another attempt was with the parameters:

-no-audio -gpu off

I'm using a fresh install of CentOS 6.6 with yum update ran. I'm using the android SDK: http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

I ran /usr/local/android-sdk-linux/tools/android and installed the Android 5.0 api+arm. I tried again with a Android 4.4 AVM.

I've tried all the suggestions I could find. Any other suggestions?

like image 356
brian Avatar asked Nov 30 '14 05:11

brian


1 Answers

Before running the emulator from the command line add the lib64 directory to the LD_LIBRARY_PATH, e.g.:

$ export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib64:$LD_LIBRARY_PATH

or

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

dependently on the SDK installation path.

like image 70
Alexandr Priezzhev Avatar answered Nov 15 '22 01:11

Alexandr Priezzhev