Sample Code 328: How to install glade3 for PHP GTK2 on windows? |
|
Written by kksou
|
|
Friday, 14 September 2007 |
|
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
Glade v3.4.1
Updated: January 16, 2008
Latest version: Glade v3.4.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.
- Run the installer to install Glade2.
- Now download Glade3. You can find the latest version (now Glade v3.4.1) 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
Glade v3.4.1
- 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 10 users) Note: You have to be a registered member to leave a comment. Free registration here. |
October 17, 2007 3: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 11: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 1: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 8: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 2: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 8: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 11:58pm
Thanks a bunch. Worked like a charm. Better keep your temporary copy, though, till gladewin32 for sure has recovered...
April 01, 2008 12:46am
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 6: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 11: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.