Gimp can't find some Gtk defines

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:


gtk_major_version != GTK_MAJOR_VERSION ?

Yeah you probably need to specify --libdir=DIR for the configure script so it can find the files, which is what the gtk_*_version calls are looking for I believe.

Hi. I did so and it didn’t change anything:


True. No idea where the lowercase are defined.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.