问题
I built the android source code based on the http://source.android.com/source/building.html on Ubuntu 12.04 and when I run the emulator I'm getting the error and emulator won't start:
WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3
is not supported! This is an application bug!
X Error of failed request: GLXUnsupportedPrivateRequest
Major opcode of failed request: 146 (GLX)
Minor opcode of failed request: 16 (X_GLXVendorPrivate)
Serial number of failed request: 20
Current serial number in output stream: 22
Any idea how can I fix that?
I need to mention that I connect to the machine with SSH. When I connect from an Ubuntu machine and run, it works fine but when I connect to it with my macbook machine through the SSH and try to run it gives me above error.
BR, Ramin
回答1:
Found out about a work around yesterday.
The issue seems to be with android-sdks/tools/emulator, while emulator-arm seems to work fine.
To test cd to the android-sdks/tools directory and type:
emulator-arm -avd your_avd
Looks like this forces the emulator to use the software renderer instead of OpenGL, but for me (using NX) it worked.
I found the work around here: https://answers.launchpad.net/ubuntu/+source/xorg/+question/203681
回答2:
This error probably indicates the app requires direct access to the screen. Using nx rather than X over SSH may avoid the problem. Look if there is a run time option on the emulator too.
回答3:
The MacOSX X server is complaining about misuse of some GL functions, which may be caused by flaws on either side. When using Ubuntu as client, the X environment obviously matches well.
Maybe you should try to run the emulator on the local display, and view it by VNC or something similiar. If the SSH connection is critical, you could tunnel VNC trough SSH, some VNC clients directly offer that option.
来源:https://stackoverflow.com/questions/10998146/android-emulator-wont-start-on-ubuntu-12-04-after-when-run-from-ssh