[pygtk] Wrapping gtksourceview

Johan Dahlin jdahlin@async.com.br
30 Oct 2002 11:12:00 -0300


Em Qua, 2002-10-30 =E0s 03:14, Ahmad Baitalmal escreveu:
> Ok,
> So it compiled just fine with no errors.=20
> 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.
>=20
> 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
>=20
>  /usr/lib/python2.2/site-packages/gtksourceviewmodule.so: undefined
> symbol: gtk_source_buffer_get_tag_end
>=20
> The library is linking at compile time correctly (-lgtksourceview), and
> I checked gtksourceview.c and confirmed a wrapper for that function are
> there.=20
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.

>=20
> What am I missing ?
>=20
> Thx
> Ahmad
>=20
> 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.
>        =20
>     I'm close, or so it seems.
>    =20
>     I got how the type thing works, I'm not sure how to deal with this "t=
oo
>     few arguments" deal.
>     I thought it might be like the two overridden _wrap_..._stream functi=
ons
>     in gtkhtml2's wrapping (am I way off here?). Is that why those two
>     functions were overridden in gtkhtml2.override?
>    =20
>     Thx,
>     Compile errors:
>    =20
>     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=3Dc9x -=
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
>    =20
>        =20
>    =20
>     --=20
>    =20
>     -  - -- ----  ----------------------------------------- --- -- -   -
>     Ahmad Baitalmal
>     BitBuilder
>     web: http://www.bitbuilder.com
>     -  - -- ----=20
>     -------------------------------------------------------------- --- --=
 -=20
>     -
>     _______________________________________________
>     pygtk mailing list   pygtk@daa.com.au
>     http://www.daa.com.au/mailman/listinfo/pygtk
>     Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> --=20
>=20
> -  - -- ----  ----------------------------------------- --- -- -   -
> Ahmad Baitalmal
> BitBuilder
> web: http://www.bitbuilder.com
> -  - -- ----=20
> -------------------------------------------------------------- --- -- -=20
> -
> _______________________________________________
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/