Re: Compiling gtk error - png ???



Maybe someone may help us... glib developpers, maybe...

There was an error before this one. When makefile tried to create gdk-pix-buf/gdk-pixbuf.loaders file there was the following error, which I reproduce, running it by hand :

./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

This happens not only with png, but with all image formats.

The error happens at a g_module_open call : line 76 of queryloaders.c file.

So I added some debuging lines :

        module = g_module_open (path, 0);
+        fprintf(stderr, "PATH = %s\n", path);
+        if (module == NULL)
+                fprintf(stderr, " module == NULL\n");
        if (module &&

I got the following :

./gdk-pixbuf-query-loaders libpixbufloader-static-png.la
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
#
PATH = /export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la
 module == NULL
Cannot load loader /export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la

The file *.la is there. Library file *.a is inside .libs directory.

If I launch this with a truss, I got the following :

...
brk(0x000555D8)                                 = 0
access("/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la", 0) = 0
open64("/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la", O_RDONLY) = 3
brk(0x000555D8)                                 = 0
brk(0x000575D8)                                 = 0
read(3, " #   l i b p i x b u f l".., 4000)     = 824
read(3, 0x000546B0, 4000)                       = 0
close(3)                                        = 0
open("/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/.libs/", O_RDONLY) = 3
fstat(3, 0xFFBFE934)                            = 0
close(3)                                        = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF390000
fstat64(2, 0xFFBFE188)                          = 0
PATH = write(2, " P A T H   =  ", 7)                    = 7
/export/private/sources/gtk/2.2.1/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.lawrite(2, " / e x p o r t / p r i v".., 85)        = 85

write(2, "\n", 1)                               = 1
 module == NULL
write(2, "   m o d u l e   = =   N".., 16)      = 16

It seems to come from glib module, but I don't know glib library.

Maybe the problem may come from libtool/configure/Makefile...

Maybe someone has an idea.



Rick Jones wrote:
> 
> > >            ( 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
> 
> I seem to experience this as well (HP-UX 11.1, HP ANSI C, either HP
> make or gmake 3.80) and thusfar I've draw a blank, or have been
> completely clueless in my searches of archives and such.
> 
> I'm not sure if it is salient or not, but libpng is the only thing
> that is installed under /opt instead of /usr in my case - but I have
> done the configure with CFLAGS and LDFLAGS to point at the includes
> and the libraries.  I've not verified though that all the makefiles
> are actually honouring that.
> 
> rick jones
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

-- 
 ---------------------------------------------------------------
 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]