[gcompris-devel] installation of 4.2 issues- please help.

Richard Boyce boycer at u.washington.edu
Thu Dec 18 11:26:01 UTC 2003


Hello,

I, and my 3 little children were very pleased to with the Gcompris v.1.0 
in my SuSE 8.1 distribution. I would like to contribute a board or two 
but am having some trouble getting the source installation to work 
properly. To begin with the I had to modify the config.status to get it 
all to build. The original CFLAGS were:

#line 581 config.status

s, at GCOMPRIS_CFLAGS@,-pthread -I/opt/gnome2/include/libgnome-2.0 
-I/opt/gnome2/include/libgnomeui-2.0 -I/usr/local/include/gtk-2.0 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/opt/gnome2/include/libgnomecanvas-2.0 -I/usr/include/libxml2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/local/include/libassetml-1.0  ,;t t
s, at GCOMPRIS_LIBS@,-Wl,--export-dynamic -pthread -L/opt/gnome2/lib 
-L/usr/local/lib -L/usr/X11R6/lib -llibgnome-2 -llibgnomeui-2 
-lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -llibgnomecanvas-2 
-lgthread-2.0 -lglib-2.0 -lassetml -lxml2 -lz -lm -lglib  ,;t t

*make produced many of the following errors for each included library:
In file included from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/local/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/local/include/gtk-2.0/gtk/gtk.h:31,
                 from /opt/gnome2/include/libgnomeui-2.0/gnome.h:4,
                 from gcompris.h:29,
                 from main.c:24:
/usr/local/include/gtk-2.0/gdk/gdktypes.h:33:25: pango/pango.h: No such 
file or directory

?Does anyone know what the problem is here?

**After experimenting, GCompris built with:
#line 581 config.status

s, at GCOMPRIS_CFLAGS@,-pthread -I/opt/gnome2/include/libgnome-2.0 
-I/opt/gnome2/include/libgnomeui-2.0 -I/usr/local/include/gtk-2.0 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/opt/gnome2/include/libgnomecanvas-2.0 -I/usr/include/libxml2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/local/include/libassetml-1.0 -I/usr/local/include/pango-1.0 
-I/usr/include/libxml2 -I/usr/local/include/atk-1.0 
-I/opt/gnome2/include/gnome-vfs-2.0 -I/opt/gnome2/include/libbonobo-2.0 
-I/opt/gnome2/include/libbonoboui-2.0 -I/opt/gnome/include/gnome-1.0 ,;t t
s, at GCOMPRIS_LIBS@,-Wl,--export-dynamic -pthread -L/opt/gnome2/lib 
-L/opt/gnome/lib -L/usr/local/lib -L/usr/X11R6/lib 
/opt/gnome2/lib/libgnome-2.so.0 /opt/gnome2/lib/libgnomeui-2.so.0 
/usr/local/lib/libgdk_pixbuf-2.0.so.0 -lgobject-2.0 -lgmodule-2.0 -ldl  
/opt/gnome2/lib/libgnomecanvas-2.so.0 -lgthread-2.0 -lglib-2.0 -lassetml 
-lxml2 -lz -lm -lglib  /usr/local/lib/libatk-1.0.so 
/opt/gnome2/lib/libgnomevfs-2.so.0 /opt/gnome2/lib/libbonobo-2.so.0 
/opt/gnome2/lib/libbonoboui-2.so.0 /opt/gnome/lib/libart_lgpl.so.2 ,;t t


Now, the very first time that everything built Gcompris worked without 
crashing. So, I played with the boards and decided to try and implement 
one. Using the "developers guide" I followed the instructions 1-4 for 
copying an existing game and making a new one. Instruction 5 confused me.

?Can you tell me what you mean by
 "In boards/menu.xml add the entry point for the new game:
<Data filename="clockgame.xml"/> "?
I did not see any examples of this in my files.


------
I tried to make with the new file, typing "make" in the ../gcompris-4.2/ 
directory. make install worked and tried to run, now GCompris crashed 
right away showing a blank window (and playing music) but writing:

(gcompris:2058): GLib-GObject-WARNING **: cannot create instance of 
abstract (non-instantiatable) type `GtkWidget'
ALSA lib pcm_hw.c:835:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: 
Device or resource busy

(gnome_segv2:2062): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

**I tried GDB in emacs and traced back after crash:
(gdb) up
#1  0x40227627 in g_object_notify_queue_freeze (object=0x0, 
context=0x40249af0) at gobjectnotifyqueue.c:71
71    gobjectnotifyqueue.c: No such file or directory.
    in gobjectnotifyqueue.c
(gdb) up
#2  0x40224186 in g_object_newv (object_type=134795008, n_parameters=0, 
parameters=0x0) at gobject.c:734
734    gobject.c: No such file or directory.
    in gobject.c
(gdb) up
#3  0x402247d7 in g_object_new_valist (object_type=134795008, 
first_property_name=0x0, var_args=0xbffff378 "\230óÿ¿\017×\227@ 
ô\a\b¸ô\a\b\b")
    at gobject.c:764
764    in gobject.c
(gdb) up
#4  0x406fd50b in gtk_widget_new (type=134795008, 
first_property_name=0x0) at gtkwidget.c:1554
1554    gtkwidget.c: No such file or directory.
    in gtkwidget.c
(gdb) up
#5  0x40089ce5 in gnome_window_icon_init () from 
/opt/gnome2/lib/libgnomeui-2.so.0
(gdb) up
#6  0x40968435 in _SmcProcessMessage () from /usr/X11R6/lib/libSM.so.6

I have tried many things to correct this including completely removing 
and reinstalling both assetml and GCompris but I cannot get it to run
?Can you please help?

yours,

-- 
Richard Boyce

boycer at u.washington.edu






More information about the Gcompris-devel mailing list