Gtk2.0 compilation hum... issues...



I tried to compile the whole gtk2.0 set, but:

1) Running ./configure for pango, it stops
with an error saying that it can compile but not 
run the glib test... (of course this is with 
/etc/ld.so.conf and /sbin/ldconfig.)

2) Oh well, using --disable-glibtest, I can compile 
and install both pango and atk, which so far seems 
to solve the problem.

3) Regarding ./configure for gtk, it stops with an error 
saying that it cannot find png. I had one png-1.0.6
hapilly running, after this problem I compiled 
and installed png-1.0.12, the latest version. 
The problem remains, so now I have two libpng in 
my system, that compile and run well with other programs, 
but gtk configure is totally unable to find them.
in spite of the symlinks in /usr/lib and /usr/local/lib
and /etc/ld.so.conf plus /sbin/ldconfig.

The offending script code starts at line 13100:
---------------
 if test x$with_libpng != xno && test -z "$LIBPNG"; then
    echo "$as_me:13101: checking for png_read_info in -lpng" >&5
echo $ECHO_N "checking for png_read_info in -lpng... $ECHO_C" >&6
if test "${ac_cv_lib_png_png_read_info+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpng -lz -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 13109 "configure"
#include "confdefs.h"
etc.
-------------

4) Running ./configure for gtk with the option --without-libpng,
everything seems well. However, then make reports the error:

Unable to load image-loading module: ../../gdk-pixbuf/libpixbufloader-png.so: failed to open libtool archive "../../gdk-pixbuf/libpixbufloader-png.la"
make[3]: *** [gtkstockpixbufs.h] Error 1
make[3]: Leaving directory `/home/carlos/gamgi/gtk/gtk-2.0.0/gtk+-2.0.0/gtk/stock-icons'

5) Going to this directory and inserting by hand
 the right -I/... and -L/... paths, in GTK_DEP_CFLAGS,
voila, make continues, but then it stops much further down, 
this time complaining that it cannot find stock functions:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/home/carlos/gamgi/pango/pango-1.0.0/lib\" -DGTK_DATA_PREFIX=\"/home/carlos/gamgi/pango/pango-1.0.0\" -DGTK_SYSCONFDIR=\"/home/carlos/gamgi/pango/pango-1.0.0/etc\" -DGTK_LOCALEDIR=\"/home/carlos/gamgi/pango/pango-1.0.0/share/locale\" -DGTK_VERSION=\"2.0.0\" -DGTK_BINARY_VERSION=\"2.0.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS -I/home/carlos/gamgi/glib/glib-2.0.0//include/glib-2.0 -I/home/carlos/gamgi/glib/glib-2.0.0//lib/glib-2.0/include -I/home/carlos/gamgi/pango/pango-1.0.0/include/pango-1.0 -I/usr/X11R6/include -I/home/carlos/gamgi/atk/atk-1.0.0/include/atk-1.0 -g -O2 -Wall -c gtkiconfactory.c  -fPIC -DPIC -o gtkiconfactory.o
gtkiconfactory.c: In function `get_default_icons':
gtkiconfactory.c:461: `stock_dialog_error_48' undeclared (first use this function)
gtkiconfactory.c:461: (Each undeclared identifier is reported only once
gtkiconfactory.c:461: for each function it appears in.)
gtkiconfactory.c:462: `stock_dialog_info_48' undeclared (first use this function)
etc.

Is there some workaround for this? why oh why is gtk
unable to find my png libs? why is there an option
to compile gtk without png, if png is definitely required
to compile successfully?

Oh, well, back to gtk1.2.10...

Thanks,
Carlos



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