I'm running Ubuntu 21.10 and have installed build-essential
, libgtk-4-dev
and Gnome Builder as IDE. I'm starting with a basic tutorial that starts out #include <gtk/gtk.h>
but it gives the error:
1:10: error: 'gtk/gtk.h' file not found
I read somewhere that it should be in /usr/include/ but when I looked I found it was at /usr/include/gtk-4.0/gtk/gtk.h
What's the best way to set up my system so that the default include line works? I read https://askubuntu.com/questions/1374329/how-to-compile-a-gtk4-application-in-ubuntu-21-10 but his fix was installing libgtk-4-dev which I've already done. I thought of creating a symlink from /usr/include/gtk-4.0/gtk/gtk.h to /usr/include/ but that seems like a rabbit hole I shouldn't go down. I'm stuck before I even got started! Any help appreciated.