Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33

Thread: HOWTO: Compile php-gtk2 for Lucid Lynx

  1. #21
    Join Date
    Sep 2006
    Location
    UK
    Beans
    7
    Distro
    Ubuntu 5.10

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Hi firstly thank you for the guide. I have managed to install PHP-GTK on my intel based machine at home, however I am having major trouble installing it on a amd64 machine at work.

    I can successfully run ./build

    how ever when I run ./configure I get the following :-


    Code:
    frankie@frankie-desktop:~/Downloads/php-gtk-2.0.1$ ./configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    ./configure: line 3427: s/.*>//: No such file or directory
    checking for PHP prefix... /usr
    checking for PHP includes... -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
    checking for PHP extension directory... /usr/lib/php5/20090626
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking for gawk... gawk
    checking for PHP-GTK support... yes, shared
    checking for PHP executable in /usr/bin... found version 5.3.2-1ubuntu4.2
    checking for gawk... (cached) gawk
    checking whether to include debugging symbols... no
    checking for pkg-config... /usr/bin/pkg-config
    checking for GLIB - version >= 2.6.0... yes (version 2.24.1)
    ./configure: line 4210: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4210: s/[^a-zA-Z0-9]/_/g: No such file or directory
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... yes (version 2.20.1)
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4602: s/[^a-zA-Z0-9]/_/g: No such file or directory
    checking for atk >= 1.9.0... yes
    checking ATK_CFLAGS... -pthread -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
    checking ATK_LIBS... -pthread -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    ./configure: line 4832: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4832: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 4832: s/[^a-zA-Z0-9]/_/g: No such file or directory
    checking for pango >= 1.8.0... yes
    checking PANGO_CFLAGS... -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
    checking PANGO_LIBS... -pthread -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    ./configure: line 5059: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 5059: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 5059: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 5395: -e: command not found
    checking for gtkextra support... no
    checking for html support... no
    checking for libglade support... yes
    checking for libglade-2.0 >= 2.4.0... yes
    checking LIBGLADE_CFLAGS... -pthread -D_REENTRANT -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -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/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12  
    checking LIBGLADE_LIBS... -pthread -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 6782: s/[^a-zA-Z0-9]/_/g: No such file or directory
    ./configure: line 7208: -e: command not found
    checking for libsexy support... no
    checking for GtkMozEmbed support... no
    checking for scintilla support... no
    checking for sourceview support... no
    checking for spell support... no
    ./configure: line 10849: s#@ext_builddir@#.#g: command not found
    ./configure: line 10849: s#@ext_srcdir@#/home/frankie/Downloads/php-gtk-2.0.1#g: No such file or directory
    ./configure: line 11198: -e: command not found
    creating main/php_gtk_ext.c
    ./configure: line 11217: AC_PROG_LIBTOOL: command not found
    configure: creating ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged
    Can anyone please help!?

  2. #22
    Join Date
    Sep 2006
    Location
    UK
    Beans
    7
    Distro
    Ubuntu 5.10

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Ok I've tried a slightly different approach:-

    Installed the latest version of libtool found here:- http://ftp.gnu.org/gnu/libtool/libtool-2.2.8.tar.gz

    Next removed my old php-gtk installation directory and then created a new one by extracting php-gtk-2.0.1.tar again.

    Ran this:-
    Code:
    cat /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/lt~obsolete.m4 >> aclocal.m4
    Then ran ./build which worked.
    ./configure also worked!

    However when I tried make i get the following: -

    Code:
    /bin/bash /home/frankie/Downloads/php-gtk-2.0.1/libtool --mode=compile cc  -Iext/gtk+/ -I/home/frankie/Downloads/php-gtk-2.0.1/ext/gtk+/ -DPHP_ATOM_INC -I/home/frankie/Downloads/php-gtk-2.0.1/include -I/home/frankie/Downloads/php-gtk-2.0.1/main -I/home/frankie/Downloads/php-gtk-2.0.1 -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/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c ext/gtk+/gen_atk.c -o ext/gtk+/gen_atk.lo 
    libtool: compile:  cc -Iext/gtk+/ -I/home/frankie/Downloads/php-gtk-2.0.1/ext/gtk+/ -DPHP_ATOM_INC -I/home/frankie/Downloads/php-gtk-2.0.1/include -I/home/frankie/Downloads/php-gtk-2.0.1/main -I/home/frankie/Downloads/php-gtk-2.0.1 -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/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c ext/gtk+/gen_atk.c  -fPIC -DPIC -o ext/gtk+/.libs/gen_atk.o
    ext/gtk+/gen_atk.c:272: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:277: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:282: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:287: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:292: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:298: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:303: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:308: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:313: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:318: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:440: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:445: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:722: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:727: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:732: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:737: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:742: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:747: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:791: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:829: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:923: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:929: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:934: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:999: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1147: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1152: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1157: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1162: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1167: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1172: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1341: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1346: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1351: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1356: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1361: error: duplicate ‘static’
    ext/gtk+/gen_atk.c:1366: error: duplicate ‘static’
    make: *** [ext/gtk+/gen_atk.lo] Error 1
    Any ideas??

  3. #23
    Join Date
    Sep 2006
    Location
    UK
    Beans
    7
    Distro
    Ubuntu 5.10

    Talking Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    [SOLVED!]

    Finally fixed this and got it to install on my amd64 machine.

    Looks like the trunk version does not have this issue.

    The following did the trick!

    Code:
    svn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk
    cd php-gtk
    
    cat /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/lt~obsolete.m4 >> aclocal.m4
    
    ./buildconf
    ./configure
    make
    sudo make install

  4. #24
    Join Date
    Oct 2007
    Location
    Yorkshire
    Beans
    9
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Worked for me too - thanks everybody

    Ken

  5. #25
    Join Date
    Oct 2009
    Location
    The Netherlands
    Beans
    1
    Distro
    Ubuntu Studio 10.10 Maverick Meerkat

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Hi everyone! I followed the guide and everything went good until ./configure command in php-gtk folder.
    My OS is Ubuntu 10.10 64bit- the Maverick Meerkat , Amd64.
    I get this message:

    Code:
    user@ubuntu:~/Downloads/pecl-cairo$ cd ../php-gtk
    user@ubuntu:~/Downloads/php-gtk$ ./buildconf
    user@ubuntu:~/Downloads/php-gtk$ ./configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -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
    checking for PHP extension directory... /usr/lib/php5/20090626
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking for PHP-GTK support... yes, shared
    checking for PHP executable... found version 5.3.3-1ubuntu9.3
    checking for gawk... (cached) nawk
    checking whether to include debugging symbols... no
    checking for pkg-config... /usr/bin/pkg-config
    checking for GLIB - version >= 2.6.0... yes (version 2.26.0)
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... yes (version 2.22.0)
    checking for atk >= 1.9.0... yes
    checking ATK_CFLAGS... -pthread -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
    checking ATK_LIBS... -pthread -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    checking for pango >= 1.8.0... yes
    checking PANGO_CFLAGS... -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
    checking PANGO_LIBS... -pthread -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    checking for cairo >= 1.4.0... yes
    checking CAIRO_CFLAGS... -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
    checking CAIRO_LIBS... -lcairo  
    checking for cairo php extension... yes
    checking for gtkextra support... no
    checking for html support... no
    checking for libglade support... yes
    checking for libglade-2.0 >= 2.4.0... yes
    checking LIBGLADE_CFLAGS... -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
    checking LIBGLADE_LIBS... -pthread -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    checking for libsexy support... no
    checking for GtkMozEmbed support... no
    checking for scintilla support... no
    checking for sourceview support... no
    checking for spell support... no
    creating main/php_gtk_ext.c
    ./configure: line 12056: LTOPTIONS_VERSION: command not found
    ./configure: line 12057: LTSUGAR_VERSION: command not found
    ./configure: line 12058: LTVERSION_VERSION: command not found
    ./configure: line 12059: LTOBSOLETE_VERSION: command not found
    checking for a sed that does not truncate output... (cached) /bin/sed
    ./configure: line 12134: syntax error near unexpected token `lt_decl_varnames,'
    ./configure: line 12134: `lt_if_append_uniq(lt_decl_varnames, SED, , ,'
    user@ubuntu:~/Downloads/php-gtk$ ^C
    user@ubuntu:~/Downloads/php-gtk$ make
    make: *** No targets specified and no makefile found.  Stop.
    user@ubuntu:~/Downloads/php-gtk$ make install
    make: *** No rule to make target `install'.  Stop.
    user@ubuntu:~/Downloads/php-gtk$ ./configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -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
    checking for PHP extension directory... /usr/lib/php5/20090626
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking for PHP-GTK support... yes, shared
    checking for PHP executable... found version 5.3.3-1ubuntu9.3
    checking for gawk... (cached) nawk
    checking whether to include debugging symbols... no
    checking for pkg-config... /usr/bin/pkg-config
    checking for GLIB - version >= 2.6.0... yes (version 2.26.0)
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... yes (version 2.22.0)
    checking for atk >= 1.9.0... yes
    checking ATK_CFLAGS... -pthread -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
    checking ATK_LIBS... -pthread -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    checking for pango >= 1.8.0... yes
    checking PANGO_CFLAGS... -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
    checking PANGO_LIBS... -pthread -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    checking for cairo >= 1.4.0... yes
    checking CAIRO_CFLAGS... -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
    checking CAIRO_LIBS... -lcairo  
    checking for cairo php extension... yes
    checking for gtkextra support... no
    checking for html support... no
    checking for libglade support... yes
    checking for libglade-2.0 >= 2.4.0... yes
    checking LIBGLADE_CFLAGS... -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
    checking LIBGLADE_LIBS... -pthread -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    checking for libsexy support... no
    checking for GtkMozEmbed support... no
    checking for scintilla support... no
    checking for sourceview support... no
    checking for spell support... no
    creating main/php_gtk_ext.c
    ./configure: line 12056: LTOPTIONS_VERSION: command not found
    ./configure: line 12057: LTSUGAR_VERSION: command not found
    ./configure: line 12058: LTVERSION_VERSION: command not found
    ./configure: line 12059: LTOBSOLETE_VERSION: command not found
    checking for a sed that does not truncate output... (cached) /bin/sed
    ./configure: line 12134: syntax error near unexpected token `lt_decl_varnames,'
    ./configure: line 12134: `lt_if_append_uniq(lt_decl_varnames, SED, , ,'
    How can i fix it?
    Thank in advance.

  6. #26
    Join Date
    Oct 2010
    Beans
    275

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    No longer active here.

  7. #27
    Join Date
    Jan 2010
    Beans
    45

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    @az_kamram, did you get anything? same problem here. The fix the other guys pointed don't work anymore...
    Help me testing my script for the Music Player Daemon: mpdpss! It remembers the last played song for all your MPD playlists! It has now an optional GTK+ interface and comes with a .deb package! Ubuntu thread | Project Page

  8. #28
    Join Date
    May 2010
    Beans
    16

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    ok, everything went great after four hours compiling.
    now, what, how do I start coding and running?
    I know only for server. never did cli

  9. #29
    Join Date
    Jan 2010
    Beans
    45

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Save the following in a file called 'whatever.php':

    Code:
    <?php
    if (!class_exists('gtk')) {
        die("Please load the php-gtk2 module in your php.ini\r\n");
    }
     
    $wnd = new GtkWindow();
    $wnd->set_title('Hello world');
    $wnd->connect_simple('destroy', array('gtk', 'main_quit'));
     
    $lblHello = new GtkLabel("Just wanted to say\r\n'Hello world!'");
    $wnd->add($lblHello);
     
    $wnd->show_all();
    Gtk::main();
    ?>
    And then run:

    Code:
    php /path/to/whatever.php
    Or you can do as in a shell script, making the file executable and adding to the top of the file:

    Code:
    #!/usr/bin/php
    And then running the file as an executable.


    Follow the php tutorial http://gtk.php.net/manual/en/tutorials.helloworld.php
    Help me testing my script for the Music Player Daemon: mpdpss! It remembers the last played song for all your MPD playlists! It has now an optional GTK+ interface and comes with a .deb package! Ubuntu thread | Project Page

  10. #30
    Join Date
    May 2010
    Beans
    16

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    tnx, but now I upgraded to 11.10 and is not working.
    This is the message:

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/php_gtk2.so' - libffi.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
    Please load the php-gtk2 module in your php.ini
    this is madness, i have so much problems in last few days

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •