RE: Compiling Gtk2::GladeXML

Thanks for replying, and for asking the good questions !

Where did you get the rest of the GTK library stack
(GTK+/Glib/Pango/Cairo) that you're using on your Windows machine?

I used this scripts from
The files are from
So it's the source you used.

I tried again with
And looking at what the scripts where doing I could have a makefile done without error or warning.

At the end with copying include/ from the unzipped libglade folder in the cpan build 
folder, I could compile and install the module... 

I will try the Gtk2::Builder anyway.

Thanks again


-----Original Message-----
From: Brian Manning [mailto:elspicyjack gmail com]
Sent: jeudi, 3. novembre 2011 17:31
To: RAPPAZ Francois
Cc: gtk-perl-list gnome org
Subject: Re: Compiling Gtk2::GladeXML

On Thu, Nov 3, 2011 at 9:11 AM, RAPPAZ Francois
<francois rappaz unifr ch> wrote:
With perl 5.12 from strawberry, I managed to compile Gtk2 and friends
from CPAN. Now I need to use glade generated xml files and I need the
Gtk2::GladeXML module.

I downloaded the libglade dll from and
installed it.

Where did you get the rest of the GTK library stack
(GTK+/Glib/Pango/Cairo) that you're using on your Windows machine? looks like they only have binaries for
GTK version 1.x, which is probably not what you're after.

When I tried to generate a makefile from the cpan build folder of
Gtk2::GladeXML it complains about a libglade-2.0.pc file missing in the
pkgconfig folder.
I add "by hand" such a file with 3 lines:

Name: Libglade
Description: a library for dynamically loading GLADE interface files
Version: 2.0.2
and a makefile is produced.

But the compilation failed with a glade/glade-xml.h file missing.
Copying this file and the glade folder from the libglade/glade
installed from wingtk does not help either.

Does anyone know how to have this module installed ?

Maybe you missed a -dev package that has the .pc and header files you
need?  Also see my comment above about
and GTK version 1.x.

For what it's worth #1, I get my Windows GTK binaries here:

For what it's worth #2, I use Glade-generated XML with Gtk2::Builder
[1], which comes as part of the module distribution.  If you're
using Glade to generate XML for your GUI, newer versions of Glade can
generate the correctly formatted XML to use with Gtk2::Builder.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]