473,378 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Questions about PHP-GTK 1.0

Supposedly PHP-GTK is the ticket one can take to create cross-platform
PHP scripts that load a standalone GUI application with widgets, and
then everything else you know about PHP can work in the background via
signals (widget events), including database access, etc.

Some background for you:
http://www.sitepoint.com/article/697

Personally, I can't get it working. Others have, strangely enough.

1. I have RH9. Does anyone have an RH9 RPM out there for PHP-GTK 1?

2. Would it be good for me to install Glade to draw the GUIs and
connect the signal handlers faster? I don't have experience with
Glade.

3. I tried downloading the 1.0 source and then doing:

../buildconf
../configure
make
make install

but it bombs on ./configure with...

../configure: line 2606: syntax error near unexpected token `debug,'
../configure: line 2606: `PHP_GTK_ARG_ENABLE(debug, whether to include
debugging
symbols,'

Anyone have any advice?

4. I tried the steps recommended in the sitepoint.com web link I
posted (above) and it showed the same error, so I commented out the
code block starting with if on line 2606 to its following fi. Then, I
ran the commands as recommended from the web link, it runs good for
awhile and then spits back to me this error:

/home/me/installs/php-gtk/build/dynlib.mk:22:
/home/me/installs/php-gtk//libs.mk: No such file or directory
make: *** No rule to make target `/home/me/installs/php-gtk//libs.mk'.
Stop.

What's the catch?

I have a funny feeling that the install process is botched at
gtk.php.net on this revision and that they need to fix that.
Jul 17 '05 #1
4 2519
Google Mike wrote:

3. I tried downloading the 1.0 source and then doing:

./buildconf
./configure
make
make install


The problem is the configure-generation scripts are for older versions
of autoconf/automake. So to get it to work, the procedure should be:
../buildconf
aclocal
../buildconf
../configure
make
make install

Jul 17 '05 #2
Keith Bowes <do****@spam.me> wrote in message news:<1068089587.220169@rh9cache2>...
Google Mike wrote:

3. I tried downloading the 1.0 source and then doing:

./buildconf
./configure
make
make install


The problem is the configure-generation scripts are for older versions
of autoconf/automake. So to get it to work, the procedure should be:
./buildconf
aclocal
./buildconf
./configure
make
make install


That seemed to move it through the install process, although not
without some occasional warning messages. Now when I try:

cd test
php --q hello.php

It spits out:
X-Powered-By: PHP/4.2.2
Content-type: text/html

<br />
<b>Warning</b>: Unable to load dynamic library
'/usr/lib/php4/php_gtk.PHP_SHLIB_SUFFIX' -
/usr/lib/php4/php_gtk.PHP_SHLIB_SUFFIX: cannot open shared object
file: No such file or directory in
<b>/home/mike/installs/php-gtk-1.0.0/test/hello.php</b> on line
<b>5</b><br />
<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: gtkwindow
in <b>/home/mike/installs/php-gtk-1.0.0/test/hello.php</b> on line
<b>40</b><br />

....so I have 2 questions with that:

1) Why is it spitting back HTML to my console?
2) What do I do about Cannot instantiate non-existing class gtkwindow?
Jul 17 '05 #3
Google Mike wrote:
./buildconf
aclocal
./buildconf
./configure
make
make install

That seemed to move it through the install process, although not
without some occasional warning messages. Now when I try:

cd test
php --q hello.php

It spits out:
X-Powered-By: PHP/4.2.2
Content-type: text/html

<br />
<b>Warning</b>: Unable to load dynamic library
'/usr/lib/php4/php_gtk.PHP_SHLIB_SUFFIX' -
/usr/lib/php4/php_gtk.PHP_SHLIB_SUFFIX: cannot open shared object
file: No such file or directory in
<b>/home/mike/installs/php-gtk-1.0.0/test/hello.php</b> on line
<b>5</b><br />
<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: gtkwindow
in <b>/home/mike/installs/php-gtk-1.0.0/test/hello.php</b> on line
<b>40</b><br />

...so I have 2 questions with that:

1) Why is it spitting back HTML to my console?


Because you're using a CGI build rather than a CLI one.
2) What do I do about Cannot instantiate non-existing class gtkwindow?


The problem is that you're using PHP 4.2.2 but the examples use the
PHP_SHLIB_SUFFIX constant, which wasn't added until 4.3.0. Change the
code in the example file from
dl('php_gtk.'.PHP_SHLIB_SUFFIX)

to
dl('php_gtk.so')

and it should work fine.

Jul 17 '05 #4
I tried the dl change but now it says that php_gtk.so isn't there. I
went looking all over my hard drive for it and cannot find it. I guess
the install process is just plain botched. Someone could stand to make
an RPM for RH9 for this -- this is a monster to work through, and yet
yields so much promise. Right now, the only way to do anything
comparable to php-gtk is to use Python and Glade, and I don't find
Python very agreeable to me.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Louis M | last post by:
Hi all, I have reasonable PHP experience, but not yet a guru. I am going to an interview this week for a PHP role, they develop a portal system used by governments departments to create a common...
1
by: nick | last post by:
Hi - apologies if these have been asked before. I've been looking around, but can't find answers to my question. Anyway... I'm an experienced programmer with JSP, ASP, and ASP.NET and am...
18
by: Frances | last post by:
I want to learn PHP.. I know JSP, Servlets, have been using Tomcat for 2 years now, and even though I know there are ways you can use PHP in conjunction with Tomcat, I'd rather not tinker with...
1
by: David Thole | last post by:
Hey all, So far my reading is proving to be very interesting and good. This book is very helpful, and I'm generally left with quite a few questions about how I'm going to do stuff with my...
0
by: Free PDF | last post by:
..NET , SQL Server interview questions websites.... http://www.questpond.com http://www.geocities.com/dotnetinterviews/...
0
by: reema | last post by:
dotnet http://www.interviewdoor.com/interviewforum/index.php?c=5 VB.NET Interview Questions And Real Time Discussions http://www.interviewdoor.com/interviewforum/viewforum.php?f=25 ASP.NET...
0
by: reema | last post by:
dotnet http://www.interviewdoor.com/interviewforum/index.php?c=5 VB.NET Interview Questions And Real Time Discussions http://www.interviewdoor.com/interviewforum/viewforum.php?f=25 ASP.NET...
0
by: Pavel A. | last post by:
A dump is "accumulation of refuse and discarded materials", or "a place where such materials are dumped" (from www.merriam-webster.com). So your forum is a "certification dump"... you've said it....
0
by: Nainetas | last post by:
dotnet http://www.interviewdoor.com/interviewforum/index.php?c=5 VB.NET Interview Questions And Real Time Discussions http://www.interviewdoor.com/interviewforum/viewforum.php?f=25 ASP.NET...
4
by: Andrey | last post by:
Hi, I will be hiring a php guru to help us architect a highly scalable web site/web application; the problem is I am coming from Microsoft .NET world and not too much familiar with the platform....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.