I'm trying to install this module :
http://search.cpan.org/~tsch/Gtk2-GladeXML-1.007/
perl MakeFile.PL
dmake (win)/ Make (unix)
...
=> I still don't understand what can I do to solve this problem.
I'm wishing to use so much Glade& Perl together!
cheers
Antoine
My configuration is based on ActivePerl
PErl Version : This is perl, v5.10.0 built for MSWin32-x86-multi-thread
ExtUtils-PkgConfig-1.12
Glib-1.221
Gtk2-1.183
I've installed the following using ppm. (executed via cmd.exe)
http://search.cpan.org/dist/ExtUtils-Depends-0.302/
http://search.cpan.org/dist/ExtUtils-PkgConfig-1.12/
http://search.cpan.org/dist/Glib-1.221/
http://search.cpan.org/dist/Gtk2-1.183/
My libglade-2.0.pc contain the following :
C:\Program Files\Common Files\GTK\2.0\lib
prefix=/target
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
# so people can do "pkg-config --variable moduledir libglade-2.0"
# (which is broken - users can now use the LIBGLADE_MODULE_PATH
# environment variable
moduledir=${libdir}/libglade/2.0
Name: Libglade
Description: a library for dynamically loading GLADE interface files
Version: 2.6.2
Requires: gtk+-2.0 libxml-2.0
Libs: -L${libdir} -lglade-2.0
Cflags: -I${includedir}/libglade-2.0
perl Makefile.PL
The output of the mistake :
Set up gcc environment - 4.4.0
at Makefile.PL line 48
*** can not find package libglade-2.0 >= 2.0.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
at Makefile.PL line 48
| [reply] |
I still don't understand what can I do to solve this problem
It's a bit hard for me to really know without going through the process myself. (I'm not familiar with the finer points of ExtUtils::PkgConfig.) From where did you get the ppm package that you installed ? Also from where did you get the requisite C libraries ? I'll try to install the same stuff and see if I can work out what's going wrong.
In the meantime, at aprroximately line 51 of the Makefile.PL, you'll see exit 0; I would try commenting that line out ... then re-run 'perl Makefile.PL' and see what happens. If the makefile gets written, run 'dmake' and see how it all goes.
Cheers, Rob
| [reply] [d/l] |
==Environnement ==
OS : Windows Vista x86 32bits
=== Install Perl (ActivePerl) ==
http://www.activestate.com/activeperl/
== Add the ppm repositories==
Win+r
type on cmd
ppm rep add bribes http://www.bribes.org/perl/ppm
ppm repo add http://www.lostmind.de/gtk2-perl/ppm/
ppm rep add http://trouchelle.com/ppm10/
===Download the module ====
type ppm then enter the following values or
ppm install <Name_OF_Module>
or event do ppm install Packagename.ppd
I prefer the first method ;)
ExtUtils-Depends
ExtUtils-PkgConfig
Cairo
Glib
Gtk2
===GTK2 ==
I've followed this link
http://lostmind.de/gtk2-perl/
===Intall Glade and GTK+ ==
Download the exe file
glade3-3.6.7-with-GTK+.exe 02-Jul-2009 21:51 17M
http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/
== set on the variable ===
PKG_CONFIG_PATH
C:\Program Files\Common Files\GTK\2.0\lib\pkgconfig
(by default in the installation)
this is my path cotaining the *.pc file ; especially the
libxml-2.0.pc and libglade-2.0.pc
== Install Gcc Compiler ==
I use personnaly
http://djibril.developpez.com/tutoriels/perl/installation-modules/fichiers/dmake-4.1pl1-win32.zip
dmake.exe" modified by Gurusamy Sarathy (available on CPAN)
set on in PATH variable ;C:\gcc\bin;
=>Restart the PC
==Install Gtk2::GladeXML ==
Download the module
cd NameofModule
perl Makefile.pl
Then I've got this error on my CMD
Thanks for your help
Set up gcc environment - 4.4.0
at Makefile.PL line 48
*** can not find package libglade-2.0 >= 2.0.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
at Makefile.PL line 48
| [reply] |