Re: Compiling gtk error - png ???



"Cupitt, John" wrote:
> 
> Hi, you don't say which version of libpng you have, could that be the
> problem?

Hello,

In fact, I'm running Solaris 9. I've creating everything from scratch.

I compiled and installed without problem lib tiff, jpeg and png, glib
2.2.1, atk 1.2.0 and pango 1.2.1.

I'm using libpng 1.2.5 (the last I found...).

There is an error before, but the compiler continues. I think the error
is related.

It seems to me that it can't create gdk-pixbuf.loaders file :

*********************************

/bin/bash ../libtool --mode=link gcc  -g -O2 -Wall -L/usr/local/jpeg/lib
-L/usr/local/tiff/lib -L/usr/local/libpng/lib -o test-gdk-pixbuf 
test-gdk-pixbuf.o libgdk_pixbuf-2.0.la 
gcc -g -O2 -Wall -o test-gdk-pixbuf test-gdk-pixbuf.o 
-L/usr/local/jpeg/lib -L/usr/local/tiff/lib -L/usr/local/libpng/lib
./.libs/libgdk_pixbuf-2.0.a -L/usr/local/gtk-2.2.1/lib
/usr/local/gtk-2.2.1/lib/libgmodule-2.0.a -ldl
/usr/local/gtk-2.2.1/lib/libgobject-2.0.a
/usr/local/gtk-2.2.1/lib/libglib-2.0.a -ltiff
/usr/local/jpeg/lib/libjpeg.a -lpng -lz -lm
LOADERS=`echo libpixbufloader-*.la` ; \
if test "x$LOADERS" != 'xlibpixbufloader-*.la' ; then \
          echo "Writing a gdk-pixbuf.loader file to use when running
examples before installing gdk-pixbuf."; \
  ../gdk-pixbuf/gdk-pixbuf-query-loaders $LOADERS > ./gdk-pixbuf.loaders
;\
else \
          echo "No dynamic modules found; will use only static modules
for uninstalled example programs."; \
  touch gdk-pixbuf.loaders; \
fi
Writing a gdk-pixbuf.loader file to use when running examples before
installing gdk-pixbuf.
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-ani.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-bmp.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-gif.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-ico.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-jpeg.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-pnm.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-ras.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-tga.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-tiff.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-wbmp.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-xbm.la
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-xpm.la
gmake[3]: Leaving directory
`/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf'
gmake[2]: Leaving directory
`/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf'

************************************

If I try to launch this by hand (no matter what image format I take), it
does nothing :

martins paris-new:2.2.1/gtk+-2.2.1/gdk-pixbuf>
./gdk-pixbuf-query-loaders libpixbufloader-static-png.la 
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
#
Cannot load loader
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la
martins paris-new:2.2.1/gtk+-2.2.1/gdk-pixbuf> 

> 
> I know on SuSE I had to build my own libpng, since they only ship 1.0,
> and gtk needs 1.2 or later (I think).
> 
> John
> 
> Jose Marcio Martins da Cruz wrote:
> >
> > Hello again,
> >
> > When I try to compile gtk+-2.2.1, I have the following error
> > message :
> >
> > gmake[3]: Entering directory
> > `/export/private/sources/gtk/gtk+-2.2.1/gtk/stock-icons'
> > GDK_PIXBUF_MODULE_FILE=../../gdk-pixbuf/gdk-pixbuf.loaders
> > ../../gdk-pixbuf/gdk-pixbuf-csource        \
> >    --raw --build-list stock_add_16 ./stock_add_16.png stock_add_24
> > ./stock_add_24.png stock_align_center_16 ./stock_align_center_16.png
> > stock_align_center_24 ./stock_align_center_24.png
> stock_align_justify_16
> > ./stock_align_justify_16.png stock_align_justify_24
> > ./stock_align_justify_24.png stock_align_left_16
> > ./stock_align_left_16.png stock_align_left_24
> ./stock_align_left_24.png
> > stock_align_right_16 ./stock_align_right_16.png stock_align_right_24
> > ./stock_align_right_24.png stock_apply_20 ./stock_apply_20.png
> > stock_cancel_20 ./stock_cancel_20.png stock_dnd_multiple_32
> > ./stock_dnd_multiple_32.png stock_bottom_16 ./stock_bottom_16.png
> > stock_bottom_24 ./stock_bottom_24.png stock_cdrom_16
> > ./stock_cdrom_16.png stock_cdrom_24 ./stock_cdrom_24.png
> stock_clear_24
> > ./stock_clear_24.png stock_close_20 ./stock_close_20.png
> stock_close_24
> > ./stock_close_24.png stock_colorselector_24
> ./stock_colorselector_24.png
> > stock_color_picker_25 ./stock_color_picker_25.png >
> ./gtkstockpixbufs.h
> > ||       \
> >            ( rm -f ./gtkstockpixbufs.h && false )
> > failed to load "./stock_add_16.png": Couldn't recognize the image file
> > format for file './stock_add_16.png'
> > gmake[3]: *** [gtkstockpixbufs.h] Error 1
> > gmake[3]: Leaving directory
> > `/export/private/sources/gtk/gtk+-2.2.1/gtk/stock-icons'
> > gmake[2]: *** [all-recursive] Error 1
> > gmake[2]: Leaving directory
> `/export/private/sources/gtk/gtk+-2.2.1/gtk'
> > gmake[1]: *** [all-recursive] Error 1
> > gmake[1]: Leaving directory `/export/private/sources/gtk/gtk+-2.2.1'
> > gmake: *** [all-recursive-am] Error 2
> > martins paris-new:sources/gtk/gtk+-2.2.1>
> >
> > I'm using the following command to configure gtk :
> >
> > #! /bin/sh
> >
> > PREFIX=/usr/local/gtk-2.2.1
> > export PREFIX
> >
> > PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:/usr/local/lib/pkgconfig"
> > PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
> > export PKG_CONFIG_PATH
> >
> > ./configure \
> >         --enable-static=yes \
> >         --enable-shared=no \
> >         --prefix=$PREFIX \
> >         --disable-gtk-doc \
> >         --disable-modules \
> >         --with-x
> >
> > libpng is correctly (I think) installed.
> >
> > Maybe someone have an idea...
> >
> > Thanks
> >
> >

-- 
 ---------------------------------------------------------------
 Jose Marcio MARTINS DA CRUZ           Tel. :(33) 01.40.51.93.41
 Ecole Nationale Superieure des Mines de Paris   
 Centre de Calcul                      http://j-chkmail.ensmp.fr
 60, bd Saint Michel                http://www.ensmp.fr/~martins
 75272 - PARIS CEDEX 06      mailto:Jose-Marcio Martins ensmp fr        
 ---------------------------------------------------------------



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