You are not logged in.

#1 2008-10-08 21:02:40

e6nian
Member
Registered: 2008-09-02
Posts: 17

[Request]PHP-GTK

PHP-GTK is an extension for the PHP programming language that implements language bindings for GTK+. It provides an object-orien

the old php4-gtk in the aur
is out of date .


who can help!:lol:

Offline

#2 2008-10-08 21:15:46

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [Request]PHP-GTK

The package has been flagged as out of date, so you can either wait for the maintainer to update it, or edit the PKGBUILD and upgrade it yourself.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#3 2008-10-09 03:53:36

e6nian
Member
Registered: 2008-09-02
Posts: 17

Re: [Request]PHP-GTK

finferflu wrote:

The package has been flagged as out of date, so you can either wait for the maintainer to update it, or edit the PKGBUILD and upgrade it yourself.

Yep~ I find out that,so how to make a  PKGBUILD

Offline

#4 2008-10-09 06:37:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,604

Re: [Request]PHP-GTK

You don't need to make one - just edit the existing one.

Check the wiki for full details on the Arch Build System (ABS) and related topics.

Offline

#5 2008-10-09 11:40:43

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: [Request]PHP-GTK

I believe that a new package named php-gtk should be submitted to the AUR, supporting the latest versions of both PHP (5.2.6) and PHP-GTK (2.0.1).

I'll look into creating such a package and submitting it.

Offline

#6 2008-10-12 03:40:16

e6nian
Member
Registered: 2008-09-02
Posts: 17

Re: [Request]PHP-GTK

I couldn't build from source from gtk.php.net
but i've built  by a redit site source .
Who can tell me how to build from gtk.php.net ?

Offline

#7 2008-10-12 11:09:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,604

Re: [Request]PHP-GTK

If you want help, you need to provide details. Post the output of your failed build attempt, using forum code tags.

Offline

#8 2008-10-12 11:20:57

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: [Request]PHP-GTK

Just to let people know, I'm very close to completing a PKGBUILD for php-gtk 2.0.1; the only thing left is building most php-gtk extensions as separate modules (this is problematic due to linking issues).

Offline

#9 2008-10-12 14:20:02

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: [Request]PHP-GTK

I finally got it to work. Should you find any issues I've overlooked, let me know.

php-gtk

Offline

#10 2008-10-16 13:56:13

e6nian
Member
Registered: 2008-09-02
Posts: 17

Re: [Request]PHP-GTK

make[1]: autoconf:命令未找到 #command not found
make[1]: *** [configure] 错误 127 #error 127
make: *** [all] 错误 2 #error 2
./PKGBUILD: line 41: ./configure: 没有那个文件或目录 #no such file or dictronary
make: *** 没有指明目标并且找不到 makefile。 停止。#con't find  makefile
==> 错误: 创建失败。
    正在放弃...
Error: Makepkg was unable to build php-gtk package.

###########################

The same error comes out whether use yaourt or make from gtk.php.net

Offline

#11 2008-10-16 14:13:01

e6nian
Member
Registered: 2008-09-02
Posts: 17

Re: [Request]PHP-GTK

e6nian wrote:

make[1]: autoconf:命令未找到 #command not found
make[1]: *** [configure] 错误 127 #error 127
make: *** [all] 错误 2 #error 2
./PKGBUILD: line 41: ./configure: 没有那个文件或目录 #no such file or dictronary
make: *** 没有指明目标并且找不到 makefile。 停止。#con't find  makefile
==> 错误: 创建失败。
    正在放弃...
Error: Makepkg was unable to build php-gtk package.

###########################

The same error comes out whether use yaourt or make from gtk.php.net

sudo pacman -S autoconf

Bingo!

And another Q: How to build a php-gtk working properly with httpd and shell;
when I make extension php_gtk2.so on , the php via httpd/apache won't work , it comes that: Fatal error,php_gtk2.......else.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Settled, I have to use php-gtk.ini instead of defaul php.ini .

smile

Q&A

It's 囧rz

Last edited by e6nian (2008-10-16 14:22:24)

Offline

#12 2008-10-16 16:51:40

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: [Request]PHP-GTK

Packages in either base or base-devel are assumed to be installed and, therefore, not explicitly specified in the PKGBUILD.

As for your second question, php-gtk is not to be used with Apache (it segfaults because it tries to access the desktop or something like that). As you've already found out, a separate configuration file to be used with php-gtk applications has been included in the package.

Last edited by foutrelis (2008-10-16 16:52:29)

Offline

#13 2009-10-06 03:54:28

brando56894
Member
From: New Jersey, USA
Registered: 2008-08-03
Posts: 566
Website

Re: [Request]PHP-GTK

Everything seems to go fine for a few minutes but then it breaks on me with about 100 duplicate 'static' errors in various header files. Heres where all the errors start, I had to put it on pastebin because it was so large.

Offline

#14 2009-10-06 19:23:48

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [Request]PHP-GTK

e6nian: Last I checked, PHP-GTK was an ugly mess (though it's been a while). Not to question your judgement, but why do you want/need to use it as opposed to [bindings for] another language?

# Typo.

Last edited by Peasantoid (2009-10-06 19:25:15)

Offline

#15 2009-10-06 20:23:04

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: [Request]PHP-GTK

brando56894 wrote:

Everything seems to go fine for a few minutes but then it breaks on me with about 100 duplicate 'static' errors in various header files. Heres where all the errors start, I had to put it on pastebin because it was so large.

I'm guessing php-gtk isn't yet compatible with PHP 5.3. According to their website, a new release is planned, which will be compatible with the new PHP version. Until then, you may choose to use the PHP 5.2 package I've put up on the AUR.

Last edited by foutrelis (2009-10-06 20:24:20)

Offline

#16 2009-10-07 21:31:06

brando56894
Member
From: New Jersey, USA
Registered: 2008-08-03
Posts: 566
Website

Re: [Request]PHP-GTK

I was using PHP 5.2.3 IIRC, I think the problem was with one of the lines in the pkgbuild. I cant remember what it was since im not at my pc. I did successfully get php-gtk to work but I had to compile everything manually (not using a pkgbuild) from source. If I used the packages php would complain that PHP and Module have a different API version, this was solved when I compiled everything manually.

Im currently working on a new pkgbuild for php-gtk that is compiled specifically for phoronix-test-suite (the whole reason im using php-gtk), I just finished the pkbuild for php-cli which uses php-5.2.11, now onto working out the bugs in the pkgbuild of php-gtk.

Offline

Board footer

Powered by FluxBB