Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Hi mkmal,

I've been in the habit of using ASP's perlapp, but it unfortunately requires a paid license that not everyone wants to spend money for. (I'm lucky that I need it for work, and my company generously paid for the license).

So this seemed a good chance to learn an alternative approach.

I tried many of the same steps that you did, and got mostly the same results. Then I noticed you had modified your pp command to:

pp --gui -o gui2.exe gui2.pl -l C:/Perl/lib/auto/Tcl/tkki. dll -l +C:/Perl/lib/auto/Tcl/Tcl.dll
and I realized there was a typo in "tkki. dll" -- beside the extra space, it should be "tkkit.dll".

Once I changed that:

pp --gui -o gui1.exe gui1.pl -l C:/Perl/lib/auto/Tcl/tkkit.dll -l +C:/Perl/lib/auto/Tcl/Tcl.dll

the executable "gui1.exe" works as it should have.

You later said:

Here is the command I am using now. Please let me know if you see +any more errors. pp --gui -o gui1.exe gui1.pl -l C:/Perl/lib/auto/Tcl/tkkit.dll -l +C:/Perl/lib/auto/Tcl/Tcl.dll -x

I tried that as well, both with and without the -x; both worked ("gui1.exe" ran as expected). The only difference seemed to be that -x caused the gui to appear during compilation. Is it possible you *thought* you've corrected the "tkkit.dll" typo, but still have it (maybe in your "build" script?)

A few notes -- the app does startup kind of slowly, though (at least compared to apps I've built with "perlapp"). But when I run it a few more times, it seems to start quicker after the initial run.

It was fairly difficult to installing PAR::Packer (this was on a Windows 7 machine), at least for my ActiveState Perl environment. The thing that finally worked for me was:

C:\> ppm install MinGW C:\> cpanp i PAR::Packer

Update: added the prerequisite "ppm install MinGW"

Update 2: After installing on a different Windows 7 machine, I see that the tests fail for "ppm install MinGW":

Result: FAIL dmake: Error code 129, while making 'test_dynamic' dmake: Error code 255, while making 'subdirs-test'
It didn't seem to matter; answering 'y' to:
The tests for 'Win32::Exe' failed. Would you like me to proceed anyway or should we abort? Proceed anyway? [y/N]: y

was ultimately successful at installing "PAR::Packer" and "pp".

say  substr+lc crypt(qw $i3 SI$),4,5

In reply to Re: pp with gui by golux
in thread pp with gui by mkmal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (7)
    As of 2015-07-04 13:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (60 votes), past polls