Subject: | Compilation fails with header errors |
Compilation fails with glib 2.32 with errors like:
In file included from Gimp.xs:4:0:
/usr/include/gimp-2.0/libgimp/gimpexport.h:23:2: error: #error "Only
<libgimp/gimpui.h> can be included directly."
I fixed this by changing the following lines:
extra.c, line 14 -> change to #include <libgimpwidgets/gimpwidgets.h>
Gimp.xs, line 4: change to #include <libgimp/gimpui.h>
Finally, the compilation was missing some include directories, I had to
manually include:
make CC="gcc -I/usr/include/gtk-2.0/ -I/usr/include/pango-1.0/
-I/usr/lib64/gtk-2.0/include/ -I/usr/include/atk-1.0/"
(somewhere you are missing a pkg-config --cflags gtk+-2.0)