Android Debian Jessie 上带有 GPU 仿真的模拟器
Android emulator on Debian Jessie with GPU Emulation
从 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-sdks/tools/emulator -avd MiAVD -gpu mesa
尝试安装下面给出的软件包。
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
对于坚持这个的其他人:
在上面的推荐中 -avd [你给你的模拟器起的名字] -gpu [你的值在这里(我的是 mesa)]
完成后,将模拟器配置文件中的模拟性能选项更改为软件。
完美运行。
从 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-sdks/tools/emulator -avd MiAVD -gpu mesa
尝试安装下面给出的软件包。
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
对于坚持这个的其他人:
在上面的推荐中 -avd [你给你的模拟器起的名字] -gpu [你的值在这里(我的是 mesa)]
完成后,将模拟器配置文件中的模拟性能选项更改为软件。
完美运行。