#1057478 libwxbase3.2-1: please enable EGL support

Package:
libwxbase3.2-1
Source:
libwxbase3.2-1
Description:
wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
Submitter:
Sebastian Reichel
Date:
2026-10-12 18:07:02 UTC
Severity:
normal
#1057478#5
Date:
2023-12-04 16:00:57 UTC
From:
To:
Dear Maintainer,

Without EGL, KiCAD experience on Wayland can be quite bad even when
using XWayland. At least on AMD GPU based systems, there are ~10 second
lags when switching between PCB and Schematics windows on two different
Wayland workspaces.

I've seen commit 5a3af461df6fc6e4be868399277ea4134e703773 ("Revert
"d/rules: Turn option KICAD_USE_EGL on" ), but I think it would be
better to enable EGL support in libglew, libwxwidgets and KiCAD
instead of disabling it everywhere.

At the moment GLX is used on XWayland and that is missing some
workarounds for SwapBuffers(). For EGL wxwidgets already has the
necessary code to disable vsync. See also upstream bugs:

https://gitlab.freedesktop.org/mesa/mesa/-/issues/10235
https://github.com/wxWidgets/wxWidgets/issues/23512

I asked for the workaround to also be implemented for the GLX API,
but I believe it's a good idea to enable EGL in Debian even if that
happens.

P.S.: If anyone runs into the lag issue and finds this bug: You can
run KiCAD like this as a workaround: `vblank_mode=0 /usr/bin/kicad`.

Thanks,

#1057478#26
Date:
2026-10-12 17:00:15 UTC
From:
To:
Hi,

I talked to kicad upstream about this, and according to them, if
wxwidgets is built with the EGL option, and greater or equal than 3.3.2,
then Egl and wayland is used.

Building a wxwidgets 3.2 with --enable-glcanvasegl and KiCad with
that should apparently do the trick, I'll try to get a debusine
experiment started this week to test this. Regardless, it would be nice
to have a newer wxwidgets, too.

best,

werdahias

#1057478#31
Date:
2026-10-12 17:37:42 UTC
From:
To:
Hi,

wxWidgets 3.2 cannot be built with both EGL and GLX support at the same
time.  Rebuilding with EGL only caused problems for application that
only worked with GLX, so we build with GLX support currently.

wxWidgets 3.3.x *does* support building with both EGL and GLX support
simultaneously.  However, historically we have not packaged the unstable
(odd second digit) releases in Debian as they are not API/ABI stable, and
so would require a transition for each new release.

Can you wait until wxWidgets 3.4 is released?  It is planned to be before
the end of the year.

Regards,
Scott

#1057478#36
Date:
2026-10-12 18:02:56 UTC
From:
To:
Hi,

ah, good to know.
If that is still in time for trixie, sure. I can build a local KiCad
with native wayland in the meantime.

best,