Hello,
I'm trying to build a hello world using GTK, which includes the line:
#include <gtk/gtk.h>
as you would expect.
The Makefile supplied has the line:
GTK_INCLUDE = -I/usr/local/include
so it would expect to find gtk.h in /usr/local/include/gtk/gtk.h. However on my system, it is located in /usr/local/include/gtk-2.0/gtk/gtk.h, ie within a version'ed subdirectory.
Obviously in this case I can add -I/usr/local/include/gtk-2.0 to the Makefile, but the same problem crops up with gtk.h's dependencies and so on.
Is there a good way of dealing with this? Could configure be used to locate where the header files are and add the appropriate include directories? I know next to nothing about configure, but it seems to find out things about the system at build time, which is what I am after.
Is this a common occurence or do I have some freak directory structure which is the real problem?
Thanks for any pointers!