英文:
How can I install libEGL.dylib on MacOS?
问题
我正在尝试在MacOS上使用LWJGL通过EGL进行离屏渲染。
似乎会抛出一个缺少库libEGL.dylib
的异常。
我在像brew这样的软件包分发服务中找不到这个库。
然而,我在Github上找到了几个包含libEGL.dylib的小型仓库。我认为这不安全。
我该如何官方获取二进制文件,或者如何找到构建的源代码?
英文:
I'm trying to use EGL via LWJGL on MacOS to use offscreen rendering.
It seems to throw an exception of the missing library libEGL.dylib
.
I couldn't find this library on package distribution service like brew.
However, I could find several minor repositories on Github containing libEGL.dylib. I don't think this is safe to use.
How can I find the binary officially, or find the source to build?
答案1
得分: 1
没有任何官方的libEGL实现。头文件是标准的一部分,但实现不是。
MoltenGL 提供了二进制下载(第二个,"OpenGL ES 2 for macOS")。
如果你更喜欢开源实现,Google的ANGLE 也实现了EGL,并据说支持macOS。值得一提的是,似乎Apple在iOS的WebKit中也在使用这个。
英文:
There isn't any canonical libEGL implementation. The header files are part of the standard, but the implementation isn't.
MoltenGL has a binary download available (the second one, "OpenGL ES 2 for macOS").
If you prefer an open-source implementation, Google's ANGLE also implements EGL and supposedly supports macOS. And for what it's worth, it appears that Apple is using this in WebKit for iOS as well.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论