deadpickle has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install Gtk2-perl on my Windows XP comp. So far here is what I have done: *Downloaded and installed Gtk+/Win32 Runtime Environment 2.10.11 *Added repository to PPM; ppm repo add http://www.lostmind.de/gtk2-perl/ppm/ *Installed Gtk2 1.141 using PPM After that I went to test the install to see if it worked. I used an example Gtk2 script. Upon Running the script I receive the error: "The procedure entry point g_type_default_interface_unref could not be located in the dynamic link library libgobject-2.0-0.dll" What does this error mean? How can I fix it?

Replies are listed 'Best First'.
Re: Installing Gtk2 using PPM on Windows
by mr_mischief (Monsignor) on Aug 13, 2007 at 18:47 UTC
    According to http://www.lostmind.de/gtk2-perl/:
    GTK+/Win32 Runtime Environment Installer 2.8.20-1 If you are just going to write programs with gtk2-perl you will only need the Runtime Environment. Please remember that the binaries provided for gtk2-perl are depending on this version of GTK+!
    So it looks like you need version 2.8.20-1 instead of 2.10.11 of the runtime environment.

    That site also specifically recommends ActiveState's perl build 819, which is a build of perl 5.8.8 using their build process. I doubt this is quite as important as the GTK+ version, though.
      Is anyone successful at installing Gtk2 to a windows system? If so what are you using?
        I installed ActiveState Perl 5.8.8 Build 819 along with Gtk+ runtime environment 2.8.20 on my Vista machine and it seems to work ok. I next tried installing the newest perl 5.8.8.822 and installed Gtk2 1.141 using Gtk+ 2.10.11 and that seems to work also. I'm not sure what was wrong. ????
Re: Installing Gtk2 using PPM on Windows
by amarquis (Curate) on Aug 13, 2007 at 16:35 UTC

    This posting I found via Google seems to imply the error comes from version mis-matches between when it is compiled and when it is used.

    Sorry I can't really help beyond pointing out that other example of your issue, I'm a bit out of my element here.

Re: Installing Gtk2 using PPM on Windows
by chahn (Beadle) on Aug 13, 2007 at 17:34 UTC
    Not much to add, but this is likely a mismatch between the version of the library you installed and the module you are using. When running your test you have an unresolved symbol. (you need a different library) But I will leave it to someone closer to this to name the library/version you need.
Re: Installing Gtk2 using PPM on Windows
by wruehl (Acolyte) on Aug 13, 2007 at 18:35 UTC
    I'm not sure about using Gtk2-Perl, but if you are developing under Windows XP, ActiveState Perl is very easy to use and install, and installing modules, even ones that aren't approved by ActiveState is fairly easy as well.

    You can get it here: http://www.activestate.com/solutions/perl/

      installing modules ... is fairly easy as well
      Installing modules under ActiveState is easy when there's a ppd, but there isn't any ppd available in any of the public repositories that are commonly known. So the OP has to compile it. (Or maybe request kobesearch to do it).