I'm using Strawberry perl to build a standalone app with Tkx as the front-end.

I'm running the following command on windows pp --gui --icon res\rvbd.ico -o riverbench.exe benchtool.pl

When I was using Tk, everything was fine. With Tkx and the above command, I get the error.

'The program can't start because tcl85.dll is missing from your computer. Try reinstalling the program to fix this problem.'

If I include tcl85.dll, pp -l tcl85.dll --icon res\rvbd.ico -o riverbench.exe benchtool.pl I get the error message

C:\Users\ashetty\Desktop>riverbench.exe Can't find a usable init.tcl in the following directories: C:/Users/ashetty/AppData/Local/Temp/par-ashetty/lib/tcl8.5 C:/User +s/ashetty/ AppData/Local/Temp/par-ashetty/lib/tcl8.5 C:/Users/ashetty/AppData/Loc +al/Temp/li b/tcl8.5 C:/Users/ashetty/AppData/Local/Temp/par-ashetty/library C:/Us +ers/ashett y/AppData/Local/Temp/library C:/Users/ashetty/AppData/Local/Temp/tcl8. +5.10/libra ry C:/Users/ashetty/AppData/Local/tcl8.5.10/library This probably means that Tcl wasn't installed properly. BEGIN failed--compilation aborted at Tkx.pm line 225. Compilation failed in require at script/benchtool.pl line 39. BEGIN failed--compilation aborted at script/benchtool.pl line 39.
I found this link for a fix with ActiveState Perl
http://stackoverflow.com/questions/1285087/trying-to-create-a-standalone-app-from-a-perl-script-that-uses-tkx-tcl-tk

However, with Strawberry perl there is no tkkit.dll while there is a tcl.dll

When I use ActiveState perl and compile with pp, everything works fine. However, even after specifying --gui option, the console window stays.

I'd love to hear if anyone has got this working successfully. Thanks


In reply to par::packer with Tkx and Strawberry perl by periferral

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, 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.