Gtk unit converter testing Gtk on MacOS

41 views
Skip to first unread message

gareth...@gmail.com

unread,
May 4, 2020, 3:02:58 PM5/4/20
to dylan-lang
I'll try here first...

I've got a Gtk library for MacOS which has version 3.24.8 compiled using the jhbuild script.

Using a recent version of OpenDylan (>=2019.1) I get a linker failure which starts:

Link failed:       _Kg_desktop_app_info_get_categoriesVgioI in gio.o
     (maybe you meant: _g_desktop_app_info_get_categoriesVgio)
  "_g_desktop_app_info_get_filename", referenced from:
      _Kg_desktop_app_info_get_filenameVgioI in gio.o
     (maybe you meant: _g_desktop_app_info_get_filenameVgio)
  "_g_desktop_app_info_get_generic_name", referenced from:
      _Kg_desktop_app_info_get_generic_nameVgioI in gio.o
     (maybe you meant: _g_desktop_app_info_get_generic_nameVgio)

and ends:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

most of the intervening errors are g_desktop_app related.

Can any of the Dylan experts :-) tell if this is a problem with the Dylan Gtk implementation  or the Gtk library I've got?

Many thanks
Gareth

Peter Housel

unread,
May 6, 2020, 1:12:58 AM5/6/20
to gareth...@gmail.com, dylan-lang
Not sure what’s happening here, since, g_desktop_app_* is still part of the gio library, and I found all of those symbols in the libgio-2.0.0.dylib installed by Macports on my macOS system. Is that library being included in the failing link command? Does "pkg-config --libs gio-2.0” include the right library path and library names?

-Peter-


--
You received this message because you are subscribed to the Google Groups "dylan-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dylan-lang+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dylan-lang/c46f701a-fd12-4e84-bf3e-28fb1db429fa%40googlegroups.com.

gareth...@stfc.ac.uk

unread,
May 6, 2020, 7:08:04 AM5/6/20
to dylan-lang
Peter,

Thanks for taking the time to reply. I noticed that you were using MacPorts, so I swapped out my jhbuild library and added the MacPorts Gtk3 library and ... bingo it compiles!

Obviously a problem with the jhbuild librabry I have.

One step forward - now I have to teach myself how to debug Dylan programmes as the resulting program fails with a divide by zero error :-)

Anyway - thanks again
Gareth

gareth...@gmail.com

unread,
May 6, 2020, 2:16:23 PM5/6/20
to dylan-lang
Hi again,

A bit more information which may or not be useful to anyone trying Gtk.

If I re-port the Gtk3 package in MacPorts with the +quartz option, I then get the same link error that I get with the jhbuild library (which is also native Quartz!).

Anyway - back to learning how to use LLDB with Dylan :-)

Gareth
Reply all
Reply to author
Forward
0 new messages