【问题标题】:Android emulator on Debian Jessie with GPU EmulationDebian Jessie 上带有 GPU 仿真的 Android 模拟器
【发布时间】:2015-11-17 00:20:12
【问题描述】:

从 Wheezy 升级到 Jessie Debian 后我遇到了麻烦...... ADV 在 Wheezy 上运行良好

$ ~/android-sdks/tools/emulator -avd MiAVD
failed to create drawable
getGLES1ExtensionString: Could not create GLES 1.x Pbuffer!
Failed to obtain GLES 1.x extensions string!
Could not initialize emulated framebufferemulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

当然,我需要使用gpu仿真,所以-gpu off参数不是一个选项。

安装 gles 库:

$ dpkg -l | grep gles
ii  libgles1-mesa:amd64                                         10.3.2-1                             amd64        free implementation of the OpenGL|ES 1.x API -- runtime
ii  libgles2-mesa:amd64                                         10.3.2-1                             amd64        free implementation of the OpenGL|ES 2.x API -- runtime
ii  mesa-utils-extra                                            8.2.0-1                              amd64        Miscellaneous Mesa utilies (opengles, egl)

我不知道我的显卡是不是相关信息,但是……这是输出。

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)

关于我的配置的更多信息

$ glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits)
OpenGL version string: 3.0 Mesa 10.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:

感谢您的帮助。

【问题讨论】:

    标签: android debian gpu


    【解决方案1】:

    几周后,我发现简单的解决方案是......

    $ ~/android-sdks/tools/emulator -avd MiAVD -gpu mesa
    

    【讨论】:

      【解决方案2】:

      尝试安装下面给出的软件包。

      apt-get -y mesa-utils
      
      apt-get -y install lib32z1 lib32ncurses5
      
      apt-get -y install lib32stdc++6
      
      apt-get -y install build-essential
      
      apt-get -y install freeglut3 freeglut3-dev
      
      apt-get -y install libgl1-mesa-dev libglfw-dev
      

      【讨论】:

        【解决方案3】:

        对于其他坚持这一点的人:

        在上面的推荐中 -avd [你给你的模拟器的名字] -gpu [你在这里的值(我的是台面)]

        完成此操作后,将模拟器配置文件中的模拟性能选项更改为软件。

        完美运行。

        【讨论】:

          猜你喜欢
          • 2012-07-17
          • 2012-04-28
          • 1970-01-01
          • 1970-01-01
          • 2012-10-09
          • 2012-04-02
          • 1970-01-01
          • 2012-09-18
          • 2016-06-24
          相关资源
          最近更新 更多