Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
Re: [Freeciv-Dev] Gtk client and !@#&"* libraries.
Home

Re: [Freeciv-Dev] Gtk client and !@#&"* libraries.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Alexandre BERAUD <a_beraud@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Gtk client and !@#&"* libraries.
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 1999 13:46:01 +0100 (WET DST)

On Wed, 19 May 1999, Alexandre BERAUD wrote:

> Hello,
> 
> I still cannot compile the gtk client correctly. After succeeding
> in installing Gtk+ 1.2.1 after hours of a terrible battle, and
> installing Imlib 1.9.? I tried to compile the gtkclient.
> First, it would be nice to mention that it needs plenty of .h
> files from Freeciv itself. Then, compilation goes not far:
> 
> > make
> gcc -c -O2 -Wall -I. -I../common -I../ai   `gtk-config --cflags`
> gmain.c
> In file included from gmain.c:38:
> menu.h:18: parse error before `GtkAcceleratorTable'
> gmain.c: In function `g_main':
> gmain.c:309: `GtkAcceleratorTable' undeclared (first use this function)
<snip>

> As you can see, the situation is somewhat catastrophic. Could
> someone please explain me what is wrong with this ?

Actually it's quite simple.  The compiler isn't finding the includes for
GTK+ that's why you have all those errors.  Try running "gtk-config
--cflags" yourself in the prompt and check to see if the includes are in
the reported directories.  (Usually gtk includes are in
/usr/local/include/gtk)

> Another problem is that I wanted to use a gtk theme with the
> gtk client. So I had to install Gtk-engines (it was going
> complicated !) and I got this:
> 
> checking for gtk-config... /usr/local/bin/gtk-config
> checking for GTK - version >= 1.1.13... yes
> checking for imlib-config... /usr/local/bin/imlib-config
> checking for IMLIB - version >= 1.8... no
> *** Could not run IMLIB test program, checking why...
> *** The test program compiled, but did not run. This usually means
> *** that the run-time linker is not finding IMLIB or finding the wrong
> *** version of IMLIB. If it is not finding IMLIB, you'll need to set your
> *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
> *** to the installed location  Also, make sure you have run ldconfig if that
                                                          ^^^^^^^^^^^^

Have you tried running ldconfig like the error message says?

If the hints i gave you fail send me the output of these commands and i
should be able to help you further:

gtk-config --cflags
gtk-config --libs
imlib-config --cflags-gdk
imlib-config --libs-gdk

ldconfig -v

ls -l /usr/local/include
ls -l /usr/local/lib

cat /etc/ld.so.conf



If all else fails you can install the .rpm's or .deb's or whatever your
distribution uses as a package format of gtk+ and imlib and try with
those.

Anyway, this is a gtk+ installation problem.  It is not directly related
to the gtk+ client itself.

Hope this helps,

---
Vasco Alexandre da Silva Costa, student @ Instituto Superior Tecnico,
Technical University of Lisbon - Software & Computer Engineering



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