I am trying to build a hello world using GTK, which includes a line:
#include <gtk/gtk.h>
as expected.
There is a line in the attached Makefile:
GTK_INCLUDE = -I/usr/local/include
so he 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, that is, inside the version subdirectory.
Obviously, in this case I can add -I / usr / local / include / gtk-2.0 to the Makefile, but the same problem arises with gtk.h dependencies, etc.
Is there a good way to handle this? Could the configuration be used to locate the header files and add the appropriate include directories? I donβt know anything about customization, but it seems that he learns about the system during the build, which I do afterwards.
Is this common or do I have some freak directory structure which is the real problem?
Thanks for any pointers!
Ray2k source share