GSK library question

Hello folks, my first post here.

I’m building GTK4 and the demos on Windows. But I’m confused about how the .DLL dependencies should be. E.g. is GSK a part of the GTK4 DLL-library or should it be used on
it’s own?

Grepping through the meson.build files, I see only one use of shared_library().
Namely for gtk-4 and -DGTK_COMPILATION is set for the GSK sources too.
So I ass-u-me GSK is an integral part of GTK. But looking at e.g. Vala-for-Windows, I
see no export of any gsk_ symbols.

It would be nice to see a .DLL dependency map of the big picture. If such thing exist.

Hi,

The gtk4 library (*.dll on Windows, *.so on Linux) contains all Gtk, Gdk and Gsk symbols. So you only need that dll.

The Gsk API for vala can be found here: Gsk – gtk4

Thanks for the info.

You seems to know a lot of GTK/Glib. So maybe you could help me with
glib-compile-resources.exe. It takes forever generating a .c-file from e.g..

Using ProcessExplorer, I see it’s spawns a huge number of
gspawn-win64-helper-console.exe process (in sequence).

The cmd-line is something like this:

<root>\bin\gspawn-win64-helper-console.exe 5 6 z z - - y y
 - - f:/MinGW32/src/Parsers/libxml2/bin/xmllint.exe --nonet 
  --noblanks --output c:\temp\resource-XXTOH6D3 
  ./icons/edit-cut-symbolic.svg

I suspect the slowness is due to xmllint.exe. Why so slow? Approx 5 minutes for
an XML-file with only 350 files. Is this normal?

This is likely caused by Windows Defender slowing down opening files.

The recommendation is to add an exception for the location of your source code.

As a side note: please, don’t hijack your own topics. Open up a new topic for new questions.

1 Like