简体   繁体   中英

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

我在这里找到了一个快速答案

export SDL_VIDEO_X11_VISUALID=0x022

I have encounter the same problem.

I have use xmanager 4 as a x-server in my windows pc, then I update to xmanager 5, and run emulator at ubuntu-host, the "could not create sdl2 window glx is not supported" don't occur again, but another error arises

Could not create SDL2 window: Couldn't find matching GLX visual

I run export SDL_VIDEO_X11_VISUALID= at ubuntu-host before running the emulator, and it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM