我基于 http://source.android.com/source/building.html 构建了 android 源代码在 Ubuntu 12.04 上运行模拟器时出现错误,模拟器无法启动:
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
知道如何解决这个问题吗?
我需要说明一下,我使用 SSH 连接到机器。当我从 Ubuntu 机器连接并运行时,它工作正常,但是当我通过 SSH 连接到我的 macbook 机器并尝试运行它时,它给了我上述错误。
BR, 拉敏
最佳答案
昨天发现了一个变通办法。
问题似乎出在 android-sdks/tools/emulator 上,而 emulator-arm 似乎工作正常。
要测试 cd 到 android-sdks/tools 目录并输入:
emulator-arm -avd your_avd
看起来这会强制模拟器使用软件渲染器而不是 OpenGL,但对我来说(使用 NX)它有效。
我在这里找到了工作: https://answers.launchpad.net/ubuntu/+source/xorg/+question/203681
关于从 ssh 运行后,android 模拟器不会在 ubuntu 12.04 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10998146/