Gtk4.jl icon indicating copy to clipboard operation
Gtk4.jl copied to clipboard

Undefined Symbol

Open andreeco opened this issue 11 months ago • 3 comments

Hi,

I got this error:

julia> using Gtk4

julia> win = GtkWindow("My First Gtk4.jl Program", 400, 200) /home/andre/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/bin/julia: symbol lookup error: /lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: wl_display_create_queue_with_name

I run Julia 1.11.2 on a laptop with Debian testing as operating system and have installed Gtk4 v0.7.4.

Thanks for reading.

andreeco avatar Jan 14 '25 12:01 andreeco

Hello

I had a somewhat similar problem when trying to add ImageView package.

/home/denys/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin/julia: symbol lookup error: /lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: wl_display_create_queue_with_name

The solution was to use X11 instead of Wayland. This can be done by editing /etc/gdm3/custom.conf and commenting out he line

WaylandEnable=false

There seems to be an issue with Gtk on Wayland.

RechercheStochastique avatar Feb 06 '25 23:02 RechercheStochastique

Sorry, I missed the discussion on discourse -- I would have also pointed at this issue. I wonder if upgrading the Wayland JLL to a newer version would fix this. There is a PR: https://github.com/JuliaPackaging/Yggdrasil/pull/9035 but it doesn't build for all platforms yet. You could check if the newer version helps by typing add https://github.com/jwahlstrand/Wayland_jll.jl in package mode.

jwahlstrand avatar Feb 07 '25 22:02 jwahlstrand

Which is the concrete julia dependency which causes the error? After updating all my dependencies, even pinning GTK4 to 0.7.2 (which previously worked), still causes this error

dpinol avatar May 02 '25 08:05 dpinol

There is a registered 1.23 Wayland_jll now, but before GTK4_jll can use it (which would fix this issue, I think) it has to be rebuilt with updated dependencies. That requires a few other packages to be rebuilt first, as discussed here: https://github.com/JuliaPackaging/Yggdrasil/pull/10815#issuecomment-2822566500

Those who are impatient can try the version of Wayland_jll that I built, as discussed above. If that doesn't fix the "Undefined Symbol" issue then we'll need to try something else.

jwahlstrand avatar May 11 '25 15:05 jwahlstrand

The new Wayland_jll 1.23 in the registry fixes my Wayland issues. Please reopen this if it doesn't fix your issue!

jwahlstrand avatar Jun 07 '25 17:06 jwahlstrand