-
Notifications
You must be signed in to change notification settings - Fork 80
Fails to build/run on Fedora 34 #570
Comments
Are you setting using Libdl
println.(dllist()); after you get the error? |
It terminates the REPL if I do
|
|
Sorry, I never messes with it on this system. It is my understanding that it is loaded from here. (Please correct me if I am wrong).
|
ENV["LD_LIBRARY_PATH"] inside Julia |
It's not set
|
What happens if you do using Pkg
Pkg.add("GTK3_jll")
using GTK3_jll ? |
Works fine.
|
And can you please show |
|
Ok, all libraries look ok, so no system libraries are being loaded by Julia as far as GTK is concerned. So maybe Lines 77 to 136 in 543a4f1
Any chance you can debug where it's crashing exactly? |
Maybe. I am not exactly sure what I am doing. I never worked with a package as complex as this. I cloned the master branch and am executing Gtk.jl line by line. Added the missing packages. I get to
|
It crashes on this library call GError() do error_check
ccall((:gtk_init_with_args, libgtk), Bool,
(Ptr{Nothing}, Ptr{Nothing}, Ptr{UInt8}, Ptr{Nothing}, Ptr{UInt8}, Ptr{GError}),
C_NULL, C_NULL, "Julia Gtk Bindings", C_NULL, C_NULL, error_check)
end |
Looks like it's a bug in Gtk/GNOME 40 and we'll need binaries for 3.24.26 to fix it : https://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg5904544.html |
I am on Fedora 34 with a system-installed version of GTK3 that is more recent than 3.24.26, but I am still getting this error. Is this an issue that must be fixed
I apologize in advance for being very ignorant to how Gtk.jl is interconnected with the system-installed GTK 😊 |
@giordano would it be large effort to switch to |
We'll see: JuliaPackaging/Yggdrasil#2943 |
@hersle @mdpetters can you please try with
|
Yes, the update works. The issue can be closed. (Perhaps wait until a new version of GTK3_jll will be out.) |
It is already: JuliaRegistries/General#36266 🙂 Tests in #571 are already running (and passing) with GTK 3.24.29. |
thanks Mose! |
Great, thank you! 😃 |
This might be Gtk 4 related. I thought that Gtk.jl shipped with it's own GTK 3 libraries but I don't understand how they might interact with the OS. Loading Gtk crashes julia. Packages that depend on Gtk fail to precompile with the same error message.
The text was updated successfully, but these errors were encountered: