Lionel Ulmer wrote: >Hi all, > >I have problem building pygtk-1.99.10 on my box : > >gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include/python2.2 -Wall >-I/usr/local/include/ -I/usr/local/include/gtk-2.0 >-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 >-I/usr/local/include/pango-1.0 -I/usr/local/X11R6_4.2.x_CVS/include >-I/usr/local/include -I/usr/local/include/freetype2 >-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -Wall >-std=c9x -c gtkmodule.c -Wp,-MD,.deps/_gtkmodule_la-gtkmodule.TPlo -fPIC >-DPIC -o _gtkmodule_la-gtkmodule.lo >In file included from gtkmodule.c:9: >pygtk-private.h:31: parse error before *' >pygtk-private.h:32: parse error before *' >pygtk-private.h:32: warning: type defaults to int' in declaration of >pygtk_tree_path_from_pyobject' >pygtk-private.h:32: warning: data definition has no type or storage class >gtkmodule.c: In function init_gtk': >gtkmodule.c:96: warning: implicit declaration of function gtk_stock_list_ids' >gtkmodule.c:96: warning: assignment makes pointer from integer without a cast > >So I tried adding a '#include <gtk/gtktreemodel.h>' in pygtk-private.h to >solve the compile error, but it then fails building the >'gtkobject-support.c' file. > >So I am really wondering what I am doing wrong :-) > >I just compiled the latest GTK packages (ie Gtk 2.0.2, Glib 2.0.1 and Pango >/ Atk 1.0.1) and Python 2.2.1 (yeah, it was 'update time' :-) ). > > Could you check to see if you have old gtk 1.2 headers lying around? If you had gtk+ <= 1.2.8 on your system, and didn't remove it before installing 1.2.9 or 1.2.10, then you may have a /usr/include/gtk directory that is getting used instead of the 2.0 headers. You could also try upgrading pkg-config, which makes sure it never adds "-I /usr/include" to CFLAGS.
James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
