Packaging wxPerl Applications



Packaging and distribution for Perl code on Win32.
http://www.cava.co.uk/


 

wxPerl is the Perl wrapper for the wxWidgets GUI toolkit. 

For latest compiled Wx  PPMs go here: Wx  PPMs from CVS

The wxPerl home page is at http://wxperl.sourceforge.net

The wxWidgets home page is at http://www.wxWidgets.org

On 'Microsoft' platforms, there can be some difficulty packaging wxPerl applications using popular Perl packaging tools; 

PAR, available on CPAN, 
PerlApp from the Perl Development Kit by ActiveState,
Perl2Exe from Indigo Star.

Wx-Perl-Packager assists with packaging wxPerl applications using these tools.

Wx 0.49 or later supports methods which allow PAR / PerlApp / Perl2Exe to operate successfully. 

A Wx::Perl::Packager PPM is available at http://www.wxperl.co.uk/wxppm

To use, include the following at the top of your main script.

BEGIN { use Wx::Perl::Packager; }

Users of Perl2Exe should also include a separate 'use' line as this ensures correct library unloading (Perl2Exe seems not to parse BEGIN blocks?) 

BEGIN { use Wx::Perl::Packager; }
use Wx::Perl::Packager;

Also included are two helper scripts:
wxpar
wxpdk
to assist in packaging with PAR and PDK/Perlapp

PDK/ Perlapp Note
Since Wx version 0.49,  the current version of PDK (6.0.2) no longer binds the wxWidgets DLLs automatically. Use the wxpdk script to set up .perlapp files with the necessary 'bind' entries already created for wxPerl.

e.g.   C:>wxpdk

PAR
using pp to package your script you must include each wxWidgets DLL as a shared library. Use the wxpar script to do this for you - calling it exactly as you would pp.

e.g. C:>wxpar --gui --icon=myicon.ico -o myprogname.exe myprogname.pl

........

Alternatively, source can be downloaded from link below:

Downloads

Perl 5.8.x ........

Wx::Perl::Packager source

The PPMs are for Perl 5.8.x

The PPMs have been tested with PerlApp 6.0.2 ,PAR 0.94 and Perl2Exe 8.70
They seem to work with the  following ActiveState builds:

Perl 5.8.7 build 815
Perl 5.8.8 build 817

They don't work at all with ActiveState build 816. (but then not much does).

I


www.gigi.co.uk  © 2006