Re: [gtk-list] Re: Compiling Glad how?



* Tero Pulkkinen
| Preben Randhol <randhol@pvv.ntnu.no> writes:
[snip]
| This says everything... you dont have /usr/local/bin in your PATH
| variable.

I do:

% echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin (etc...)

When I run gtk-config from a arbitrary directory I get:

% gtk-config --libs --cflags --version
-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm
-I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include
1.0.0


config.log reports:

configure:1014: checking for gtk-config
configure:1045: checking for GTK - version >= 0.99.5
configure:1080: gcc -o conftest  -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include   conftest.c  -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm 1>&5
configure: failed program was:
#line 1058 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>

int 
main ()
{
  int major, minor, micro;

  if (sscanf("0.99.5", "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "0.99.5");
     exit(1);
   }

   return !((gtk_major_version > major) ||
            ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
            ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
}

-- 
Preben Randhol                    | Affliction is enamoured of thy parts,
Tlf    73940929/(735)94076 [arb]  | And thou art wedded to calamity.
Email  randhol@pvv.org            |
http://www.pvv.org/~randhol/      |                     - W. Shakespeare



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]