Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

UndefVarError: libgdk3 not defined #584

Closed
bhalonen opened this issue Jul 26, 2021 · 8 comments
Closed

UndefVarError: libgdk3 not defined #584

bhalonen opened this issue Jul 26, 2021 · 8 comments

Comments

@bhalonen
Copy link

bhalonen commented Jul 26, 2021

To reproduce: use M1 and julia 1.7, add Gtk, run tests.

julia> versioninfo()
Julia Version 1.7.0-beta3
Commit e76c9dad42 (2021-07-07 08:12 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin20.5.0)
  CPU: Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.0 (ORCJIT, cyclone)
     Testing Running tests...
ERROR: LoadError: UndefVarError: libgdk3 not defined
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/Gtk/P4Gsu/src/Gtk.jl:11
 [2] include
   @ ./Base.jl:417 [inlined]
 [3] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@giordano
Copy link
Contributor

Please don't open issues about missing libraries on M1, there is JuliaPackaging/Yggdrasil#2763 collecting all of them

@bhalonen
Copy link
Author

Thanks, I just was trying to figure out where this needed to go when I poked at it a little.

@giordano
Copy link
Contributor

Last week I saw there is a new version of GTK3. I was planning to build it for M1 as JuliaCon project, but for the record that means GTK3_jll will be julia v1.6+ only.

@bhalonen
Copy link
Author

I'm using 1.6 for all of my development right now, so for me that is no big deal. Appreciate the infrastructure work.

@giordano
Copy link
Contributor

And here is ImageView.jl running on an M1, powered by Gtk.jl:

image

@tknopp
Copy link
Collaborator

tknopp commented Jul 29, 2021

very cool. My macbook is 7 years old and needs an upgrade....

@giordano
Copy link
Contributor

Loading Gtk.jl on this machine takes less than half second:

julia> @time_imports using Gtk
      2.7 ms      ┌ Zlib_jll
      0.6 ms          ┌ Preferences
      1.6 ms        ┌ JLLWrappers
      8.5 ms      ┌ Libiconv_jll
     24.8 ms    ┌ XML2_jll
     10.7 ms    ┌ CompilerSupportLibraries_jll
     37.9 ms  ┌ Gettext_jll
      0.5 ms  ┌ Wayland_jll
      0.4 ms  ┌ Xorg_libXfixes_jll
      0.4 ms  ┌ NaNMath
      0.5 ms    ┌ Libmount_jll
      1.5 ms    ┌ PCRE_jll
      1.1 ms    ┌ Libffi_jll
      8.8 ms  ┌ Glib_jll
      0.4 ms  ┌ Libglvnd_jll
      0.4 ms  ┌ iso_codes_jll
      0.3 ms  ┌ Xorg_libXcomposite_jll
      1.0 ms  ┌ JpegTurbo_jll
     30.6 ms  ┌ FixedPointNumbers
      0.7 ms      ┌ Bzip2_jll
      1.6 ms    ┌ FreeType2_jll
      0.6 ms    ┌ libpng_jll
      0.3 ms    ┌ Xorg_libXext_jll
      0.5 ms    ┌ Graphite2_jll
      0.6 ms      ┌ Expat_jll
      0.5 ms      ┌ LZO_jll
      0.5 ms      ┌ Pixman_jll
      0.3 ms      ┌ Xorg_libXrender_jll
      0.3 ms        ┌ Libuuid_jll
      2.8 ms      ┌ Fontconfig_jll
      1.5 ms      ┌ Cairo_jll
      8.7 ms    ┌ HarfBuzz_jll
      0.5 ms    ┌ FriBidi_jll
     14.6 ms  ┌ Pango_jll
      0.3 ms    ┌ Xorg_libX11_jll
      1.0 ms  ┌ Libepoxy_jll
      0.3 ms  ┌ Xorg_libXrandr_jll
      0.3 ms  ┌ at_spi2_atk_jll
      0.2 ms  ┌ Reexport
      0.3 ms  ┌ Xorg_libXinerama_jll
      0.5 ms  ┌ Zstd_jll
    100.2 ms    ┌ ColorTypes
     59.9 ms    ┌ Colors
    162.0 ms  ┌ Graphics
      0.9 ms  ┌ Libtiff_jll
      1.4 ms  ┌ Cairo
      0.3 ms  ┌ Xorg_libXdamage_jll
      0.3 ms  ┌ xkbcommon_jll
      0.6 ms  ┌ ATK_jll
      0.3 ms  ┌ Xorg_libXi_jll
      0.3 ms  ┌ Xorg_libXcursor_jll
      0.3 ms  ┌ Xorg_xkeyboard_config_jll
      0.3 ms  ┌ hicolor_icon_theme_jll
      0.3 ms  ┌ adwaita_icon_theme_jll
      0.8 ms  ┌ gdk_pixbuf_jll
      3.3 ms  ┌ GTK3_jll
    457.8 ms  Gtk

Do you remember when it was 15 seconds (#466)? 😄

However it isn't all good, there are some occasional random crashes that proved to be hard to track: JuliaLang/julia#41440

@timholy
Copy link
Member

timholy commented Jul 29, 2021

If one needs something more reproducible, check out the history of CI on GtkObservables. That should have plenty of segfaults to examine :-). Unfortunately I haven't yet succeeded in capturing them on my own laptop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants