Am Sonntag, den 30.10.2011, 13:36 +0100 schrieb Deskblue Software - Javier Sánchez: > Hi, guys:
Hi Javier, > This morning I'm playing with EOG. I'm trying to create a new abstract > class EogView to the bug #546504. This is a new custom widget (child of > GtkBin) that defines the current API of EogScrollView. > > When I try to compile a have this error: > > --------------------------------------------------------------------- > copying selected object files to avoid basename conflicts... > CC eog-main.o > CCLD eog > GISCAN Eog-3.0.gir > Invalid GType function: 'eog_view_get_type' > > ** ERROR **: Failed to extract GType data: Failed to find symbol > 'eog_view_get_type' > Command '['./eog', > '--introspect-dump=/tmp/tmp-introspectKnfCul/functions.txt,/tmp/tmp-introspectKnfCul/dump.xml']' > returned non-zero exit status -5 > make[3]: *** [Eog-3.0.gir] Error 1 > make[3]: se sale del directorio «/home/jsanchez/dev/git/gnome/eog/src» > make[2]: *** [all] Error 2 > make[2]: se sale del directorio «/home/jsanchez/dev/git/gnome/eog/src» > make[1]: *** [all-recursive] Error 1 > make[1]: se sale del directorio «/home/jsanchez/dev/git/gnome/eog» > make: *** [all] Error 2 > *** Error during phase build of eog: ########## Error running make *** > [1/1] > --------------------------------------------------------------------- > > Attached to this mail I send EogView.h and EogView.c that define and > implement the widget. > > What am I forgetting? I think this is an issue with the way eog is built. The problem is that libtool optimizes the symbols away that are not used in the final binary. So, as long as you don't use EogView in other parts of eog it will be stripped from the binary, making them unavailable for introspection. gedit, which builds in a similar fashion, installs libgedit-private.so just to avoid this problem[1]. If this starts to be a real problem we should look into doing something similar (moving pure external stuff into its own library). Regards, Felix [1] https://bugzilla.gnome.org/show_bug.cgi?id=606363#c32 _______________________________________________ eog-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/eog-list
