
shared components in 'compiled' executables.
--===============1020989705==
Content-Type: multipart/alternative;
boundary="----=_Part_1902_24914745.1213810840978"
------=_Part_1902_24914745.1213810840978
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hey all,
I've been using perlapp/perltray/etc. to 'compile' executables, and was
wondering whether the following was possible:
I would like to be able to share components between executables of the same
overarching 'application'. As it stands right now, I have several apps that
are all related together, and hence could reuse each others' components. But
since they are all compiled separately, they all bundle (repeatedly) the
same perl executable, shared libraries, etc.
How do you make it so that each library in one app is viewable/usable by the
others, and hence does not need to be archived separately?
Thanks much,
Ed
------=_Part_1902_24914745.1213810840978
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hey all,<br><br>I've been using perlapp/perltray/etc. to 'compile' executables, and was wondering whether the following was possible:<br><br>I would like to be able to share components between executables of the same overarching 'application'. As it stands right now, I have several apps that are all related together, and hence could reuse each others' components. But since they are all compiled separately, they all bundle (repeatedly) the same perl executable, shared libraries, etc. <br>
<br>How do you make it so that each library in one app is viewable/usable by the others, and hence does not need to be archived separately?<br><br>Thanks much,<br><br>Ed<br>
------=_Part_1902_24914745.1213810840978--
--===============1020989705==
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
--===============1020989705==--
RE: shared components in 'compiled' executables.
This is a multipart message in MIME format.
--===============1843639371==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0AD2_01C8D131.092A7800"
Content-Language: en-ca
This is a multipart message in MIME format.
------=_NextPart_000_0AD2_01C8D131.092A7800
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Check out the--scan, --shared, --use and -runlib options.
I thought I posted a sample for this to the PDK list, but the best I can find right now is this:
http://aspn.activestate.com/ASPN/Mail/Message/pdk-beta/33552 75
Note that you don't need to have a separate shared lib; you could try to bundle as much as you can into one of your applications and
just use that one. Conceptually I prefer a separate lib though.
Cheers,
-Jan
From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Edward Peschko
Sent: June 18, 2008 10:41 AM
To: activeperl [at] listserv.activestate.com
Subject: shared components in 'compiled' executables.
hey all,
I've been using perlapp/perltray/etc. to 'compile' executables, and was wondering whether the following was possible:
I would like to be able to share components between executables of the same overarching 'application'. As it stands right now, I
have several apps that are all related together, and hence could reuse each others' components. But since they are all compiled
separately, they all bundle (repeatedly) the same perl executable, shared libraries, etc.
How do you make it so that each library in one app is viewable/usable by the others, and hence does not need to be archived
separately?
Thanks much,
Ed
------=_NextPart_000_0AD2_01C8D131.092A7800
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Check out the--scan, --shared, --use and –runlib =
options.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>I thought I posted a sample for this to the PDK list, but =
the
best I can find right now is this:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'> <a
href=3D"http://aspn.activestate.com/ASPN/Mail/Message/pdk-be ta/3355275">h=
ttp://aspn.activestate.com/ASPN/Mail/Message/pdk-beta/335527 5</a><o:p></o=
:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Note that you don’t need to have a separate shared =
lib; you
could try to bundle as much as you can into one of your applications and =
just
use that one. Conceptually I prefer a separate lib =
though.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Cheers,<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>-Jan<o:p></o:p></span></p>
<p class=3DMsoNormal><a name=3D"_MailEndCompose"><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span=
></a></p>
<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm =
0cm 4.0pt'>
<div>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0cm 0cm 0cm'>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >
activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <b>On Behalf Of =
</b>Edward
Peschko<br>
<b>Sent:</b> June 18, 2008 10:41 AM<br>
<b>To:</b> activeperl [at] listserv.activestate.com<br>
<b>Subject:</b> shared components in 'compiled' =
executables.<o:p></o:p></span></p>
</div>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>hey all,<br>
<br>
I've been using perlapp/perltray/etc. to 'compile' executables, and was
wondering whether the following was possible:<br>
<br>
I would like to be able to share components between executables of the =
same
overarching 'application'. As it stands right now, I have several apps =
that are
all related together, and hence could reuse each others' components. But =
since
they are all compiled separately, they all bundle (repeatedly) the same =
perl
executable, shared libraries, etc. <br>
<br>
How do you make it so that each library in one app is viewable/usable by =
the
others, and hence does not need to be archived separately?<br>
<br>
Thanks much,<br>
<br>
Ed<o:p></o:p></p>
</div>
</div>
</body>
</html>
------=_NextPart_000_0AD2_01C8D131.092A7800--
--===============1843639371==
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
--===============1843639371==--
RE: shared components in 'compiled' executables.
--===============1495919968==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Dexc hewr04data_"
--_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Dexchewr04da ta_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Ed,
That option is directly supported by perlapp / pertray (see the User Guide)=
..
What I do is compile all my common modules and the perl10.dll inside of a s=
ingle (or many) dll file(s) in one project . On the 'Options 2' tab ensure=
that you select 'Only share with my own executables (those generated with =
this PDK license)' or 'Share with anybody'.
Then in another project I add that dll to the 'Module Search Path' and ensu=
re to 'Exclude perl510.dll from executable' on the 'Size' tab. Finally on =
the 'Options 1' tab ensure to select 'Use run library' and give a relative =
path to where your application can find the required dll(s). I simply use =
"." to look in the local directory.
--Joel
From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounce=
s [at] listserv.ActiveState.com] On Behalf Of Edward Peschko
Sent: Wednesday, June 18, 2008 1:41 PM
To: activeperl [at] listserv.activestate.com
Subject: shared components in 'compiled' executables.
hey all,
I've been using perlapp/perltray/etc. to 'compile' executables, and was won=
dering whether the following was possible:
I would like to be able to share components between executables of the same=
overarching 'application'. As it stands right now, I have several apps tha=
t are all related together, and hence could reuse each others' components. =
But since they are all compiled separately, they all bundle (repeatedly) th=
e same perl executable, shared libraries, etc.
How do you make it so that each library in one app is viewable/usable by th=
e others, and hence does not need to be archived separately?
Thanks much,
Ed
________________________________
This message may contain confidential or privileged information. If you are=
not the intended recipient, please advise us immediately and delete this m=
essage. See http://www.datapipe.com/emaildisclaimer.aspx for further inform=
ation on confidentiality and the risks of non-secure electronic communicati=
on. If you cannot access these links, please notify us by reply message and=
we will send the contents to you.
--_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Dexchewr04da ta_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spread sheet" xmlns=
:oa=3D"urn:schemas-microsoft-com:office:activation" xmlns:html=3D"http://ww=
w.w3.org/TR/REC-html40" xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope=
/" xmlns:D=3D"DAV:" xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2=
003/xml" xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/oi s/" xm=
lns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/dire ctory/" xmlns:d=
s=3D"http://www.w3.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.micros=
oft.com/sharepoint/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc"=
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas=
..microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.or=
g/2001/04/xmlenc#" xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xm=
lns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http=
://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf=3D"http://schemas.micros=
oft.com/data/udc/xmlfile" xmlns:wf=3D"http://schemas.microsoft.com/sharepoi=
nt/soap/workflow/" xmlns:mver=3D"http://schemas.openxmlformats.org/markup-c=
ompatibility/2006" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/o=
mml" xmlns:mrels=3D"http://schemas.openxmlformats.org/package/200 6/relation=
ships" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/service s/2006/t=
ypes" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/service s/2006/me=
ssages" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns=3D"http://www.w3.org/T=
R/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"Section1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Ed,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">That option is directly supported by perlapp / pertray (see =
the User Guide).<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">What I do is compile all my common modules and the perl10.dl=
l inside of a single (or many) dll file(s) in one project . On the =
8216;Options 2’ tab ensure that
you select ‘Only share with my own executables (those generated with=
this PDK license)’ or ‘Share with anybody’.<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Then in another project I add that dll to the ‘Module =
Search Path’ and ensure to ‘Exclude perl510.dll from executable=
’ on the ‘Size’ tab. Finally on the
‘Options 1’ tab ensure to select ‘Use run library’=
and give a relative path to where your application can find the required d=
ll(s). I simply use “.” to look in the local directory.<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">--Joel<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"=
;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:"Tahoma","sans-serif""> activepe=
rl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.Act=
iveState.com]
<b>On Behalf Of </b>Edward Peschko<br>
<b>Sent:</b> Wednesday, June 18, 2008 1:41 PM<br>
<b>To:</b> activeperl [at] listserv.activestate.com<br>
<b>Subject:</b> shared components in 'compiled' executables.<o:p></o:p></sp=
an></p>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">hey all,<br>
<br>
I've been using perlapp/perltray/etc. to 'compile' executables, and was won=
dering whether the following was possible:<br>
<br>
I would like to be able to share components between executables of the same=
overarching 'application'. As it stands right now, I have several apps tha=
t are all related together, and hence could reuse each others' components. =
But since they are all compiled
separately, they all bundle (repeatedly) the same perl executable, shared =
libraries, etc.
<br>
<br>
How do you make it so that each library in one app is viewable/usable by th=
e others, and hence does not need to be archived separately?<br>
<br>
Thanks much,<br>
<br>
Ed<o:p></o:p></p>
</div>
<br>
<hr>
<font face=3D"Arial" color=3D"Gray" size=3D"1">This message may contain con=
fidential or privileged information. If you are not the intended recipient,=
please advise us immediately and delete this message. See http://www.datap=
ipe.com/emaildisclaimer.aspx for further
information on confidentiality and the risks of non-secure electronic comm=
unication. If you cannot access these links, please notify us by reply mess=
age and we will send the contents to you.<br>
</font>
</body>
</html>
--_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Dexchewr04da ta_--
--===============1495919968==
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
--===============1495919968==--
RE: shared components in 'compiled' executables.
This is a multipart message in MIME format.
--===============0925685358==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0AEB_01C8D133.953E3B40"
Content-Language: en-ca
This is a multipart message in MIME format.
------=_NextPart_000_0AEB_01C8D133.953E3B40
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi Joel,
Excluding perl510.dll is no longer necessary in PDK 7. It may provide a performance benefit if you don't use --dyndll, but with
dynamic DLL loading using a bundled shared perl510.dll should not have any noticeable disadvantage.
However, if you include perl510.dll separately, then using '.' as the runlib is bad practice: if you add your application directory
to the PATH, and you also have a local Perl installation on the PATH, then you may break either your application, or the Perl
installation if they are not of the same version, depending on which directory is listed first in the PATH. You avoid this issue by
using a separate runlib directory.
Cheers,
-Jan
PS: This discussion should really be moved to the PDK mailing list.
From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Joel Friedman
Sent: June 18, 2008 10:54 AM
To: 'Edward Peschko'; activeperl [at] listserv.activestate.com
Subject: RE: shared components in 'compiled' executables.
Ed,
That option is directly supported by perlapp / pertray (see the User Guide).
What I do is compile all my common modules and the perl10.dll inside of a single (or many) dll file(s) in one project . On the
'Options 2' tab ensure that you select 'Only share with my own executables (those generated with this PDK license)' or 'Share with
anybody'.
Then in another project I add that dll to the 'Module Search Path' and ensure to 'Exclude perl510.dll from executable' on the 'Size'
tab. Finally on the 'Options 1' tab ensure to select 'Use run library' and give a relative path to where your application can find
the required dll(s). I simply use "." to look in the local directory.
--Joel
From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Edward Peschko
Sent: Wednesday, June 18, 2008 1:41 PM
To: activeperl [at] listserv.activestate.com
Subject: shared components in 'compiled' executables.
hey all,
I've been using perlapp/perltray/etc. to 'compile' executables, and was wondering whether the following was possible:
I would like to be able to share components between executables of the same overarching 'application'. As it stands right now, I
have several apps that are all related together, and hence could reuse each others' components. But since they are all compiled
separately, they all bundle (repeatedly) the same perl executable, shared libraries, etc.
How do you make it so that each library in one app is viewable/usable by the others, and hence does not need to be archived
separately?
Thanks much,
Ed
_____
This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately
and delete this message. See http://www.datapipe.com/emaildisclaimer.aspx for further information on confidentiality and the risks
of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the
contents to you.
------=_NextPart_000_0AEB_01C8D133.953E3B40
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
xmlns:a=3D"urn:schemas-microsoft-com:office:access" =
xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" =
xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" =
xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" =
xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" =
xmlns:c=3D"urn:schemas-microsoft-com:office:component:spread sheet" =
xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:D=3D"DAV:" =
xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/x ml" =
xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/oi s/" =
xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/di rectory/" =
xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" =
xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" =
xmlns:udc=3D"http://schemas.microsoft.com/data/udc" =
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" =
xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/20 02/1/alerts/"=
xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" =
xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" =
xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile " =
xmlns:wf=3D"http://schemas.microsoft.com/sharepoint/soap/wor kflow/" =
xmlns:mver=3D"http://schemas.openxmlformats.org/markup-compa tibility/2006=
" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns:mrels=3D"http://schemas.openxmlformats.org/package/200 6/relationshi=
ps" =
xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/service s/2006/types"=
=
xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/service s/2006/messag=
es" xmlns:Z=3D"urn:schemas-microsoft-com:" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
[at] page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Hi Joel,<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Excluding perl510.dll is no longer necessary in PDK =
7. It
may provide a performance benefit if you don’t use --dyndll, but =
with
dynamic DLL loading using a bundled shared perl510.dll should not have =
any noticeable
disadvantage.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>However, if you include perl510.dll separately, then =
using ‘.’
as the runlib is bad practice: if you add your application directory to =
the
PATH, and you also have a local Perl installation on the PATH, then you =
may break
either your application, or the Perl installation if they are not of the =
same
version, depending on which directory is listed first in the PATH. You =
avoid
this issue by using a separate runlib directory.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Cheers,<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>-Jan<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>PS: This discussion should really be moved to the PDK =
mailing
list.<o:p></o:p></span></p>
<p class=3DMsoNormal><a name=3D"_MailEndCompose"><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span=
></a></p>
<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm =
0cm 4.0pt'>
<div>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0cm 0cm 0cm'>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' > =
activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <b>On Behalf Of =
</b>Joel
Friedman<br>
<b>Sent:</b> June 18, 2008 10:54 AM<br>
<b>To:</b> 'Edward Peschko'; activeperl [at] listserv.activestate.com<br>
<b>Subject:</b> RE: shared components in 'compiled' =
executables.<o:p></o:p></span></p>
</div>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Ed,<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>That option is directly supported by perlapp / pertray =
(see the
User Guide).<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>What I do is compile all my common modules and the =
perl10.dll
inside of a single (or many) dll file(s) in one project . On the =
‘Options
2’ tab ensure that you select ‘Only share with my own =
executables
(those generated with this PDK license)’ or ‘Share with
anybody’.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Then in another project I add that dll to the =
‘Module
Search Path’ and ensure to ‘Exclude perl510.dll from =
executable’
on the ‘Size’ tab. Finally on the ‘Options =
1’ tab
ensure to select ‘Use run library’ and give a relative path =
to
where your application can find the required dll(s). I simply use
“.” to look in the local directory.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>--Joel<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0cm 0cm 0cm'>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >
activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <b>On Behalf Of =
</b>Edward
Peschko<br>
<b>Sent:</b> Wednesday, June 18, 2008 1:41 PM<br>
<b>To:</b> activeperl [at] listserv.activestate.com<br>
<b>Subject:</b> shared components in 'compiled' =
executables.<o:p></o:p></span></p>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>hey all,<br>
<br>
I've been using perlapp/perltray/etc. to 'compile' executables, and was
wondering whether the following was possible:<br>
<br>
I would like to be able to share components between executables of the =
same
overarching 'application'. As it stands right now, I have several apps =
that are
all related together, and hence could reuse each others' components. But =
since
they are all compiled separately, they all bundle (repeatedly) the same =
perl
executable, shared libraries, etc. <br>
<br>
How do you make it so that each library in one app is viewable/usable by =
the
others, and hence does not need to be archived separately?<br>
<br>
Thanks much,<br>
<br>
Ed<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'>
<hr size=3D2 width=3D"100%" align=3Dcenter>
</div>
<p class=3DMsoNormal><span =
style=3D'font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>This message may contain confidential or privileged =
information. If
you are not the intended recipient, please advise us immediately and =
delete
this message. See http://www.datapipe.com/emaildisclaimer.aspx for =
further
information on confidentiality and the risks of non-secure electronic
communication. If you cannot access these links, please notify us by =
reply
message and we will send the contents to you.</span><o:p></o:p></p>
</div>
</div>
</body>
</html>
------=_NextPart_000_0AEB_01C8D133.953E3B40--
--===============0925685358==
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
--===============0925685358==--
RE: shared components in 'compiled' executables.
--===============0265125371==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Eexc hewr04data_"
--_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Eexchewr04da ta_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Jan,
I am using a bundled shared perl10.dll in one of my library files (a dll wi=
th other modules in it as well). I am specifically excluding perl510.dll f=
rom my executable so I don't waste the 873k of space in my binary and in ot=
her dll's.
Good point on the runlib path. In this particular instance, my application=
is not in the PATH, nor is perl locally installed on the machine - hence t=
he reason it's complied in the first place J But I can see your point on b=
ad practice.
Thanks for your insight,
--Joel
PS - nice work on the MS scripting games. I managed to get them all (and w=
in a copy of Vista Ultimate in the process), but they weren't as clean as y=
ours.
From: Jan Dubois [mailto:jand [at] activestate.com]
Sent: Wednesday, June 18, 2008 2:08 PM
To: Joel Friedman; 'Edward Peschko'; activeperl [at] listserv.activestate.com
Subject: RE: shared components in 'compiled' executables.
Hi Joel,
Excluding perl510.dll is no longer necessary in PDK 7. It may provide a pe=
rformance benefit if you don't use --dyndll, but with dynamic DLL loading u=
sing a bundled shared perl510.dll should not have any noticeable disadvanta=
ge.
However, if you include perl510.dll separately, then using '.' as the runli=
b is bad practice: if you add your application directory to the PATH, and y=
ou also have a local Perl installation on the PATH, then you may break eith=
er your application, or the Perl installation if they are not of the same v=
ersion, depending on which directory is listed first in the PATH. You avoid=
this issue by using a separate runlib directory.
Cheers,
-Jan
PS: This discussion should really be moved to the PDK mailing list.
From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounce=
s [at] listserv.ActiveState.com] On Behalf Of Joel Friedman
Sent: June 18, 2008 10:54 AM
To: 'Edward Peschko'; activeperl [at] listserv.activestate.com
Subject: RE: shared components in 'compiled' executables.
Ed,
That option is directly supported by perlapp / pertray (see the User Guide)=
..
What I do is compile all my common modules and the perl10.dll inside of a s=
ingle (or many) dll file(s) in one project . On the 'Options 2' tab ensure=
that you select 'Only share with my own executables (those generated with =
this PDK license)' or 'Share with anybody'.
Then in another project I add that dll to the 'Module Search Path' and ensu=
re to 'Exclude perl510.dll from executable' on the 'Size' tab. Finally on =
the 'Options 1' tab ensure to select 'Use run library' and give a relative =
path to where your application can find the required dll(s). I simply use =
"." to look in the local directory.
--Joel
From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounce=
s [at] listserv.ActiveState.com] On Behalf Of Edward Peschko
Sent: Wednesday, June 18, 2008 1:41 PM
To: activeperl [at] listserv.activestate.com
Subject: shared components in 'compiled' executables.
hey all,
I've been using perlapp/perltray/etc. to 'compile' executables, and was won=
dering whether the following was possible:
I would like to be able to share components between executables of the same=
overarching 'application'. As it stands right now, I have several apps tha=
t are all related together, and hence could reuse each others' components. =
But since they are all compiled separately, they all bundle (repeatedly) th=
e same perl executable, shared libraries, etc.
How do you make it so that each library in one app is viewable/usable by th=
e others, and hence does not need to be archived separately?
Thanks much,
Ed
________________________________
This message may contain confidential or privileged information. If you are=
not the intended recipient, please advise us immediately and delete this m=
essage. See http://www.datapipe.com/emaildisclaimer.aspx for further inform=
ation on confidentiality and the risks of non-secure electronic communicati=
on. If you cannot access these links, please notify us by reply message and=
we will send the contents to you.
________________________________
This message may contain confidential or privileged information. If you are=
not the intended recipient, please advise us immediately and delete this m=
essage. See http://www.datapipe.com/emaildisclaimer.aspx for further inform=
ation on confidentiality and the risks of non-secure electronic communicati=
on. If you cannot access these links, please notify us by reply message and=
we will send the contents to you.
--_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Eexchewr04da ta_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spread sheet" xmlns=
:oa=3D"urn:schemas-microsoft-com:office:activation" xmlns:html=3D"http://ww=
w.w3.org/TR/REC-html40" xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope=
/" xmlns:D=3D"DAV:" xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2=
003/xml" xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/oi s/" xm=
lns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/dire ctory/" xmlns:d=
s=3D"http://www.w3.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.micros=
oft.com/sharepoint/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc"=
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas=
..microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.or=
g/2001/04/xmlenc#" xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xm=
lns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http=
://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf=3D"http://schemas.micros=
oft.com/data/udc/xmlfile" xmlns:wf=3D"http://schemas.microsoft.com/sharepoi=
nt/soap/workflow/" xmlns:mver=3D"http://schemas.openxmlformats.org/markup-c=
ompatibility/2006" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/o=
mml" xmlns:mrels=3D"http://schemas.openxmlformats.org/package/200 6/relation=
ships" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/service s/2006/t=
ypes" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/service s/2006/me=
ssages" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns=3D"http://www.w3.org/T=
R/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
/* Font Definitions */
[at] font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"Section1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Jan,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">I am using a bundled shared perl10.dll in one of my library =
files (a dll with other modules in it as well). I am specifically exc=
luding perl510.dll from
my executable so I don’t waste the 873k of space in my binary and in=
other dll’s.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Good point on the runlib path. In this particular inst=
ance, my application is not in the PATH, nor is perl locally installed on t=
he machine – hence the reason
it’s complied in the first place </span><span style=3D"font-size:11.=
0pt;font-family:Wingdings;color:#1F497D">J</span><span style=3D"font-size:1=
1.0pt;font-family:"Calibri","sans-serif";color:#1F497D"=
> But I can see your point on bad practice.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Thanks for your insight,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">--Joel<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">PS – nice work on the MS scripting games. I mana=
ged to get them all (and win a copy of Vista Ultimate in the process), but =
they weren’t as clean as yours.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"=
;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:"Tahoma","sans-serif""> Jan Dubo=
is [mailto:jand [at] activestate.com]
<br>
<b>Sent:</b> Wednesday, June 18, 2008 2:08 PM<br>
<b>To:</b> Joel Friedman; 'Edward Peschko'; activeperl [at] listserv.activestate=
..com<br>
<b>Subject:</b> RE: shared components in 'compiled' executables.<o:p></o:p>=
</span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Hi Joel,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Excluding perl510.dll is no longer necessary in PDK 7. =
It may provide a performance benefit if you don’t use --dyndll, but =
with dynamic DLL loading using
a bundled shared perl510.dll should not have any noticeable disadvantage.<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">However, if you include perl510.dll separately, then using &=
#8216;.’ as the runlib is bad practice: if you add your application d=
irectory to the PATH, and you also
have a local Perl installation on the PATH, then you may break either your=
application, or the Perl installation if they are not of the same version,=
depending on which directory is listed first in the PATH. You avoid this i=
ssue by using a separate runlib
directory.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">-Jan<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">PS: This discussion should really be moved to the PDK mailin=
g list.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><a name=3D"_MailEndCompose"></a><span style=3D"font-=
size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D"><o:p>=
</o:p></span></p>
<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt">
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"=
;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:"Tahoma","sans-serif""> activepe=
rl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.Act=
iveState.com]
<b>On Behalf Of </b>Joel Friedman<br>
<b>Sent:</b> June 18, 2008 10:54 AM<br>
<b>To:</b> 'Edward Peschko'; activeperl [at] listserv.activestate.com<br>
<b>Subject:</b> RE: shared components in 'compiled' executables.<o:p></o:p>=
</span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Ed,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">That option is directly supported by perlapp / pertray (see =
the User Guide).<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">What I do is compile all my common modules and the perl10.dl=
l inside of a single (or many) dll file(s) in one project . On the =
8216;Options 2’ tab ensure that
you select ‘Only share with my own executables (those generated with=
this PDK license)’ or ‘Share with anybody’.<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">Then in another project I add that dll to the ‘Module =
Search Path’ and ensure to ‘Exclude perl510.dll from executable=
’ on the ‘Size’ tab. Finally on the
‘Options 1’ tab ensure to select ‘Use run library’=
and give a relative path to where your application can find the required d=
ll(s). I simply use “.” to look in the local directory.<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D">--Joel<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
libri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"=
;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:"Tahoma","sans-serif""> activepe=
rl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.Act=
iveState.com]
<b>On Behalf Of </b>Edward Peschko<br>
<b>Sent:</b> Wednesday, June 18, 2008 1:41 PM<br>
<b>To:</b> activeperl [at] listserv.activestate.com<br>
<b>Subject:</b> shared components in 'compiled' executables.<o:p></o:p></sp=
an></p>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">hey all,<br>
<br>
I've been using perlapp/perltray/etc. to 'compile' executables, and was won=
dering whether the following was possible:<br>
<br>
I would like to be able to share components between executables of the same=
overarching 'application'. As it stands right now, I have several apps tha=
t are all related together, and hence could reuse each others' components. =
But since they are all compiled
separately, they all bundle (repeatedly) the same perl executable, shared =
libraries, etc.
<br>
<br>
How do you make it so that each library in one app is viewable/usable by th=
e others, and hence does not need to be archived separately?<br>
<br>
Thanks much,<br>
<br>
Ed<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center">
<hr size=3D"2" width=3D"100%" align=3D"center">
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:7.5pt;font-family:"Ari=
al","sans-serif";
color:gray">This message may contain confidential or privileged information=
.. If you are not the intended recipient, please advise us immediately and d=
elete this message. See
http://www.datapipe.com/emaildisclaimer.aspx for further information on co=
nfidentiality and the risks of non-secure electronic communication. If you =
cannot access these links, please notify us by reply message and we will se=
nd the contents to you.</span><o:p></o:p></p>
</div>
</div>
<br>
<hr>
<font face=3D"Arial" color=3D"Gray" size=3D"-2">This message may contain co=
nfidential or privileged information. If you are not the intended recipient=
, please advise us immediately and delete this message. See http://www.data=
pipe.com/emaildisclaimer.aspx for further
information on confidentiality and the risks of non-secure electronic comm=
unication. If you cannot access these links, please notify us by reply mess=
age and we will send the contents to you.<br>
</font>
</body>
</html>
--_000_8964C02345560C4A8EE6A5F087387CD604C1A4BD4Eexchewr04da ta_--
--===============0265125371==
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
--===============0265125371==--