gpt4 book ai didi

android - Android 模拟器上缺少 OpenGL 驱动程序

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:33:38 25 4
gpt4 key购买 nike

我正在尝试设置一个 Android 模拟器,以便在其上使用 OpenGL ES 进行一些尝试,但我受阻的事实是,每次我在其上运行我的程序时,它都会毫不客气地自行 throw 手榴弹。问题(至少是日志中第一个讨厌的红色错误行)是缺少一个名为 libhgl.so 的包。这是在Android 设备上运行OpenGL ES 所需的OpenGL 驱动程序文件,但由于某些原因,我的模拟器没有它。有谁知道我在哪里可以获得模拟器的驱动程序,或者如何获得已经有这些驱动程序的模拟器?

最佳答案

在此链接中:

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

它说:

libEGL.so and libGLESv2.so implements EGL and OpenGL ES throughlibhgl.so and libagl.so. That is, libhgl.so and libagl.so aredlopen()ed by libEGL.so. All EGL and OpenGL ES calls will finally callinto 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., youneed to provide libhgl.so so that libEGL.so will be able to use it. Itis expected that libhgl.so implements and exports both eglXXX and glXXXsymbols.

我猜这表明丢失的文件只会存在于设备本身,但应用程序应该使用模拟器上的软件驱动程序运行。 Android 模拟器上 OpenGL 应用程序网络上的大量屏幕截图也表明 OpenGL 应该可以在模拟器上正常工作。您无法启动 OpenGL 的任何其他可能原因?

关于android - Android 模拟器上缺少 OpenGL 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1114199/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com