On Wed, 22 Aug 2007, Mark Dootson wrote:
> I decided to check how easy it is to setup mingw32 to build PAR::Packer.
> 
> The steps followed were:
> 
> Download mingw32 installer ( 1 file ).
> Run it and accept default options to install mingw32.
> Download and extract dmake from CPAN
> Create a batch file to setup build environment (PATH, LIB, INCLUDE)

I have some plans to bundle MinGW and dmake into PPM packages, so that
all you would need is `ppm install mingw` to get it all set up, but
I seem to continuously run out of tuits for that.  One of these days
though...

> Create libperl58.a (not sure I actually needed this)

I don't think this is necessary.  MinGW can link against .lib files,
and with the changes in AP822 at least ExtUtils::MakeMaker will do
that.

> from command prompt opened via batch file
> perl makefile.PL
> dmake
> dmake test
> dmake install

You could also use the CPAN shell to do this:

  cpan -i PAR::Packer

> and I have a working PAR::Packer.
> I'm using ActivePerl build 822.
> I think 820 would need ExtUtils::FakeConfig too. (I've not tested if it would 
> actually work on that
> build though).

Special thanks go to Alexey Borzenkov, who provided most of the work to
make PAR-Packer compile out-of-the-box with ActivePerl 822 and MinGW.

Cheers,
-Jan

PS: You may want to set ACTIVEPERL_CONFIG_SILENT=1 in your global
    environment if you are using MinGW exclusively.  That gets rid
    of all those "Set up gcc environment" messages.

Reply via email to