bzflag icon indicating copy to clipboard operation
bzflag copied to clipboard

Migrate from GLEW to libepoxy or GLAD

Open cryptomilk opened this issue 8 months ago • 3 comments

Hi,

we are currently trying to get rid of GLEW in Fedora as it isn't maintained anymore. Also GLEW with the last release only supports GLX and not EGL.

There are two ways moving forward:

With both of them migration should be straight forward.

Thanks for considering!

cryptomilk avatar Apr 22 '25 09:04 cryptomilk

I'd say skip looking at libepoxy since that has annoying build dependencies.

blast007 avatar Apr 22 '25 11:04 blast007

GLEW with the last release only supports GLX and not EGL.

I see a build option for EGL in the GLEW CMake project, and openSUSE has a patch to that so it adds an _EGL suffix when building with that option. They then have a glew:egl package for the EGL version. Can Fedora do something similar?

I also don't really see evidence that GLEW is not maintained.

If we wanted to move to GLAD, it might require packaging the glad generator in other Linux distributions since Debian doesn't like generated or third-party code bundled in the source. Debian does have the python3-glad package and Fedora has python3-glad2, but Gentoo doesn't seem to have it packaged in the main repository. There's probably others that don't have it packaged either.

blast007 avatar May 04 '25 21:05 blast007

I backported those patches in openSUSE and this is an ugly workaround.

GLAD is a code generator. python3-glad is the commandline client to generate loader code. It does the same as the web interface linked above. It is not a shared library. If you want to use a shared library then go with libepoxy. This is like libglew but doesn't have a dependency on GLX.

cryptomilk avatar May 05 '25 11:05 cryptomilk