On 2022-10-03 Alastair McKinstry <alastair.mckins...@sceal.ie> wrote:
> Hi,


> As maintainer would be open to changing Glew to EGL support, but need to
> understand better the consequences.

> I have a test build of glew with egl (for Linux, not hurd or freebsd yet)
> and it builds fine.

> Any pointers to docs on EGL/non-EGL builds, or opinions and evidence would
> be welcome.
[...]

With hugin opening hugin and klicking on the [GL] icon yields
ERROR: 13:32:20.593540 (./src/hugin1/hugin/GLViewer.cpp:133) SetUpContext(): 
Error initialising GLEW: Unknown error.

Klicking once more seems to succeed.

I have tried rebuilding glew with
--- a/debian/rules
+++ b/debian/rules
@@ -34,7 +34,7 @@ override_dh_auto_build:
                GLUT_LDFLAGS=-lglut \
                LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
                'LD=$$(CC)' \
-               SYSTEM=$(firstword $(subst -, ,$(DEB_HOST_GNU_SYSTEM))) \
+               SYSTEM=$(firstword $(subst -, ,$(DEB_HOST_GNU_SYSTEM)))-egl \

But I am not sure that actually works, since the symbol list is
unchanged. The hugin behavior also does not change with this glew
rebuild.

I suspect glew upstream just is not ready yet:
Afaict fedora does build with EGL suppport and OpenSuse has dropped it
again:
| * Sat Aug 21 2021 Atri Bhattacharya <badshah...@gmail.com>
| - Revert building with EGL support, as it breaks mutliple apps
| (boo#1189524).
There is known breakage on the glew side:
https://github.com/nigels-com/glew/issues/321
https://github.com/nigels-com/glew/issues/315

Archlinux builds with EGL but does some patching
https://archlinuxarm.org/packages/armv7h/glew/files

(Applying the patch to the Debian package yielded a FTBFS)

cu Andreas

Reply via email to