Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I'm having a problem getting a script with a Tkx and TkDND front end to work using pp. I want to distribute the script to some of my colleagues at work and can't. pp builds and I can distribute a program and it runs but doesn't display the main window. I did find one work around but it's not practical. Putting the TkDND folder into System\Library\Tcl\8.5\TkDND makes the main window visible on other computers running the package. But alas our work computers don't allow folders to be copied to System with out admin login in. Not about to do this for the 20 computers I want to install on. I found the following on line:
use File::Spec::Functions; BEGIN { if (exists $ENV{PAR_PROGNAME}) { use Config (); $ENV{PERL_TCL_DL_PATH} = catfile( $ENV{PAR_TEMP}, 'tkkit.' . $Config::Config{dlext}, ); } }
and added it to my script but it looks to be a windows fix that did nothing for me. I also tried to force the TkDND piece into PAR PACKER using:
pp -o sf -z 9 -f PodStrip -M utf8 -M Tk::Text -l /System/Library/Tcl/8.4/tkdnd2.8/libtkdnd2.8.dylib -l /System/Library/Tcl/8.4/tkdnd2.8/pkgIndex.tcl -l /System/Library/Tcl/8.4/tkdnd2.8/tkdnd_compat.tcl -l /System/Library/Tcl/8.4/tkdnd2.8/tkdnd_generic.tcl -l /System/Library/Tcl/8.4/tkdnd2.8/tkdnd_macosx.tcl -l /System/Library/Tcl/8.4/tkdnd2.8/tkdnd_unix.tcl -l /System/Library/Tcl/8.4/tkdnd2.8/tkdnd_windows.tcl -l /System/Library/Tcl/8.4/tkdnd2.8/tkdnd.tcl sfh2a_tkx.plThe package gets bigger but still doesn't run. I've wasted two days and am looking for the wisdom of the monks for help. Thanks in advance for helping me to solve this and get some sleep.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TkDND with PAR::Packer
by kcott (Archbishop) on Feb 23, 2017 at 09:42 UTC | |
|
Re: TkDND with PAR::Packer
by huck (Prior) on Feb 23, 2017 at 06:29 UTC | |
|
Re: Tkx TkDND with PAR::Packer
by Anonymous Monk on Feb 23, 2017 at 09:23 UTC | |
|
Re: TkDND with PAR::Packer
by huck (Prior) on Feb 23, 2017 at 19:48 UTC |