Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: (PR#6609) 1.14.1-beta1 gtk2 configure
Home

[Freeciv-Dev] Re: (PR#6609) 1.14.1-beta1 gtk2 configure

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rt-guest@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6609) 1.14.1-beta1 gtk2 configure
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Thu, 23 Oct 2003 17:33:23 -0700
Reply-to: rt@xxxxxxxxxxxxxx


Can you compile other GTK+ 2.0 programs? Sounds like you have a problem
with your FreeType library installation.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa

On Thu, 23 Oct 2003, Guest wrote:

>
>
> Can't configure gtk2 with 1.14.1-beta1, it was working with cvs-jul-14.
>
> 1.14.1-beta1
> ========================================================================
>
> configure:7313: checking for GTK+ - version >= 2.0.0
> configure:7425: gcc -o conftest -g -O2 -Wall  -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     conftest.c
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0
> -lpangoxft-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>    >&5
> /usr/lib/libpangoxft-1.0.so: undefined reference to `FT_Seek_Stream'
> /usr/lib/libpangoxft-1.0.so: undefined reference to `FT_Get_Short'
> /usr/lib/libpangoxft-1.0.so: undefined reference to `FT_Forget_Frame'
> /usr/lib/libpangoxft-1.0.so: undefined reference to `FT_Access_Frame'
> /usr/lib/libpangoxft-1.0.so: undefined reference to `FT_Get_Long'
> collect2: ld returned 1 exit status
> configure:7428: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> #line 7348 "configure"
> #include "confdefs.h"
>
> #include <gtk/gtk.h>
> #include <stdio.h>
> #include <stdlib.h>
>
> int
> main ()
> {
>   int major, minor, micro;
>   char *tmp_version;
>
>   system ("touch conf.gtktest");
>
>   /* HP/UX 9 (%@#!) writes to sscanf strings */
>   tmp_version = g_strdup("2.0.0");
>   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
>      printf("%s, bad version string\n", "2.0.0");
>      exit(1);
>    }
>
>   if ((gtk_major_version != 2) ||
>       (gtk_minor_version != 0) ||
>       (gtk_micro_version != 2))
>     {
>       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned
> %d.%d.%d, but GTK+ (%d.%d.%d)\n",
>              2, 0, 2,
>              gtk_major_version, gtk_minor_version, gtk_micro_version);
>       printf ("*** was found! If pkg-config was correct, then it is
> best\n");
>       printf ("*** to remove the old version of GTK+. You may also be
> able to fix the error\n");
>       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable,
> or by editing\n");
>       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if
> that is\n");
>       printf("*** required on your system.\n");
>       printf("*** If pkg-config was wrong, set the environment variable
> PKG_CONFIG_PATH\n");
>       printf("*** to point to the correct configuration files\n");
>     }
>   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
>          (gtk_minor_version != GTK_MINOR_VERSION) ||
>            (gtk_micro_version != GTK_MICRO_VERSION))
>     {
>       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
>            GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
>       printf("*** library (version %d.%d.%d)\n",
>            gtk_major_version, gtk_minor_version, gtk_micro_version);
>     }
>   else
>     {
>       if ((gtk_major_version > major) ||
>         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
>         ((gtk_major_version == major) && (gtk_minor_version == minor) &&
> (gtk_micro_version >= micro)))
>       {
>         return 0;
>        }
>      else
>       {
>         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
>                gtk_major_version, gtk_minor_version, gtk_micro_version);
>         printf("*** You need a version of GTK+ newer than %d.%d.%d. The
> latest version of\n",
>              major, minor, micro);
>         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n";);
>         printf("***\n");
>         printf("*** If you have already installed a sufficiently new
> version, this error\n");
>         printf("*** probably means that the wrong copy of the pkg-config
> shell script is\n");
>         printf("*** being found. The easiest way to fix this is to
> remove the old version\n");
>         printf("*** of GTK+, but you can also set the PKG_CONFIG
> environment to point to the\n");
>         printf("*** correct copy of pkg-config. (In this case, you will
> have to\n");
>         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or
> edit /etc/ld.so.conf\n");
>         printf("*** so that the correct libraries are found at
> run-time))\n");
>       }
>     }
>   return 1;
> }
>
> configure:7454: result: no
>
> cvs-jul-14 :
> ========================================================================
> configure:6233: checking for GTK+ - version >= 2.0.0
> configure:6345: gcc -o conftest -Wall -Wpointer-arith -Wcast-align
> -Wmissing-prototypes -Wmissing-declarations  -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     conftest.c
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0
> -lpangoxft-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>   >&5
> configure:6348: $? = 0
> configure:6350: ./conftest
> configure:6353: $? = 0
> configure:6370: result: yes (version 2.0.2)
>
>
>




[Prev in Thread] Current Thread [Next in Thread]