Re: php-gtk 2.01 do not use functions for gtk 2.10, possible bug?
| From: | Elizabeth M Smith | Date: | Wed, 01 Jul 2009 17:48:01 +0000 |
| Subject: | Re: php-gtk 2.01 do not use functions for gtk 2.10, possible bug? | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4330@lists.php.net to get a copy of this message | ||
Fernando Correa da Conceição wrote:
Elizabeth M Smith escreveu:Yes, related to recent cairo changes - I put a patch into php-gtk CVS for this yesterday - cvs up both your cairo and php-gtk and make them again ;) Thanks, Elizabeth SmithFernando Correa da Conceição wrote:I did this, and cvs do not build, i will build from the tag on cvs. Trying to build from head give me this: /bin/bash /home/arquivos/php-gtk/libtool --mode=compile gcc -Iext/gtk+/ -I/home/arquivos/php-gtk/ext/gtk+/ -DPHP_ATOM_INC -I/home/arquivos/php-gtk/include -I/home/arquivos/php-gtk/main -I/home/arquivos/php-gtk -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -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/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/gtkextra-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -DHAVE_CONFIG_H -DHAVE_CAIRO -g -O2 -c ext/gtk+/gen_gdk.c -o ext/gtk+/gen_gdk.lo libtool: compile: gcc -Iext/gtk+/ -I/home/arquivos/php-gtk/ext/gtk+/ -DPHP_ATOM_INC -I/home/arquivos/php-gtk/include -I/home/arquivos/php-gtk/main -I/home/arquivos/php-gtk -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -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/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/gtkextra-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -DHAVE_CONFIG_H -DHAVE_CAIRO -g -O2 -c ext/gtk+/gen_gdk.c -fPIC -DPIC -o ext/gtk+/.libs/gen_gdk.o ext/gtk+/gdk-2.10.overrides: In function ‘zim_GdkScreen_set_font_options’: ext/gtk+/gdk-2.10.overrides:15: error: ‘cairo_fontoptions_object’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:15: error: (Each undeclared identifier is reported only once ext/gtk+/gdk-2.10.overrides:15: error: for each function it appears in.) ext/gtk+/gdk-2.10.overrides:15: error: ‘fobj’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:20: error: expected expression before ‘)’ token ext/gtk+/gdk-2.10.overrides: In function ‘zim_GdkScreen_get_font_options’: ext/gtk+/gdk-2.10.overrides:31: error: ‘cairo_fontoptions_object’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:31: error: ‘fobj’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:39: error: expected expression before ‘)’ token make: ** [ext/gtk+/gen_gdk.lo] Erro 1 Fernando.Using ubuntu 9.04 with gtk 2.16.1 php 5.2.6 I build php-gtk 2.01(cvs version do not build for me with cairo errors), it build and runs ok, but, the functions that are 2.10 are missing, like gtktreeview:enable_tree_lines and gtknotebook:set_reordenable. Thanks ps: I am working again on pt_BR docs, and I will try send some en docs too.The tarball for php-gtk 2.0.1 has some sort of issue with detecting the php-gtk library but I have no idea what the problem is or how to fix it check out cvs with the php_gtk_2_0_1 tag and try again If you want to build cvs HEAD - grab the source for pecl/cairo and build it for your php (phpize && make && make install work) then compile php-gtk HEAD with -DHAVE_CAIRO added (need an autotools guru to help with that issue) and it should build fine (if not send me a mail and I'll fix it)