Gtk / PackageCompiler / App runtime error

Hi,
I’m trying to get a Gtk standalone application using PackageCompiler. I managed to overcome many hurdles, and finally it works, well, almost… When I run the .exe that was built, I get a bunch of errors like


(MyApp.exe:22304): GLib-GObject-WARNING **: 23:10:35.795: cannot register existing type 'GtkBuildable'

(MyApp.exe:22304): GLib-GObject-CRITICAL **: 23:10:35.795: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(MyApp.exe:22304): GLib-CRITICAL **: 23:10:35.795: g_once_init_leave: assertion 'result != 0' failed

(MyApp.exe:22304): GLib-GObject-CRITICAL **: 23:10:35.795: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed

(MyApp.exe:22304): GLib-GObject-WARNING **: 23:10:35.819: cannot register existing type 'GtkWidget'

(MyApp.exe:22304): GLib-GObject-WARNING **: 23:10:35.819: cannot add class private field to invalid type '<invalid>'

(MyApp.exe:22304): GLib-GObject-WARNING **: 23:10:35.819: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(MyApp.exe:22304): GLib-GObject-CRITICAL **: 23:10:35.819: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

I’m running Julia 1.6.2, PackageCompiler.jl 2.0.4 and Gtk.jl 1.2.0 on a Windows 11 machine.

Any suggestions will be appreciated and be the subject of my eternal gratitude. :smiley: