Skip Menu |

This queue is for tickets about the Audio-Scan CPAN distribution.

Report information
The Basics
Id: 76784
Status: new
Priority: 0/
Queue: Audio-Scan

People
Owner: Nobody in particular
Requestors: info1 [...] wolframhumann.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.93
Fixed in: (no value)



Subject: How to install with Strawberry Perl
On Windows, Audio:Scan assumes that you use ActiveState Perl and Visual Studio 8. This is a pity and support for Strawberry Perl is not hard to implement. In 3 places you have to replace #ifdef _MSC_VER with #ifndef __WIN32__ These places are: Scan.xs:182 src/common.c:208 include/common.h:36 Additionally, you need a compatible version of zlib. I copied zlib1.dll that I have in c:\strawberry\c\bin\zlib1.dll to the win32 directory of Audio::Scan (but I'm not sure if every Strawberry Perl installation has this). To use that lib I had to modify the respective line in Makefile.PL to $MYEXTLIB .= 'win32/zlib1.dll '; zlib1.dll might be usable with Visual Studio but I can't test that. If not, it might be possible to use $Config{cc} to decide which one to use.
Oops, got slightly confused -- #ifdef and #ifndef of course stay as they are, only replace _MSC_VER with __WIN32__. So I hope this is right now: Show quoted text
> Scan.xs:182 #ifdef _MSC_VER -> #ifdef __WIN32__ > src/common.c:208 #ifdef _MSC_VER -> #ifdef __WIN32__ > include/common.h:36 #ifndef _MSC_VER -> #ifndef __WIN32__