broken perlapp in version 5-10.

broken perlapp in version 5-10.

am 15.04.2008 06:00:59 von Edward Peschko

--===============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
@INC to do tracing. I get output like the following:

Can't locate feature.pm in @INC (@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,

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 @INC to do tracing. I get output like the following:


Can't locate in @INC (@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--

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

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0871217269==--

RE: broken perlapp in version 5-10.

am 15.04.2008 07:02:30 von Jan Dubois

> 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 @INC to do tracing. I get output like the following:
>
> Can't locate feature.pm in @INC (@INC contains:) at perlapp line 688.
> =A0at perlapp line 688

The empty @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@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs