[gcompris-devel] Performance issues
Bruno Coudoin
bruno.coudoin at free.fr
Sun Sep 30 21:44:16 UTC 2007
Le dimanche 30 septembre 2007 à 17:57 +0300, Terje Bergström a écrit :
> On Sunday 30 September 2007 13:29:18 Terje Bergström wrote:
> > It seems libshapegame has an unknown symbol at the moment:
> > gcompris: Failed to open module /usr/lib/gcompris/libshapegame.so with name
> > shapegame (error=/usr/lib/gcompris/libshapegame.so: undefined symbol:
> > gnome_canvas_polygon_get_type)
> > This is why paintings puzzle is not working. Looking further.
>
> To continue monolog, here's the diff to correct the problem:
>
> --- gcompris-8.4.orig/src/gcompris/gcompris.c
> +++ gcompris-8.4/src/gcompris/gcompris.c
> @@ -1896,9 +1896,11 @@
> /* FIXME: HACK Needed or we have unresolved symbols at python plugin dlopen
> * Is there a better way to fix these?
> */
> - GType dummy = gnome_canvas_polygon_get_type();
> - dummy = gnome_canvas_clipgroup_get_type();
> - dummy = gnome_canvas_bpath_get_type();
> + volatile GnomeCanvasItem *dummy = NULL;
> + GNOME_IS_CANVAS_POLYGON(dummy);
> + GNOME_IS_CANVAS_CLIPGROUP(dummy);
> + GNOME_IS_CANVAS_BPATH(dummy);
> + GNOME_TYPE_CANVAS_POLYGON();
The last line does'nt compile on my side:
gcompris.c:1916: erreur: called object «gnome_canvas_polygon_get_type()"
is not a function
Why do you make dummy volatile ?
More information about the Gcompris-devel
mailing list