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 http://wingtk.sourceforge.net/ 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?

http://wingtk.sourceforge.net/ 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 http://wingtk.sourceforge.net/
and GTK version 1.x.

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

http://ftp.gnome.org/pub/gnome/binaries/win32/

For what it's worth #2, I use Glade-generated XML with Gtk2::Builder
[1], which comes as part of the Gtk2.pm 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.

Thanks,

Brian

[1] http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Builder.html



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