is this on windows?

in Tkx example was:Re^3: Tcl & Tcl::Tk used for 1 main window i posted a working TKDND program i use from time to time. To get it to work i needed to place tkdnd2.6 into a known location (d:\active\tkx_extra\tkdnd2.6) and then use tk-magic

Tkx::lappend('::auto_path', 'd:\active\tkx_extra\tkdnd2.6'); Tkx::package_require('tkdnd');
to get tk to search for it there. i suppose that somehow tk knows in your systems to search under System\Library\Tcl\8.5\ for tk packages, but when you did your -l magic with pp that is not where those items ended up.

tkkit is the name of a reduced tcl/tk environment that activestate perl makes available. based on your System\Library\Tcl\8.5\ path i dont think you are using it, but you might find some clues to extending it in http://grokbase.com/t/perl/tcltk/102hfq8ynx/drag-n-drop-in-perl-tkx/oldest

i suspect your -l magic with pp is making those needed files available SOMEWHERE. Based on your begin-magic structure above i suspect it is under $ENV{PAR_TEMP} somewhere. you might try playing with variants of

Tkx::lappend('::auto_path', $ENV{PAR_TEMP}); Tkx::package_require('tkdnd');
to get it to work. While your pp'ed program is running you might try printing out $ENV{PAR_TEMP} and refining the above path further by searching under it.

another option might just be to distribute the tkdnd2.8 package and install it to some location you know you can write to, such as where the pp'ed executable is. in that case you could do

my $where_tkdnd_is=cwd; # or some other way to determine where we are +running from Tkx::lappend('::auto_path', $where_tkdnd_is); Tkx::package_require('tkdnd');
Im out on a limb again, i dont think its windows 'cus there is no dll, but there is a dylib, but i thought id give it a try at least


In reply to Re: TkDND with PAR::Packer by huck
in thread TkDND with PAR::Packer by Anonymous Monk

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.