(Some of the following is repeated from my recent original posting, with updates added here.)
I am trying to set up a development environment on Windows 7, to use Perl and Glade to write a GUI application. This environment is a collection of directories on a shared network drive (say e.g., X:) which can also be accessed by users of my code. It avoids using C: (as much as possible). I have copied Strawberry Perl Portable 5.26.1.1 (64bit) ( http://strawberryperl.com/releases.html) to, say, X:\Strawberry\, and my Perl code to X:\code\. The Perl code (per se) runs fine (in a .bat shell window). I have installed GTK:, using: Strawberry\perl\bin\ppm.bat I did: install Glib install Glib-IO install Glib-Object-Introspection install Gtk2 install Gtk2-GladeXML install Gtk2-WebKit install Gtk3 install Cairo install Cairo-GObject install Pango install Gnome2-Canvas install HTTP-Soup install Image-LibRSVG All that installed nicely. This Perl code (from, e.g., http://gtk2-perl.sourceforge.net/doc/intro/) popped up a simple window nicely (not using Glade): use strict; use warnings; use Gtk2 '-init'; my $window = Gtk2::Window->new; my $label = Gtk2::Label->new ('Hello World!'); $window->add ($label); $window->show_all; Gtk2->main; I've installed Glade (Glade 3.8.5, http://ftp.gnome.org/pub/GNOME/binaries/win32/glade/3.8/) to X:\Glade\, and it runs okay and I can create a simple .glade file okay. (Only I will be using Glade, not my end users.) My current preferences settings in the Glade app are: Project file format: [x]GtkBuilder Libglade Object names are unique: [x]within the project inside toplevels Image resources are loadd locally: [x]From the project directory Toolkit versions required: GTK+ (several other versions also listed) [x]2.24 The .glade begins / ends like this: (I can post the whole file if necessary.) <?xml version="1.0" encoding="UTF-8"?> <interface> <requires lib="gtk+" version="2.24"/> <!-- interface-naming-policy project-wide --> <object class="GtkWindow" id="window1"> ... </child> </object> </interface> Now the tricky part (for me at least). I have reviewed a few Perl code sources that I could find to get a simple window up using Glade, but am having trouble. My current code is: use strict; use warnings; use Gtk2 '-init'; use Gtk2::GladeXML; my $glade_file = 'X:\test.glade'; my $gui = Gtk2::GladeXML->new($glade_file); Gtk2->main; When I run it I don't get an app (GUI) window, but in my batch shell window, I get: (perl.exe:4372): libglade-WARNING **: Expected . Got . (perl.exe:4372): libglade-WARNING **: did not finish in PARSER_FINISH state I tried switching the project file fomat: Project file format: GtkBuilder [x]Libglade and the error changed to: (perl.exe:4036): libglade-WARNING **: unknown attribute `swapped' for . (perl.exe:4036): libglade-WARNING **: unknown attribute `swapped' for . (perl.exe:4036): libglade-WARNING **: unknown attribute `swapped' for . Any advice or suitable Perl using Glade examples would be much appreciated. Thanks very much! -- Peter