In order to begin playing with James Henstridge's latest pygtk bindings, I
needed to check out and compile recent CVS snapshots of glib, pango and
gtk+. Accordingly, I issued the necessary CVS incantations and started
building. Took me awhile to get things going, but I finally got all three
packages configured and managed to build and install glib and pango.
Alas, gtk+ is stumping me. When built out-of-the-box it fails at one point
trying to execute gdk-pixbuf/make-inline-pixbuf because that program hasn't
been built to include support for PNG files. I found a bunch of #ifdef
INCLUDE_xxx blocks in gdk-pixbuf/gdk-pixbuf-io.c but no place anywhere else
that these macros were defined or referenced. Stumbling along, I simply
added
#define INCLUDE_png
to the top of gdk-pixbuf-io.c. Then I got complaints at link time about
gdk_pixbuf__png_fill_vtable not being defined. I found that in io-png.c,
then modified the link commands in Makefile for make-inline-pixbuf and
test-gdk-pixbuf. That got me further along, but now I'm finding this:
make[3]: Entering directory `/home/skip/src/gtk/gtk+/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -g -Wall
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -version-info 2:0:0
-export-dynamic -rpath /usr/local/lib -export-symbols-regex "^[^_].*" -L/usr/local/lib
-L/usr/X11R6/lib -lpangox -lX11 -lpango -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3
-rdynamic -L/usr/local/lib -lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread
-lglib-1.3 -L/usr/X11R6/lib -lXext -lX11 -lm -o gtk-query-immodules-2.0
queryimmodules.o libgtk-x11-1.3.la ../gdk-pixbuf/libgdk_pixbuf-1.3.la
../gdk/libgdk-x11-1.3.la -L/usr/X11R6/lib -lXext -lX11 -L/usr/local/lib
-L/usr/X11R6/lib -lpangox -lX11 -lpango -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3
-rdynamic -L/usr/local/lib -lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread
-lglib-1.3 -lm
libtool: link: warning: `-version-info' is ignored for programs
gcc -g -O2 -g -Wall -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -L/usr/local/lib -L/usr/X11R6/lib -lpangox -lX11
-lpango -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 -rdynamic -L/usr/local/lib
-lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread -lglib-1.3 -L/usr/X11R6/lib
-lXext -lX11 -lm -o .libs/gtk-query-immodules-2.0 queryimmodules.o
.libs/libgtk-x11-1.3.so -lpangox -lX11 -lpango -lgobject-1.3 -lgmodule-1.3 -ldl
-lglib-1.3 -lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread -lglib-1.3 -lXext
-lX11 -lm ../gdk-pixbuf/.libs/libgdk_pixbuf-1.3.so -lgobject-1.3 -lgmodule-1.3 -ldl
-lgthread-1.3 -lpthread -lglib-1.3 -ltiff -ljpeg -lpng -lz
../gdk/.libs/libgdk-x11-1.3.so -lpangox -lX11 -lpango -lgobject-1.3 -lgmodule-1.3 -ldl
-lglib-1.3 -lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread -lglib-1.3 -lXext
-lX11 -lm -L/usr/X11R6/lib -lXext -lX11 -L/usr/local/lib -L/usr/X11R6/lib -lpangox
-lX11 -lpango -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 -rdynamic -L/usr/local/lib
-lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread -lglib-1.3 -lm
-Wl,--export-dynamic -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: warning: libjpeg.so.62, needed by
../gdk-pixbuf/.libs/libgdk_pixbuf-1.3.so, may conflict with libjpeg.so.6
/usr/bin/ld: warning: libpng.so.2, needed by
../gdk-pixbuf/.libs/libgdk_pixbuf-1.3.so, may conflict with libpng.so.1.0
../gdk-pixbuf/.libs/libgdk_pixbuf-1.3.so: undefined reference to
`gdk_pixbuf__png_fill_vtable'
.libs/libgtk-x11-1.3.so: undefined reference to `g_param_spec_unichar'
Since that seems to also involve the gdk-pixbuf stuff I thought I'd stop and
ask for some help before running off like a bull in a china shop once again.
Am I missing something essential in the configure step (I just executed
autogen.sh to configure all three packages) that is keeping compilation from
completing? The fact that I couldn't find the INCLUDE_png macro mentioned
anywhere suggests to me that I'm missing something important.
Thanks,
--
Skip Montanaro ([EMAIL PROTECTED])
(847)971-7098-�X��f��)��+-��%��`�����!���f�� ��+����Y���b�ا~��Ib�