When I try to build an old gimp that requires gtk 2 support, I received this:
checking for GTK+ - version >= 2.12.5... no
Looking at config.log, there is:
/home/leopoldo/Arquivos-de-Programas-Linux/Gimp/gimp-2.6.12/conftest.c:56: undefined reference to
gtk_major_version' /home/leopoldo/Arquivos-de-Programas-Linux/Gimp/gimp-2.6.12/conftest.c:56: undefined reference to
gtk_minor_version’
/home/leopoldo/Arquivos-de-Programas-Linux/Gimp/gimp-2.6.12/conftest.c:56: undefined reference to `gtk_micro_version’
collect2: error: ld returned 1 exit status
with the conftest being:
#include <gtk/gtk.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
| ;
| return 0;
| }
The problem is that I don’t understand why it isn’t finding them. Gtk.h has among its includes, #include <gtk/gtkversion.h>, where these are defined:
#define GTK_MAJOR_VERSION (2)
#define GTK_MINOR_VERSION (24)
#define GTK_MICRO_VERSION (20)
and I am passing to configure, the directory where it can find both gtk.h and gtkversion.h:
CPPFLAGS="-I/media/34GB/Arquivos-de-Programas-Linux/Gtk±2.24.20/include/gtk-2.0/