glib issue with gtk2



Hi I have satified all the dependencies for GTK+3 and was able to build GTK+3.8.1 with not much of a problem. 

Configure with GTK+2 also had not dependency issues, but at make stage I got some problem.  This problem happened in gtk+-2.24.20 (also tried 19, the same problem)/demos directory

=======================
/usr/local/bin/gdk-pixbuf-csource --raw --build-list        \
            apple_red  ./apple-red.png    \
                gnome_foot ./gnome-foot.png    \
        > test-inline-pixbufs.h                \
    || (rm -f test-inline-pixbufs.h && false)

(process:20176): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()

(process:20176): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()

(process:20176): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(process:20176): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:20176): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:20176): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:20176): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
/bin/sh: line 4: 20176 Segmentation fault      /usr/local/bin/gdk-pixbuf-csource --raw --build-list apple_red ./apple-red.png gnome_foot ./gnome-foot.png > test-inline-pixbufs.h
make: *** [test-inline-pixbufs.h] Error 1
==========================

The problem is with the 
gdk-pixbuf-csource
program,
ldd gdk-pixbuf-csource
    linux-vdso.so.1 =>  (0x00007fffde3ff000)
    libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x00007f44c54da000)
    libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x00007f44c517f000)
    libgmodule-2.0.so.0 => /usr/local/lib/../lib64/libgmodule-2.0.so.0 (0x00007f44c4f7c000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f44c4d3a000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f44c4b23000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f44c4904000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f44c46ea000)
    libgobject-2.0.so.0 => /usr/local/lib/../lib64/libgobject-2.0.so.0 (0x00007f44c449d000)
    libffi.so.6 => /usr/local/lib/../lib64/libffi.so.6 (0x00007f44c4294000)
    libglib-2.0.so.0 => /usr/local/lib/../lib64/libglib-2.0.so.0 (0x00007f44c3f72000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f44c3d54000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f44c3b4c000)
    libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007f44c3926000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f44c36a1000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f44c330e000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f44c56fd000)
    libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0 (0x00007f44c310c000)

These are the glibs objects:
libglib-2.0.la  libglib-2.0.so  libglib-2.0.so.0  libglib-2.0.so.0.3400.3
After replacing with glib-2.36, this problem is over, then I hit another problem:

gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../gdk -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -I/usr/local/include/harfbuzz -I/usr/include/pixman-1 -I/usr/include/libpng12      -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES    -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT testpixbuf.o -MD -MP -MF .deps/testpixbuf.Tpo -c -o testpixbuf.o testpixbuf.c
testpixbuf.c: In function ‘main’:
testpixbuf.c:572:58: error: ‘apple_red’ undeclared (first use in this function)
                 pixbuf = gdk_pixbuf_new_from_inline (-1, apple_red, FALSE, &error);
                                                          ^
testpixbuf.c:572:58: note: each undeclared identifier is reported only once for each function it appears in
testpixbuf.c:582:62: error: ‘gnome_foot’ undeclared (first use in this function)
                 pixbuf = gdk_pixbuf_new_from_inline (sizeof (gnome_foot), gnome_foot, TRUE, NULL);
                                                              ^
make[4]: *** [testpixbuf.o] Error 1
make[4]: Leaving directory `/d1/zhouke/download/gtk+-2.24.20/demos'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/d1/zhouke/download/gtk+-2.24.20/demos'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/d1/zhouke/download/gtk+-2.24.20/demos'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/d1/zhouke/download/gtk+-2.24.20'
This is a compilation error,

Anyone has an idea?

Kemin






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