http://www.perlmonks.org?node_id=1040169


in reply to Perl Gtk2 for Windows

I haven't used Citrus Perl or Cava packager as someone else has suggested. I believe that the suggestion there is to use Cava packager to bundle your code into a stand-alone executable that the other person can simply run and you don't need to worry about having Perl or anything else installed on their machine. You can do the same thing by installing PAR::Packer and use it's pp utility

Just a few quick points to keep in mind if you go this route. First, if you want to create a Windows executable, you need to be on Windows. Also, 32-bit Windows systems will not be able to run 64-bit executables, but 64-bit Windows systems can run 32-bit executables. So I would suggest building a 32-bit executable for maximum Windows portability.

If you don't have access to a Windows machine to create a Windows executable, an alternative may be to use App::Fatpacker. Then have the other person install Perl on their Windows XP system - they might need Gtk2 libraries installed too. Going this route, I think you can avoid having to be concerned about what modules and what versions of those modules are installed on the Windows system.

Replies are listed 'Best First'.
Re^2: Perl Gtk2 for Windows
by Anonymous Monk on Jul 08, 2013 at 16:59 UTC
    FINALLY.......!!

    I finally got my script running using Gtk2... I was on vacation last week so I hadn't looked at any of
    this since a little over a week ago and maybe my PC needed a vacation too, cause now its working ha...

    In my previous post I posted code for a script that installs the necessary Modules needed for Gtk2.
    The problem I was having was that the Dependency packages needed would fail every single time I would
    try installing them. So today I deleted EVERYTHING perl related from my PC and uninstalled "Strawberry"
    Perl, (*which is what I'm using now)...

    After uninstalling Perl (*5.12 I think) and then reinstalling the most recent Strawberry Perl
    version (*5.18)I began installing the necessary Modules one by one using CPAN up until I hit
    this ExtUtils::MakeMaker Module, which refused to install nicely... So I tried using "force install"
    and was finally able to get that one installed.

    After that Module in the list I had more issues installing the other modules using cpan, so I decided to try
    ppm which then installed the remaining Modules without any issues at all...


    So now I'm going to try to use the pp (*i.e. the Par::Packer) Utility/Module to package up the script
    into an executable so I don't have to go through the same hell I went through to get this installed on my XP Virtual
    Machine... Or if its easier (*Not sure would have to try it out first) I'll try the CavaPackager program which
    looks like it runs as a GUI, so maybe that's easier... Not sure yet though.

    Any advice for which Perl "Packager" would be best or if there's anything I need to know before I give it a try?
    Any thoughts would be greatly appreciated!


    Thanks AGAIN,
    Matt

      As I've said before, I personally have never used Cava Packager, so I can't offer an opinion on whether it is good or bad. I have seen others recommend it in posts on this site. In my personal experience, I have not had any issues using the pp utility from PAR::Packer to create executables.

      If you use the pp utility, be sure to read the documentation. You'll probably want the -x option and might want to read about the --gui option.

      From my perspective, it looks like you have a choice of two tools to use. Go with the one that both gets the job done and that you're comfortable using.