Compiling GTK4 with Meson: What am I doing wrong?

I am following this guide on how to get started with GTK4 application development. Problem is, when I try to compile the app using Meson with dependency('gtk4), it doesn’t compile. When using gcc with pkg-config directly, it gives the error “gtk/gtk.h: No such file or directory”.

GTK3 works just fine with this example. Here is a screenshot of my workspace for more info:

Hi,
Didn’t you forget the # in your include?

1 Like

Yeah…it compiles just fine now lol. Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.