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


in reply to Multiple Versions of Perl and Multiple Users

Hi Matt

I have been developing multiple Perl+GUI tools in my company. I also faced similar issues like you when packaging for Windows. After a lots of research, Past 2 years I have been using "PerlApp" - Active State PDK. PerlAPP is a nice utility from Active State to convert perl scripts to Windows EXEs.

I have following configuration,

1. OS: Windows 7 x64 bit 2. Perl: Active Perl 5.16 x32 bit version, I need to create exes for x +86 & x64 beside, I have not yet got a situation to force me to move o +n x64 perl. 3. GTK2: Get Gtk2 and other essential pre built perl packages from Rep +ository: http://www.sisyphusion.tk/ppm/package.xml 4. Glade: Get windows version exe of Glade 3.8.1 (3.14 version is not +working good in windows) from Gtk website - This is to develop GUIs a +nd load from code. 5. That is it - You can use perl app to convert your Gtk2-perl script +to exe. 6. Note: sisyphusion's repository builds Gtk2 with using GCC Libs. So +you need include c:\Perl\site\bin\libgcc_sis_452.dll and c:\Perl\site +\bin\libgcc_x86_470.dll in perl App project as a "Bound Files" with a +uto extract on startup option. So these libs will be available to you +r exe for linking. 7. Note: You should also include any resource files, Ex: Pix map image +s / glade file as a "Bound Files" and in your code you need to extrac +t before using. 8. Have a look my perl Gtk2 project: http://code.google.com/p/saaral-s +oft-search-spider/ , Browse for code and see how I handle perl APP bo +und files. Also there is an exe (perlApp created) , you can play with + it to see how Perl+Gtk2 exe behaves.

Thanks & Regards,
Bakkiaraj M
My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

Replies are listed 'Best First'.
Re^2: Multiple Versions of Perl and Multiple Users
by mmartin (Monk) on Oct 11, 2013 at 17:08 UTC
    Hey Guys,

    Sorry for the delay, I had to push this off for a few days because of work, but I was able to get back to it this morning...

    So I decided to grab an old/spare laptop from work which was pretty much bare bones Windows XP Thinkpad.

    I installed Strawberry Perl v5.14 on the PC and just now finally got all the Required Modules
    for Gtk2 installed from http://www.sisyphusion.tk/ppm, which all installed without any
    issues... Great site, thanks for posting that link Sam_bakki.

    At first I had all the modules installed but when I ran my Perl GUI I would get these errors, all on the same line:
    Gdk-WARNING **: gdk_win32_pixmap_new: depth = 16 not supported at myGU +I.pl line 1120. Gdk-CRITICAL **: gdk_gc_new_with_values: assertion `drawable != NULL' +failed at myGUI.pl line 1120. Gdk-CRITICAL **: gdk_gc_set_colormap: assertion `GDK_IS_GC (gc)' faile +d at myGUI.pl line 1120.
    And the line containing the error was: (*i.e. Line 1120)
    $window->show_all;
    And I couldn't figure out why the heck I was getting these errors. I also got the same error on a simple Hello
    World GUI which only contained one widget... So I decided to remove all the Modules and its dependencies
    for Gtk2. I then reinstalled them and still go the same error.

    I then noticed the error was mentioning the depth was "16", so I checked the display "Settings" tab from the
    Desktop Properties menu and noticed the colordepth was set to 16bit. So I changed it to 32-bit and now everything
    seems to be runnning PERFECTLY...!!!

    Thanks Again sam_bakki for your post about the Gtk2 Modules...

    So I think I'm going to attempt the CavaPackager program again now that I have a compatible verison of Perl installed.
    If that doesn't work, or if it gets too confusing, which could happen because it is a pretty extensive app with
    LOTS of configurables, options, etc... I'll give one of the other options a try.

    Here are the one's I know of:
    • CavaPackager
    • Perl2Exe
    • pp (*or PAR::Packer)
    • PerlApp (*Not sure, but can this ONLY be used with an ActiveState Perl installation...?)
    • perlcc

    Are there any others out there that anyone else can think of to add to this list..? I wanted to try a few and see which
    one I like best.

    Again, thanks for the replies guys, very much apprecited!


    Thanks,
    Matt