----- Original Message ----- 
From: "eros olmi" <[email protected]>

> i have installed PDL-Audio-1.1/  on linux mint successfuly but can't do so 
> in windows, so i guess the integration may make a difference.
>

I've just now built it for native windows on perl-5.12.2. (It should build 
ok on other perl versions, too.)

It's a bit of a hack because './configure' doesn't work in the cmd.exe 
shell.
If the sndlib folder provided a ready-made Makefile for Windows, then 
portability would be essentially fixed. There's some other issues as well 
(see below), but they are easily fixed in a portable way.

First problem is that the mingw headers don't define MM_MICROSOFT and 
friends (which was the problem I struck last night). The Visual Studio 
headers do, however, define those symbols - so it's just a matter of 
copy'n'pasting those definitions (from Visual Studio's mmreg.h) into 
audio.c.

Then, in the msys shell, cd to the sndlib folder and run 
'./configure --host=i686-pc-mingw32'.
There was a message that the host was not recognised, but configure just 
keeps going anyway.
Then run 'make' and the sndlib library (sndlib.a) gets built.

Before proceeding to build the module, in the top level Makefile.PL, sub 
MY::postamble needs to be amended to:

sub MY::postamble {
   my $self=shift;
   pdlpp_postamble(@pack);
}

Also, in the same file, I changed:

do "./config.pl";
to
do "config.pl";

though I suspect that might have been unnecessary.

Then, in the cmd.exe shell, cd to the top level PDL-Audio-1.1 folder and run 
(as per normal) 'perl Makefile.PL', 'dmake test', 'dmake install'.

I don't know how functional it is - 'dmake test' tests that the module loads 
(and it's a good sign that it passes that test :-), but doesn't go on to 
check any of the functionality.

Eros, if you want a Windows ppm of PDL-Audio to play with, just let me know 
your perl version and I'll send the ppm over. Or if you want any of the 
files I have (eg sndlib.a, amended audio.c), I could send them across.

Cheers,
Rob





_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to