Click here to get back home

Trying to compile MP3::Info gives errors

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Trying to compile MP3::Info gives errors Philipp 12-12-2005
Posted by Philipp on December 12, 2005, 11:17 am
Please log in for more thread options


Hello
I try to compile a perl script into a win32 executable using the PAR
packager. The script uses the module MP3::Info which seems to be the
problem. The smallest code which make the problem is:

#### Perl code in file hello.pl
use MP3::Info;
$mp3InfoHashRef = get_mp3info("C:3.mp3");
$bitR = $mp3InfoHashRef->;
print "bitR: $bitR";
#### End of Perl code


On compile I get

>p2e hello.pl
Processing 'MP3::Info'
Processing 'strict'
Processing 'Carp'
Processing 'Carp::Heavy'
Processing 'warnings'
Processing 'Exporter'
Processing 'Exporter::Heavy'
Processing 'overload'
Processing 'Scalar::Util'
Processing 'List::Util'
Processing 'DynaLoader'
Error while creating Module::Info object for 'Mac::FileSpec::Unixish' at
C:/Perl/site/lib/App/Packer/Frontend/ModuleInfo.pm line 123.
Processing 'vars'
Processing 'warnings::register'
Processing 'AutoLoader'
Processing 'Config'
Processing 'Encode::Guess'
Processing 'base'
Processing 'bytes'
Processing 'bytes_heavy.pl'
B::Module::Info,modules_used use failed with 9 saying:
Undefined subroutine &bytes::import called at C:\Perl\lib\bytes_heavy.pl
line 4.

BEGIN failed--compilation aborted at C:\Perl\lib\bytes_heavy.pl line 4.
Writing 'my.exe'



Can someone tell me what's wrong?

I guess the first error is for some Macintosh things I am not interested
in (as I'm on win 2000). But I can't figure out the second error. Any
input is welcome.

Thanks and best regards Phil


Posted by Philipp on December 12, 2005, 11:23 am
Please log in for more thread options


Sorry that code should have been:

#### Perl code in file hello.pl
use MP3::Info;
$mp3InfoHashRef = get_mp3info("C:3.mp3");
$bitR = $mp3InfoHashRef->;
print "bitR: $bitR";
#### End of Perl code

(forgot the second backslash \ he he)
But still no difference on the compiling.


Posted by Sisyphus on December 12, 2005, 10:28 pm
Please log in for more thread options



> Hello
> I try to compile a perl script into a win32 executable using the PAR
> packager. The script uses the module MP3::Info which seems to be the
> problem. The smallest code which make the problem is:
>
> #### Perl code in file hello.pl
> use MP3::Info;
> $mp3InfoHashRef = get_mp3info("C:3.mp3");
> $bitR = $mp3InfoHashRef->;
> print "bitR: $bitR";
> #### End of Perl code
>
>
> On compile I get
>
> >p2e hello.pl
[errors snipped]

What is 'p2e' ? I get:

'p2e' is not recognized as an internal or external command, operable program
or batch file.

I tried using one of the mp3 files that come with MP3::Info (as I don't have
C:3.mp3):

use warnings;
use MP3::Info;
$mp3InfoHashRef = get_mp3info("D:\comp58_M\MP3-Info-1.13\t\test1.mp3");
$bitR = $mp3InfoHashRef->;
print "bitR: $bitR";

When run as a perl script that produces:

bitR: 128

I then built the excutable using PAR's pp utility with:

pp -o hello.exe hello.pl

When I run 'hello.exe' I get the same output:

bitR: 128

That is - I can't reproduce the problem you're facing.

(I'm using PAR-0.90 on Windows2000 with perl 5.8.7.)

Cheers,
Rob




Posted by Philipp on December 12, 2005, 1:00 pm
Please log in for more thread options


Sisyphus wrote:
>
>>Hello
>>I try to compile a perl script into a win32 executable using the PAR
>>packager. The script uses the module MP3::Info which seems to be the
>>problem. The smallest code which make the problem is:
>>
>>#### Perl code in file hello.pl
>>use MP3::Info;
>>$mp3InfoHashRef = get_mp3info("C:3.mp3");
>>$bitR = $mp3InfoHashRef->;
>>print "bitR: $bitR";
>>#### End of Perl code
>>
>>
>>On compile I get
>>
>> >p2e hello.pl
>
> [errors snipped]
>
> What is 'p2e' ? I get:
>
> 'p2e' is not recognized as an internal or external command, operable program
> or batch file.
>
> I tried using one of the mp3 files that come with MP3::Info (as I don't have
> C:3.mp3):
>
> use warnings;
> use MP3::Info;
> $mp3InfoHashRef = get_mp3info("D:\comp58_M\MP3-Info-1.13\t\test1.mp3");
> $bitR = $mp3InfoHashRef->;
> print "bitR: $bitR";
>
> When run as a perl script that produces:
>
> bitR: 128
>
> I then built the excutable using PAR's pp utility with:
>
> pp -o hello.exe hello.pl
>
> When I run 'hello.exe' I get the same output:
>
> bitR: 128
>
> That is - I can't reproduce the problem you're facing.
>
> (I'm using PAR-0.90 on Windows2000 with perl 5.8.7.)

Hello Rob,

Thanks for your answer which brought me to review the whole thing. I
missunderstood what App::Packer does.
I thought it would compile my script in a win32 exe, but it actually
just wraps the script in a bundle and you still need a perl interpreter
on the machine to execute it. So p2e.pl is part of that App::Packer and
has nothing to do with pp from PAR (sorry about that).

I'll try to install PAR and make it work (as a perlcc compilation failed
as well).

Best regards
Phil



Posted by Bart Lateur on December 13, 2005, 8:46 am
Please log in for more thread options


Philipp wrote:

>$mp3InfoHashRef = get_mp3info("C:3.mp3");

Double that backslash please. Or use a forward slash.

--
        Bart.


Similar ThreadsPosted
MP4::Info 1.00 released to CPAN August 22, 2004, 12:45 am
Audio DSP Info needed October 18, 2004, 11:00 pm
ANN: Win32-Fonts-Info V0.01 June 27, 2006, 5:27 am
Module to retrieve general TTF font info May 31, 2005, 5:16 am
Module to return Local Policy Info July 13, 2008, 1:50 pm
Net::Nessus 0.09 does not compile October 26, 2004, 9:04 am
How do we compile for perl? April 10, 2005, 11:01 pm
Compile of DB::DB2 on cygwin June 15, 2005, 7:38 pm
Conditional compile if 64-bit cpu, in .xs ? August 28, 2006, 12:00 am
Help with Math::GMP compile on AIX 5.3 September 11, 2007, 4:47 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap