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

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

I get an error message:

 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 followed these steps: http://www.redips.net/android/emulator-fedora-linux/

I also tried using emulator-arm and emulator64-arm commands

Another thing I've tried is

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

Another attempt was in the parameters:

 -no-audio -gpu off 

I am using a new CentOS 6.6 installation with the yum update. I use 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 Android 5.0 api + arm. I tried again with Android 4.4 AVM.

I tried all the suggestions that I could find. Any other suggestions?

+7
android
source share
3 answers

Before starting the emulator from the command line, add the lib64 directory to LD_LIBRARY_PATH , for example:

 $ 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 

depending on the installation path of the SDK.

+2
source share

My answer is for the β€œsecond” brian message, so it’s known that Brian is not the only one who sees this error.

In my CentOS 6.6 mailbox, I also tried the same steps, and I also see almost the same error messages. The only difference is that I am not getting:

 emulator: emulator window was out of view and was recentered 

My emulator only works with a basic call (this AVD is not configured to use the host GPU):

 emulator -avd Nexus_S_ARM 

But error messages indicate that something is broken and needs to be fixed.

0
source share

"Exporting LD_LIBRARY_PATH = / usr / local / android-sdk-linux / tools / lib: $ LD_LIBRARY_PATH" made it workable for me. Also specify "-gpu off" on the command line.

0
source share

All Articles