Martin,
Thanks for the suggestions. I could indeed add a bunch of requires for
various Tk/*.al files and then the resulting pp generated file ran ok. But
as soon as I moved it to a non-perl machine, or simply renamed the original
perl Tk lib dir, it would fail, indicating that the requires did not cause
pp to slurp those files into the PAR file.
Any other suggestions?
For reference, this is the test code I'm using:
use Tk;
$mw = MainWindow->new;
$scrollbar = $mw->Scrolled('Listbox');
$scrollbar->insert(0, qw(hi bye));
$scrollbar->pack();
MainLoop;
These are the requires that made it kind of work:
require '/perl580/site/lib/auto/Tk/Frame/AddScrollbars.al';
require '/perl580/site/lib/auto/Tk/Frame/FindMenu.al';
require '/perl580/site/lib/auto/Tk/Frame/freeze_on_map.al';
require '/perl580/site/lib/auto/Tk/Frame/label.al';
require '/perl580/site/lib/auto/Tk/Frame/labelPack.al';
require '/perl580/site/lib/auto/Tk/Frame/labelVariable.al';
require '/perl580/site/lib/auto/Tk/Frame/packscrollbars.al';
require '/perl580/site/lib/auto/Tk/Frame/queuePack.al';
require '/perl580/site/lib/auto/Tk/Frame/sbset.al';
require '/perl580/site/lib/auto/Tk/Frame/scrollbars.al';
Bruce
-----Original Message-----
Hello,
no, not really, because I haven't found any time to check what is wrong with
Module::ScanDeps...
But a shorter way may be something like:
require "/path/to/perl/site/lib/auto/Tk/Frame/AddScrollbars.al");
and every other .al not found
or just import it with some loops, e.g.
my @directories = ('/path/to/perl/site/lib/auto/Tk/Listbox',
'/path/to/perl/site/lib/auto/Tk/Frame',
'/path/to/perl/site/lib/auto/Tk/Scrollbar',
# and do so for every directory in which
# there are some .al not found...
);
foreach my $dir (@directories) {
my @files = glob("$dir/*.al");
require $_ foreach @files;
}
It is not a clean way, but more a quick hack as well. But maybe it could
make your code easier...
Best wishes,
Martin Fabiani
At 09:02 14.03.2003 -0600, you wrote:
> Oops, sorry, I forgot to mention that the File
> Tk::AddScrollbars.pm is not
> existing, it seems to be autogenerated by widget.pm. If I add the
> line use
> Tk::AddScrollbars; or not doesn't matter. There only exists an
> AddScrollbars.al.
> Ah, now I think I see the problem... par doesn't find the
> *.al-Files where
> the Method AddScrollbars is coded. If I add the code from several
> .al-Files
> (walk down the dependencies) to my script (see attachment), it's
> working great.
>
> Thank you very much for pointing me in the right direction.
Martin,
Did you ever find an easier way to get Tk Scrollbar to work, other than to
include the Tk module code like you had in your example?
Just tried it with the latest 0.65 code and see the same problem. Your
example works, but it seems painful to include all that code.
I just discovered PAR. Pretty cool! I currently use a really old version
of perl2exe to compile a pretty complex application (
http://misterhouse.net ) for windows users who don't want to bother with
installing/updating perl, but would like to migrate to something that allows
for linux users the more turn-key .exe option also. With a few exeptions
I'm trying to work though (e.g. Tk scrollbars and GD), PAR seems to be
working! And it is open sourced ... a perfect fit! Thanks much to Autrijus
and helpers.
Bruce Winter
Software Engineerung und Perl-Programmierung
Martin Fabiani
mailto:[EMAIL PROTECTED] / mailto:[EMAIL PROTECTED] /
mailto:[EMAIL PROTECTED]
http://www.fabiani.net/ / http://www.linux-services.org/
tel: +49-69-47885599
fax: +49-69-49086465