The problem I’m encountering is that, after all the dependencies seem to build properly, I get these type of errors:
gtk4.vapi:14447.2-14447.47: error: Gtk' already contains a definition for tree_row_reference_inserted’
public static void tree_row_reference_inserted (GLib.Object proxy, Gtk.TreePath path);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gtk±3.0.vapi:13320.2-13320.47: note: previous definition of `tree_row_reference_inserted’ was here
public static void tree_row_reference_inserted (GLib.Object proxy, Gtk.TreePath path);
These errors are repeated for pretty much every Vala binding.
Do you know what might be the issue? Is my version of Vala too old? (0.48.*)
I also tried compiling the latest version of Vala in the flatpak but the issues remain.
you can’t depend on GTK3 and GTK4 at the same time since both provide the same symbols. You’ll have to remove the GTK3 dependency, add the GTK4 dependency and then port everything in one go.
Thank you so much for the reply.
I already removed the gtk3 dependencies from my meson file.
In which other locations should I update it?
Sorry if it’s a stupid question.
If you’ve already removed the GTK3 dependency from your meson file some other library might be pulling GTK3 in (like libhandy, libdazzle etc.). You’ll have to remove the dependency on those too (and replace them with their GTK4 equivalents if possible, e.g. libadwaita instead of libhandy)