你如何在MacOS上安装libEGL.dylib?

huangapple go评论76阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年1月4日 12:16:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/59587825.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定