ric00015 has asked for the wisdom of the Perl Monks concerning the following question:
So I am writing a Perl/Tk program, and packaging it up with just pp. This is the line I used:
pp -c -o script.exe script.plIt packages up fine, but when I try to run it, I get this error message:
couldn't read bitmap file "": No such file or directoryerror reading b +itmap file "" at Tk/Widget.pm line 205. at Tk/Widget.pm line 203.
Sources online (including the CPAN PAR::FAQ page) say it's not picking up the image files for certain widgets (such as the Browse Entry) and I need to include certain .xbm files. I put all the .xbm files in an xbm folder (inside the directory where I ran the pp command). First I tried to include just the files indicated (arrowdownwin.xbm and cbxarrow.xbm), then I tried adding all of the .xbm files:
pp -c -a xbm/arrowdownwin.xbm -a xbm/cbxarrow.xbm -o script.exe script +.pl pp -c -a xbm -o script.exe script.pl
But in all cases, even after I manually add the .xbm files, I still get the same error. Heck, just for kicks and giggles, I added all the .xpm file to the xbm folder so they would be added too. I even added the .gif files too! Still no dice. I really am at a loss as to why this keeps happening.
PAR and PAR::Packer are up to date (1.007 and 1.014 respectively). So is Tk (804.031). Perl is v5.16.0, non-threaded. Dev OS is Linux, Red Hat Enterprise 5.6 and the target OS will be the same.
I also read that having unicode characters in the path would bork it up, but my paths are ascii-only characters. So I can't change that to fix the problem.
Update! Unfortunately I cannot include the actual program because of proprietary information, but I worked on a few simple examples that I could share. Unfortunately, they are too small, too simple, and most unfortunately, they work. I will continue to grow the sample's complexity until they reproduce the problem.
To give you an idea of what is going on, my beastly program includes several CPAN modules, many homemade modules, and a megawidget; it also makes system calls and calls other perl scripts. The Tk gui is in its own module, as is the logic that runs the gui.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: error reading bitmap file "" at Tk/Widget.pm line 205
by Anonymous Monk on Oct 10, 2013 at 18:29 UTC | |
by ric00015 (Beadle) on Oct 10, 2013 at 19:30 UTC | |
by Anonymous Monk on Oct 10, 2013 at 21:30 UTC | |
by ric00015 (Beadle) on Oct 11, 2013 at 15:46 UTC | |
by Anonymous Monk on Oct 11, 2013 at 23:49 UTC | |
|
Re: error reading bitmap file "" at Tk/Widget.pm line 205
by ric00015 (Beadle) on Oct 22, 2013 at 19:56 UTC |