|
Problem Unless you have already been using Glade2 for some time, if you are new to using Glade, I would recommend that you go straight to Glade3 as I find it less buggy. The user interface is also slightly better.
However, as of today, the installation of Glade3 isn't as straightforward as it's supposed to be.
Below are the steps to install Glade3 for PHP-GTK2 on windows platform.
Solution
Updated: September 8, 2009
Latest version: Glade v3.6.7
To date, I've found 4 methods of setting up Glade3 on windows.
- Method 1. This is the one I used.
- Method 2. This seems to be the most official and easiest one. Thanks to Roeland from Belgium who informed me about this. Go to glade.gnome.org and click Windows Binaries in the right navigation menu, or click here to go direct to the download page. Latest version there is v3.6.7. Just download the one big fat file (about 17MB). Everything's in there. Installation is smooth and easy.
But one thing to note: I find that almost all my old .glade files didn't display quite right in this new version (v3.6.7). The one I have been using was v3.4.1. Maybe the new version do not read the old version glade files correctly...
- Method 3. This installer is written by Pierre Fauconnier and strongly recommended by Dysmas who have contributed many PHP-GTK sample codes to this site.
- Method 4. This installer is written by David Tavárez
Method 1
To get Glade3 to work on windows, the "key" is that you need to install Glade2 first. There are some required files which are not bundled in the Glade3 package.
- First, download Glade2 from http://gladewin32.sourceforge.net. There are many packages there. The one I used is gtk-dev-glade-2.10.11-win32-1. Download url: http://gladewin32.sourceforge.net/modules/wfdownloads/viewcat.php?cid=14.
Seems like the site mentioned above is still down. I have temporarily placed a copy of the Glade2 file at my site:
http://www.kksou.com/php-gtk2/glade/gtk-dev-glade-2.10.11-win32-1.exe
- Run the installer to install Glade2.
- Now download Glade3. You can find the latest version (now Glade v3.6.7) here:
http://php-gtk.forumfree.net/?t=12897059&view=getlastpost#lastpost
Or the direct download link here:
http://www.idrometa.it/php-gtk/glade3-3.4.1-win32-1.zip
- The Glade3 package is a zip file (unlike Glade2 which is a windows installer). All you need to do is to unzip this zip file into any folder you like. Inside the unzipped content, you will see a folder called "bin". And inside the bin folder, you will see the file glade-3.exe
- As long as you have installed Glade2 as outlined in step 2, you can now run Glade3 by double clicking the file glade-3.exe as explained in step 4. You should see the Glade application appear as shown below:

Sample Code Explanation User reviews Average user ratings: 3.5 (from 15 users) Note: You have to be a registered member to leave a comment. Free registration here. |
October 17, 2007 2:41am
I've installed glade 3.4.0 and built simple GUI. Tried to run with my php-gtk2 installation but it does not work (no errors is shown. but also no GUI). With glade 2.12.1 no problems, everything is OK. Maybe it is my fault but i do not know how to update my php-gtk installation to support glade3
October 17, 2007 10:25pm
Hi Lixas, could you please give me a bit more details e.g. which version of php-gtk2 are you running (alpha? beta?) Also, can you forward me a copy of both the glade file produced by Glade2 (which you said is working) and Glade3 (the one you said is not working). Let me take a look at them and I should be able to figure out. You can do this through the feedback form. Or, if you have subscribed to any of the newsletter on this site, you can email me using that email address. Regards, /kksou
October 19, 2007 12:09am
Ok, As i understood it should work. I will try to build working php-gtk2 and glade3 (all newest versions) instances on my other clean winXPpro machine and will try to do some experiments. Btw, thank you for your support //Best regards, Lixas
October 23, 2007 7:26pm
Hi Lixas, Did you get it to work yet? If it's still not working, you could try this: (1) Set up a fresh install of php-gtk2 using the steps outlined here. This contains the latest php_gtk_libglade2.dll required to load the .glade files. (2) Set up a fresh install of glade using the steps outlined here. (3) Don't forget to make sure that php_gtk_libglade2.dll is loaded in php.ini file. The above should take less than 5 to 10 minutes, and you should have your glade files up and running. Try it, and let me know should you encounter any problem. Regards, /kksou
March 31, 2008 1:24am
#
Looks like Glade2 has been retired permanently, as gladewin32.sourceforge.net is empty and the official glade site does only deal with (linux) source tarballs. Any ideas as to where I can find the glade2 windows installer? Or the files missing in the version 3 zip? Tx, Lewie
March 31, 2008 7:21am
Hi Lewie,
In case the site mentioned above is still down, I have temporarily placed a copy of the Glade2 file at my site:
http://www.kksou.com/php-gtk2/glade/gtk-dev-glade-2.10.11-win32-1.exe
Regards,
/kksou
March 31, 2008 10:58pm
Thanks a bunch. Worked like a charm. Better keep your temporary copy, though, till gladewin32 for sure has recovered...
March 31, 2008 11:46pm
I followed the process of installing glade-3 as u stated in your article. However, I got this error message: "The procedure entry point gdk_cairo_create could not be located in the dynamic link library libgdk-win32-2.0-0.dll."
Pls could u tell me what is wrong.
Thanks
igomen.
April 02, 2008 5:33pm
Hi Ignatius,
1. Did you install glade2 first?
2. Right after installing glade2, could you please run it? Is glade2 running ok?
3. If (2) is ok, then proceed to unzip glade3 as outlined above.
4. Now run glade3. Does the error occur only in glade3?
5. Run glade2 again. Can you still run glade2? (Note: glade2 and glade3 can co-exist at the same time.)
6. If you have access to another machine, could you please try the installation too? Do you encounter the same error? Is this error replicable?
7. If the installation on the other machine is ok, then most likely it's some dll conflicts with your other software on your first machine...
Regards,
/kksou
April 14, 2008 10:04pm
Thanks again, I used another system and it worked like magic. It may be a dll conflict.
Without u it will take ages to resolve some issues. Keep up the good work.
October 16, 2008 1:42pm
I'm having real problems getting Glade3 to work. Glade2 works just fine tho. I get no errors. I installed PHP-GTK2 using Gnope installer as it was the only version I could find that included mysql support for windows. I've installed Glade2 and then Glade3 over, I can run Glade3 but any attempt to open a .glade file saves with Glade3 results in nothing.
December 13, 2008 2:56pm
1. Install Glade2 from the link above
2. Copy Glade3 files over the Glade2 ones
3. Run Glade3 and DELETE any .dlls that appear in error messages.
4. Enjoy a 100% working Glade3 :)
February 12, 2009 5:57pm
Uncomment line 46 of php-cli.ini.
It should read:
php-gtk.extensions = php_gtk_libglade2.dll
This tells PHP to load the libglade2 (and sourceview2) extention into memory when running a PHP script.
Don't load extensions you don't need, it will waste memory and other resources.
April 28, 2009 4:36pm
I am interested in Python and Glade 3 for Python.
This is what I did for my windows installation where conflict occurred.
I installed Glade 2 in the root\GTK directory.
I had downloaded the wx bundle and extracted it in the root\gtk1 directory.
I then copied the files of each subfolder of root\GTK manually and overwrote the older with the more current version from the root\GTK1 folder.
I did it for nearly all folders except huge folders like locale which I simply overwrote the older folder.
And it worked.
If I knew how to I would write a script to do the job automatically and upload the script here.
Thanks for the material here.
Great show.
September 01, 2009 7:11am
Hi, Just to let you know, I downloaded the glade3 from the gnome project site (http://glade.gnome.org/) and this works without the fuzz of installing other versions first. Regards and thanks for documenting PHP-GTK!