Em Qua, 2002-10-30 ās 03:14, Ahmad Baitalmal escreveu: > Ok, > So it compiled just fine with no errors. > I installed it using "make install" in the gnome-python dir. > It tells me that it's installed and I do see the library files in the > site-packages. > > Here is where I'm stuck > I import gtk, works fine, > I import gtkhtml2, works fine, > I import gtksourceview, kablam, here is what I get > > /usr/lib/python2.2/site-packages/gtksourceviewmodule.so: undefined > symbol: gtk_source_buffer_get_tag_end > > The library is linking at compile time correctly (-lgtksourceview), and > I checked gtksourceview.c and confirmed a wrapper for that function are > there. Verify with ld, so it's actually linked against libgtksourceview.o and verify so the symbol, gtk_source_buffer_get_tag_end exists in the library by using nm.
> > What am I missing ? > > Thx > Ahmad > > On Tue, 2002-10-29 at 13:09, Ahmad Baitalmal wrote: > On Tue, 2002-10-29 at 06:34, Johan Dahlin wrote: > Nice, i hope this can enter gnome-python in cvs soon. > > I'm close, or so it seems. > > I got how the type thing works, I'm not sure how to deal with this "too > few arguments" deal. > I thought it might be like the two overridden _wrap_..._stream functions > in gtkhtml2's wrapping (am I way off here?). Is that why those two > functions were overridden in gtkhtml2.override? > > Thx, > Compile errors: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.2 > -I/usr/include/pygtk-2.0 -I/usr/local/include/gtksourceview > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2 > -I/usr/X11R6/include -I/usr/include/atk-1.0 -g -O2 -Wall -std=c9x -c > gtksourceview.c -MT gtksourceviewmodule_la-gtksourceview.lo -MD -MP -MF > .deps/gtksourceviewmodule_la-gtksourceview.TPlo -fPIC -DPIC -o > gtksourceviewmodule_la-gtksourceview.lo > gtksourceview.c: In function `_wrap_gtk_source_buffer_load': > gtksourceview.c:415: too few arguments to function > `gtk_source_buffer_load' > gtksourceview.c: In function `_wrap_gtk_source_buffer_save': > gtksourceview.c:428: too few arguments to function > `gtk_source_buffer_save' > gtksourceview.c: In function > `_wrap_gtk_source_buffer_load_with_character_encoding': > gtksourceview.c:441: too few arguments to function > `gtk_source_buffer_load_with_character_encoding' > gtksourceview.c: At top level: > gtksourceview.c:840: redefinition of > `_wrap_gtk_source_buffer_iter_has_syntax_tag' > gtksourceview.c:819: `_wrap_gtk_source_buffer_iter_has_syntax_tag' > previously defined here > gtksourceview.c:819: warning: > `_wrap_gtk_source_buffer_iter_has_syntax_tag' defined but not used > make[2]: *** [gtksourceviewmodule_la-gtksourceview.lo] Error 1 > make[2]: Leaving directory > `/home/ahmad/Projects/gnome-python/gnome-python/gtksourceview' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/ahmad/Projects/gnome-python/gnome-python' > make: *** [all] Error 2 > > > > -- > > - - -- ---- ----------------------------------------- --- -- - - > Ahmad Baitalmal > BitBuilder > web: http://www.bitbuilder.com > - - -- ---- > -------------------------------------------------------------- --- -- - > - > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > -- > > - - -- ---- ----------------------------------------- --- -- - - > Ahmad Baitalmal > BitBuilder > web: http://www.bitbuilder.com > - - -- ---- > -------------------------------------------------------------- --- -- - > - > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/