| View previous topic :: View next topic |
| Author |
Message |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Thu Mar 30, 2006 11:09 am Post subject: Gnope PHP-Gtk2.dll version 2006-03-22 |
|
|
There is a new version, see http://www.gnope.org/forum/viewtopic.php?p=796
Hello all,
For all those people that don't want to wait until the new Gnope version is out: You can have the new php-gtk2.dll by simply installing a Gnope package now!
The package is "Gnope_PHPGtk2_dll" and can be found at
http://gnope.org/pearfront/index.php?package=Gnope_PHPGtk2_dll
BEFORE INSTALLATION, you have to fix a setting in PEAR that is wrong due to a bug in the PEAR installer.
- Open a console (start/execute: "cmd")
- Type "pear config-get ext_dir"
- You will see something like "./ext/" - that setting is wrong!
- Remember the path you installed Gnope to, and add "\ext" to it. E.g. if you used the default path of "C:\PHP-Gtk2", the new ext_dir is "C:\PHP-Gtk2\ext"
- Type "pear config-set ext_dir C:\PHP-Gtk2\ext"
Further, you need to upgrade PEAR to the latest version (e.g. with the PEAR Frontend in the start menu).
Now the pear setup is fixed to install the new php-gtk2.dll.
To install it:
- (Again) due to a missing feature in PEAR, you can't install the new dll just over the old one. That means that you need to do one of this variations:
a) Disable the php-gtk2 extension in your php.ini, install the package and then re-enable it.
b) Delete php-gtk2.dll, and then install the package
Version a) would be the safest:
- Open C:\PHP-Gtk2\php.ini in an editor, e.g. notepad
- Search for "gtk"
- Continue searching
- The line you see is
| Code: | | extension=php-gtk2.dll |
- Add a semicolon in front of it to disable it:
| Code: | | ;extension=php-gtk2.dll |
- Save the file
- Open a command prommt (cmd) and type:
| Code: | | pear install gnope/Gnope_PHPGtk2_dll |
- After that succeeded, you need to re-enable the dll in php.ini - just remove the semicolon
Version b) is faster:
- Remove the php-gtk2.dll in C:\PHP-Gtk2\ext\
- Open a command prommt (cmd) and type:
| Code: | | pear install gnope/Gnope_PHPGtk2_dll |
Now you have a new version with all the cool features and bug fixes until 2006-03-22. That also causes the Scribble demo not to crash any more, and AppRunner 0.0.8 work now.
Last edited by cweiske on Mon May 22, 2006 7:26 pm; edited 2 times in total |
|
| Back to top |
|
 |
Osiris
Joined: 17 Dec 2005 Posts: 65
|
Posted: Thu Mar 30, 2006 2:08 pm Post subject: |
|
|
Hello Christian,
version b) won't work, because pear uses php.ini and crashes when
pear install gnope/Gnope_PHPGtk2_dll is executed and the php-gtk2.dll was deleted before.
And another thing:
"pear install gnope/Gnope_PHPGtk2_dll" won't work, while preferred_state isn't set to alpha by "pear config-set preferred_state alpha".
You have to install it by typing in:
"pear install channel://gnope.org/Gnope_PHPGtk2_dll-1.1.0"
And at last:
after installing the package, the installer says "You should add "extension=php_gtk_libglade2.dll" to php.ini", but this package does not install this file
But after doing all the other things described before, it works fine  |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
Posted: Fri Mar 31, 2006 4:22 am Post subject: Re: Gnope PHP-Gtk2.dll version 2006-03-22 |
|
|
| cweiske wrote: |
- Type "pear config-set ext_dir C:\PHP-Gtk2\ext"
|
As soon as I did that, pear stopped working. Sigh. |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
Posted: Fri Mar 31, 2006 4:28 am Post subject: |
|
|
| Never mind, that was a temporary issue (load too high on servers?) |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Fri Mar 31, 2006 8:05 pm Post subject: |
|
|
| Osiris wrote: | | "pear install gnope/Gnope_PHPGtk2_dll" won't work, while preferred_state isn't set to alpha by "pear config-set preferred_state alpha". |
Or, simply:
| Code: | | pear install channel://gnope.org/Gnope_PHPGtk2_dll-alpha" |
| Quote: | | "You should add "extension=php_gtk_libglade2.dll" to php.ini", but this package does not install this file :) |
That's not necessary, because libglade is a php-gtk2 dll and not really a php extension dll |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
Posted: Tue Apr 04, 2006 4:32 am Post subject: |
|
|
Unfortunately, this build doesn't include the GtkIconView::get_selected_items() patch.
Dang, and I wanted to use it.. Oh well, gotta wait for the next release, I suppose. |
|
| Back to top |
|
 |
kingrs
Joined: 15 Jan 2006 Posts: 30 Location: Stafford, UK
|
Posted: Mon Apr 10, 2006 5:19 pm Post subject: Memory error fixed |
|
|
Hi Christian,
I was getting a memory error if I do a sequence of things (like clicking on tabs in a workbook) then exit the program.
With the new DLL that seems to have fixed it, whoopeeee!
Hope it stays this way now as creating a block of code to re-create the error is going to be tricky at best.
I don't mind if the memory error is because of some new piece of code that breaks a rule.
It is when you add a new button via the glade design tool and you get a memory error, that's the frustrating bit.
Regards
Rob |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Mon Apr 10, 2006 5:22 pm Post subject: |
|
|
Rob,
Since the first release of Gnope, many things have changed, and given that there is not even a beta out, it's fairly stable. |
|
| Back to top |
|
 |
|