broken perlapp in version 5-10.

--===============0871217269==
Content-Type: multipart/alternative;
boundary="----=_Part_82_29608689.1208232059130"

------=_Part_82_29608689.1208232059130
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hey all,

When I'm trying to debug a given, standalone executable app using perlapp
(ie: after I am done creating it) the resulting app doesn't seem to have an
[at] INC to do tracing. I get output like the following:

Can't locate feature.pm in [at] INC ( [at] INC contains:) at perlapp line 688.
at perlapp line 688

(note: I'm on a drive other than C: when doing this)

Also, is there any trick to getting bound files? I'm putting image files
into directories, say:

"images/files/border.gif"

binding these with --bind, and then trying to retrieve the contents with

PerlApp::extract_bound_file("images/files/border.gif");

but for some reason, it doesn't locate the above file, returning blank.. Is
there a way to see all bound files to a given program (ie: an PerlApp::ls()
for example.)

Ed

------=_Part_82_29608689.1208232059130
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hey all, <br><br>When I'm trying to debug a given, standalone executable app using perlapp (ie: after I am done creating it) the resulting app doesn't seem to have an [at] INC to do tracing. I get output like the following:<br>
<br>Can't locate feature.pm in [at] INC ( [at] INC contains:) at perlapp line 688.<br> at perlapp line 688<br><br>(note: I'm on a drive other than C: when doing this)<br><br>Also, is there any trick to getting bound files? I'm putting image files into directories, say:<br>
<br>"images/files/border.gif"<br><br>binding these with --bind, and then trying to retrieve the contents with<br><br>PerlApp::extract_bound_file("images/files/border.gif");<br><br>but for some reason, it doesn't locate the above file, returning blank.. Is there a way to see all bound files to a given program (ie: an PerlApp::ls() for example.)<br>
<br>Ed<br>

------=_Part_82_29608689.1208232059130--

--===============0871217269==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0871217269==--
Edward Peschko [ Di, 15 April 2008 06:00 ] [ ID #1943213 ]

RE: broken perlapp in version 5-10.

> Edward Peschko writes:
>
> When I'm trying to debug a given, standalone executable app using
> perlapp (ie: after I am done creating it) the resulting app doesn't
> seem to have an [at] INC to do tracing. I get output like the following:
>
> Can't locate feature.pm in [at] INC ( [at] INC contains:) at perlapp line 688.
> =A0at perlapp line 688

The empty [at] INC is fine; you are running a freestanding executable. The
problem is that PerlApp didn't recognize that it needs to bundle the
feature.pm pragma (it is being loaded implicitly by 'use 5.010'). You
can work around it by explicitly adding it with '--add feature' on the
commandline.

> (note: I'm on a drive other than C: when doing this)
>
> Also, is there any trick to getting bound files? I'm putting image
> files into directories, say:
>
> "images/files/border.gif"
>
> binding these with --bind, and then trying to retrieve the
> contents with
>
> PerlApp::extract_bound_file("images/files/border.gif");

How did you bind that file? Did you write:

--bind images/files/border.gif[file=3D.../path/to/border.gif]

Make sure you use the exact same name for --bind and extract_bound_file().
The name lookup inside PerlApp is case sensitive.

> but for some reason, it doesn't locate the above file, returning
> blank.. Is there a way to see all bound files to a given program (ie:
> an PerlApp::ls() for example.)

No, there is no mechanism to do that. The assumption is that you know
which files you are binding. If the list of bound files changes between
builds, then you can always bind some kind of manifest file yourself
to help your application to look them up again.

Cheers,
-Jan

PS: I would recommend to post PerlApp related questions on the PDK
mailing list where you'll find other PDK users who may be able to
help you...

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Jan Dubois [ Di, 15 April 2008 07:02 ] [ ID #1943214 ]
Perl » gmane.comp.lang.perl.active-perl » broken perlapp in version 5-10.

Vorheriges Thema: ActivePerl 822 and Windows GUI look/feel
Nächstes Thema: getopt long