Discussion:
[rt.cpan.org #102019] Windows 7 exe issue / Perl probram compiled with PP
(too old to reply)
Chris via RT
2015-02-09 15:05:42 UTC
Permalink
Mon Feb 09 10:05:41 2015: Request 102019 was acted upon.
Transaction: Ticket created by ***@yahoo.com
Queue: PAR
Subject: Windows 7 exe issue / Perl probram compiled with PP
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@yahoo.com
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >


Good Morning,

I am running Strawberry Perl for Windows.
The majority of devices that this exe will be sent to are Win 7.

I'm running pp from a Win7 machine.

I have a Perl script written using Perl Tk.

I enter the following at the command line :

C:\Users\chrivida\Desktop>pp --gui --icon hello.ico -o out.exe sinfo5.pl
Unknown option: icon
C:\Strawberry\perl\site\bin/pp: Input file hello.ico was not found

I figured pp couldnt find the ico file so I moved an ico into the same directory. And entered :

C:\Users\chrivida\Desktop>pp --gui --icon player.ico -o out.exe sinfo5.pl
Unknown option: icon
C:\Strawberry\perl\site\bin/pp: Binary 'player.ico' sure doesn't smell like perl source!
Can't locate object method "maybe_command" via package "MM" (perhaps you forgot
to load "MM"?) at C:/Strawberry/perl/site/lib/PAR/Packer.pm line 1569.

I then tried ...

C:\Users\chrivida\Desktop>pp --gui --output=output.exe sinfo5.pl

No errors, I see the camel icon for output.exe on my desktop.

I double click it and the program runs fine.

I go back to my desktop and rename output sinfo5, double click, the programs starts up and runs without a problem.

When I try to share the executable, usually delivered through email, the icon shows up on everyones desktop with the camel icon, however, when they double click the desktop icon, the program doesnt launch.


Thanks Chris






Christopher Vidal
***@yahoo.com
Roderich Schupp via RT
2015-02-09 17:26:42 UTC
Permalink
Mon Feb 09 12:26:41 2015: Request 102019 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR
Subject: Windows 7 exe issue / Perl probram compiled with PP
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@yahoo.com
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >
Post by Chris via RT
C:\Users\chrivida\Desktop>pp --gui --icon hello.ico -o out.exe
sinfo5.pl
Unknown option: icon
The --icon option has been removed, don't use it.
Post by Chris via RT
When I try to share the executable, usually delivered through email,
the icon shows up on everyones desktop with the camel icon, however,
when they double click the desktop icon, the program doesnt launch.
Have them run the executable from a DOS box and see if it prints any error messages.

Cheers, Roderich
Chris via RT
2015-02-09 17:56:17 UTC
Permalink
Mon Feb 09 12:56:11 2015: Request 102019 was acted upon.
Transaction: Correspondence added by ***@yahoo.com
Queue: PAR
Subject: Re: [rt.cpan.org #102019] Windows 7 exe issue / Perl probram compiled with PP
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@yahoo.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >


Will do .. thanks man !!

Sent from Yahoo Mail on Android
Chris via RT
2015-02-09 19:14:28 UTC
Permalink
Mon Feb 09 14:14:27 2015: Request 102019 was acted upon.
Transaction: Correspondence added by ***@yahoo.com
Queue: PAR
Subject: Re: [rt.cpan.org #102019] Windows 7 exe issue / Perl probram compiled with PP
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@yahoo.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >




Error is attached. I do not get the same error when I execute from the command line.

Christopher Vidal
***@yahoo.com

--------------------------------------------
On Mon, 2/9/15, Roderich Schupp via RT <bug-***@rt.cpan.org> wrote:

Subject: [rt.cpan.org #102019] Windows 7 exe issue / Perl probram compiled with PP
To: ***@yahoo.com
Date: Monday, February 9, 2015, 12:26 PM

<URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >
Post by Chris via RT
C:\Users\chrivida\Desktop>pp --gui --icon hello.ico
-o out.exe
Post by Chris via RT
sinfo5.pl
Unknown option: icon
The --icon option has been removed, don't use it.
Post by Chris via RT
When I try to share the executable, usually delivered
through email,
Post by Chris via RT
the icon shows up on everyones desktop with the camel
icon, however,
Post by Chris via RT
when they double click  the desktop icon, the
program doesnt launch.

Have them run the executable from a DOS box and see if it
prints any error messages.

Cheers, Roderich
Roderich Schupp via RT
2015-02-09 21:50:54 UTC
Permalink
Mon Feb 09 16:50:42 2015: Request 102019 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR
Subject: Windows 7 exe issue / Perl probram compiled with PP
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@yahoo.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >
Post by Chris via RT
Error is attached. I do not get the same error when I execute from
the command line.
The error most likely means that XSLoader.pm didn't get packed in.
On your machine, it's of course available (though outside of the packed executable)
so you don't get the error. Though that should be considered a bug, as the
packed executable shouldn't use anything from the outside. Very strange, also
@INC as given in the error message looks bogus.

What versions of PAR, PAR::Packer and Module::ScanDeps are you using?
Does the problem also occur with a minimalistic Tk program, e.g.
examples/tiny from the Tk distribution?

Cheers, Roderich
Roderich Schupp via RT
2015-02-10 08:45:21 UTC
Permalink
Tue Feb 10 03:45:19 2015: Request 102019 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR
Subject: Windows 7 exe issue / Perl probram compiled with PP
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@yahoo.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102019 >
Post by Roderich Schupp via RT
What versions of PAR, PAR::Packer and Module::ScanDeps are you using?
Could you also run contrib/extract_embedded/extract-embedded.pl
(from the PAR::Packer distribution) on your packed executable like so:

mkdir stage2
perl contrib/extract_embedded/extract-embedded.pl packed.exe stage2

and post what is printed?

Cheers, Roderich

Loading...