缺少对Android模拟器OpenGL驱动模拟器、Android、OpenGL

2023-09-07 12:02:04 作者:宠你入心

我想建立一个Android模拟器做一些与OpenGL ES的在玩了,但我被这个,我每次在其上运行我的程序,它毫不客气地手榴弹本身的事实阻碍。的问题(在日志中的至少所述第一讨厌红色误差线)是一个丢失的包称为libhgl.so。这是需要在Android设备上运行OpenGL ES的OpenGL驱动程序文件,但由于某些原因,我的模拟器没有它。有谁知道我能得到驱动程序模拟器,或如何获取已有他们的仿真器?

I am trying to set up an Android emulator to do some playing around with OpenGL ES on it, but I am stymied by the fact that, every time I run my program on it, it unceremoniously grenades itself. The problem (at least the first nasty red error line in the log) is a missing package called libhgl.so. This is the OpenGL driver file required for running OpenGL ES on Android devices, but for some reason, my emulator doesn't have it. Does anyone know where I can get drivers for the emulator, or how to get an emulator that already has them?

推荐答案

在此链接:

http://osdir.com/ml/android-porting/ 2009-06 / msg00282.html

这样说的:

libEGL.so and libGLESv2.so implements EGL and OpenGL ES through
libhgl.so and libagl.so. That is, libhgl.so and libagl.so are
dlopen()ed by libEGL.so. All EGL and OpenGL ES calls will finally call
into libhgl.so and/or libagl.so.

这里:

http://osdir.com/ml/android-porting/ 2009-06 / msg00288.html

libagl.so is an pure software impl. For your accelerated impl., you
need to provide libhgl.so so that libEGL.so will be able to use it. It
is expected that libhgl.so implements and exports both eglXXX and glXXX
symbols.

我想这表明,丢失的文件将只存在于设备本身,但应用程序应该在模拟器上的软件驱动程序运行。在Android模拟器的OpenGL应用程序在网络上的众多截图还显示,OpenGL的,做工精细的模拟器。为什么你不能在任何其他可能的原因,得到的OpenGL回事?

I guess that indicates that the missing file will only exist on the device itself, but that the app should run with the software driver on the emulator. The numerous screenshots on the web of OpenGL apps on the Android emulator also indicates that OpenGL should work fine on the emulator. Any other possible reasons why you are not able to get OpenGL going?