in reply to Re: install Gtk2::GladeXML
in thread install Gtk2::GladeXML

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

Replies are listed 'Best First'.
Re^3: install Gtk2::GladeXML
by syphilis (Archbishop) on Jul 25, 2009 at 17:02 UTC
    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
      ==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
        Ok - I've done all of that.
        Where did you get libxml-2 from ? I've already got it, but it's a static build I've built myself, and the fact that it's static might cause problems later on. Also, for this exercise, it's probably best that I use the same binaries as you.

        I have run 'perl Makefile.PL', and it all went fine for me once the PKG_CONFIG_PATH variable was set correctly.
        Of course, MakeMaker claims that the following libraries can't be found:
        Note (probably harmless): No library found for -lGlib Note (probably harmless): No library found for -lGtk2 Note (probably harmless): No library found for -lCairo Note (probably harmless): No library found for -lgtk-win32-2.0 Note (probably harmless): No library found for -lgdk-win32-2.0 Note (probably harmless): No library found for -latk-1.0 Note (probably harmless): No library found for -lgio-2.0 Note (probably harmless): No library found for -lgdk_pixbuf-2.0 Note (probably harmless): No library found for -lpangowin32-1.0 Note (probably harmless): No library found for -lgdi32 Note (probably harmless): No library found for -lpangocairo-1.0 Note (probably harmless): No library found for -lpango-1.0 Note (probably harmless): No library found for -lcairo Note (probably harmless): No library found for -lgobject-2.0 Note (probably harmless): No library found for -lgmodule-2.0 Note (probably harmless): No library found for -lgthread-2.0
        so 'dmake' soon fails with lots of undefined references. But note that there's no mention of not having found libxml-2.0 and libglade-2.0. Not yet sure what's happening there.

        I refuse to install anything into a path that contains white space, so I installed Gtk+ into C:\Gtk+. But I don't yet know if that explains why you get the error, and I don't. My libglade-2.0.pc looks like:
        prefix=c:/libglade 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.4 Requires: gtk+-2.0 libxml-2.0 Libs: -L${libdir} -lglade-2.0 Cflags: -I${includedir}/libglade-2.0
        May be you can spot something there that accounts for the failure you're getting, though $prefix doesn't look right to me (C:/libglade doesn't even exist) ... something else to think about.

        I'll keep digging. In the meantime, if you can fill me in with that libxml-2 info I asked for above, that might help later on.

        Cheers,
        Rob