Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator Ubuntu 14.04 Could not Create SDL2 Window GLX not Supported

A bit of background. I have a Centos 6 32 Bit server with Open VZ installed. I have created a VPS with Ubuntu 14.04.2 Desktop 32 Bit.

I am trying to install an Android emulator on the Ubuntu machine. I have followed a tutorial and I have eclipse and Android SDK installed on the server and everything functions correctly.

I have created an AVD and tried to start it. I originally had error messages relating to 32bit binaries which I have resolved, but now the progress bar gets so far and then I get the following error:

emulator: warning: opening audio output failed

ERROR; Could not create the SDL2 window: GLX is not supported

I can't help feel that this is the last error to fix before I finally get this guy to work. I have searched the error and there is not a great deal of information. I found a few articles that say to install the following:

apt-get install libgl1-mesa-swx11

I also found the following command but this gives me the same output:

emulator-arm -avd your_avd 

Needless to say I have hit a bit of a brick wall, hence why I am here. Can any tell me how I could resolve the error?

A final bit of info, I am using Vnc to connect to the server.

Many thanks

like image 429
The Humble Rat Avatar asked Nov 09 '22 09:11

The Humble Rat


1 Answers

I found a quick answer here

export SDL_VIDEO_X11_VISUALID=0x022
like image 181
Lakhdar Meftah Avatar answered Nov 12 '22 02:11

Lakhdar Meftah