Re: install Gtk2::GladeXML
by syphilis (Archbishop) on Jul 25, 2009 at 10:14 UTC
|
What package was it that you installed using ppm ?
What is the actual module you're trying to build that throws up the error you've reported ?
Check that libglade-2.0.pc contains the info that it ought to contain. Other than that, I'm wondering whether it's just some naming problem - expecting a pc file of a slightly different name, or the pc file specifies something that is not quite correct.
What does libglade-2.0.pc contain ?
Cheers, Rob
UPDATE: I wonder if it's just that ExtUtils::PkgConfig regards 2.0 as *not* being greater than or equal to 2.0.0, and is complaining about that. | [reply] |
|
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] |
|
|
|
Re: install Gtk2::GladeXML
by Anonymous Monk on Jul 27, 2009 at 01:20 UTC
|
| [reply] [d/l] [select] |
|
Bah, typo s/gtk-bundle/gtk_bundle/g;
| [reply] [d/l] [select] |
|
And I now have a ppm package for Gtk2-GladeXML-1.007. Anyone wanta it, just /msg me and I'll send it over. (It's for perl-5.10, though I could probably provide the same for 5.8 if needed.)
Cheers, Rob
| [reply] |
|
| [reply] |
Re: install Gtk2::GladeXML
by syphilis (Archbishop) on Jul 26, 2009 at 05:34 UTC
|
For me, the Makefile.PL runs to completion as long as libglade-2.0.pc can be found (in PKG_CONFIG_PATH) and contains at least:
Name: Libglade
Description: a library for dynamically loading GLADE interface files
Version: 2.6.4
It doesn't seem to matter what else (if anything) is included in libglade-2.0.pc - and it doesn't seem to matter whether the libglade-2.0 installation can be found (or even if it exists). Running 'dmake' still fails because MakeMaker hasn't found any of the libraries - and I'm not sure how one is supposed to remedy that. This looks like a complete and utter mess to me.
What do you get between the Set up gcc environment - 4.4.0 and the at Makefile.PL line 48 *** can not find package... ?
Cheers, Rob | [reply] [d/l] [select] |