- 论坛徽章:
- 0
|
今天打包了一个程序有问题,发现是可能使用BrowseEntry引起的,为次专门拿cava打包了一个perl可以正常运行的BrowseEntry的程序,结果打包后的程序果然无法运行,昨天找了一天也理不清楚是cava的问题还是Tk代码的问题,请各位大侠帮忙!- #!/usr/bin/perl
- use strict;
- use warnings;
- use Tk;
- use Tk::BrowseEntry;
- my $mw = new MainWindow;
- $mw->title('hello');
- my $tn;
- $mw->BrowseEntry(
- -variable => \$tn,
- )->pack(-side => 'top');
- MainLoop;
复制代码 上面是实验的代码。
下面是调试的结果:
CAVA VERBOSE 2992 : Starting Cava Verbose output to STDOUT for PID 2992
CAVA VERBOSE 2992 : Application Script Checked OK
CAVA VERBOSE 2992 : Perl Version Is 5.12.3
CAVA VERBOSE 2992 : Custom Module Loader Loaded
CAVA VERBOSE 2992 : Current Working Directory: D:\Program Files\Cava Packager\bi
n
CAVA VERBOSE 2992 : $^X Path: D:\pack_perl\be\release\MyApp\bin\browseentry.exe
CAVA VERBOSE 2992 : Base Temporary Directory : C:\Users\kk\AppData\Local\Temp/cv
pk2-kk
CAVA VERBOSE 2992 : Product Temporary Directory : C:\Users\kk\AppData\Local\Temp
/cvpk2-kk/afa89d9e542e0d085126da5e9c97d0f5
CAVA VERBOSE 2992 : Virtual Extract Directory C:\Users\kk\AppData\Local\Temp\cvp
k2-kk\afa89d9e542e0d085126da5e9c97d0f5
CAVA VERBOSE 2992 : Opening extract id file : C:\Users\kk\AppData\Local\Temp\cvp
k2-kk\afa89d9e542e0d085126da5e9c97d0f5\extractid
CAVA VERBOSE 2992 : Extracted Virtual Extract Version String = 1.0.0.1
CAVA VERBOSE 2992 : Embedded Virtual Extract Version String = 1.0.0.1
CAVA VERBOSE 2992 : Update Virtual Extract Required
CAVA VERBOSE 2992 : Processing Virtual Extract .... ....
CAVA VERBOSE 2992 : Packaged Executable browseentry.exe
CAVA VERBOSE 2992 : Executable Path D:/pack_perl/be/release/MyApp/bin/browseentr
y.exe
CAVA VERBOSE 2992 : Bin Path : D:/pack_perl/be/release/MyApp/bin
CAVA VERBOSE 2992 : Standard Path : C:/Users/kk/AppData/Local/Temp/cvpk2-kk/afa8
9d9e542e0d085126da5e9c97d0f5/lib/std
CAVA VERBOSE 2992 : Virtual Path : C:/Users/kk/AppData/Local/Temp/cvpk2-kk/afa89
d9e542e0d085126da5e9c97d0f5/lib/vrt
CAVA VERBOSE 2992 : Resource Path C:/Users/kk/AppData/Local/Temp/cvpk2-kk/afa89d
9e542e0d085126da5e9c97d0f5/res
CAVA VERBOSE 2992 : User Folder Path D:/pack_perl/be/release/MyApp/user
CAVA VERBOSE 2992 : Standard Script Path C:/Users/kk/AppData/Local/Temp/cvpk2-kk
/afa89d9e542e0d085126da5e9c97d0f5/lib/vrt
CAVA VERBOSE 2992 : Virtual Script Path C:/Users/kk/AppData/Local/Temp/cvpk2-kk/
afa89d9e542e0d085126da5e9c97d0f5/lib/vrt
CAVA VERBOSE 2992 : Library Path : D:/pack_perl/be/release/MyApp/dll
CAVA VERBOSE 2992 : Testing Path : C:/Users/kk/AppData/Local/Temp/cvpk2-kk/afa89
d9e542e0d085126da5e9c97d0f5/lib/tst
CAVA VERBOSE 2992 : Application Root : D:/pack_perl/be/release/MyApp
CAVA VERBOSE 2992 : $0 Runtime Value: D:/pack_perl/be/release/MyApp/bin/browseen
try.exe
CAVA VERBOSE 2992 : Cava Packager Package Stub parsed
CAVA VERBOSE 2992 : MS Windows Initialisation
CAVA VERBOSE 2992 : User Data Root Path Loaded: C:/Users/kk/AppData/Local
CAVA VERBOSE 2992 : Common Data Root Path Loaded: C:/ProgramData
CAVA VERBOSE 2992 : Doc Directory Loaded: C:/Users/kk/Documents
CAVA VERBOSE 2992 : Cava Packager Application Initialisation complete
CAVA VERBOSE 2992 : Pre-loading virtual content
CAVA VERBOSE 2992 : Virtual content load complete
CAVA VERBOSE 2992 : Running Virtual Map Loader
CAVA VERBOSE 2992 : Virtual Map Loader Complete
CAVA VERBOSE 2992 : Pre-loading required implicit modules
CAVA VERBOSE 2992 : Loading Module : PerlIO.pm
CAVA VERBOSE 2992 : Loading Module : PerlIO/scalar.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/PerlIO/scalar/scalar.dll
CAVA VERBOSE 2992 : Loading Module : File/Glob.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/File/Glob/Glob.dll
CAVA VERBOSE 2992 : Loading Module : base.pm
CAVA VERBOSE 2992 : Temporary instance root : C:\Users\kk\AppData\Local\Temp/cvp
k2temp-kk
CAVA VERBOSE 2992 : Running Executable Script browseentry.pl
CAVA VERBOSE 2992 : Loading Module : cavaexecscript/browseentry.pl
CAVA VERBOSE 2992 : Loading Module : Tk.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Event.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Tk/Event/Event.dll
CAVA VERBOSE 2992 : Loading Module : Tk/Event/IO.pm
CAVA VERBOSE 2992 : Loading Module : Symbol.pm
CAVA VERBOSE 2992 : Loading Module : Cwd.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Cwd/Cwd.dll
CAVA VERBOSE 2992 : Loading Module : File/Spec.pm
CAVA VERBOSE 2992 : Loading Module : File/Spec/Win32.pm
CAVA VERBOSE 2992 : Loading Module : File/Spec/Unix.pm
CAVA VERBOSE 2992 : Loading Module : Encode.pm
CAVA VERBOSE 2992 : Loading Module : Encode/Alias.pm
CAVA VERBOSE 2992 : Loading Module : bytes.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Encode/Encode.dll
CAVA VERBOSE 2992 : Loading Module : Encode/Config.pm
CAVA VERBOSE 2992 : Missing module required : Encode/ConfigLocal.pm : is not pac
kaged
CAVA VERBOSE 2992 : Loading Module : Encode/Encoding.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Submethods.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Tk/Tk.dll
CAVA VERBOSE 2992 : Loading Module : Encode/Unicode.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Encode/Unicode/Unicode.dll
CAVA VERBOSE 2992 : Loading Module : Encode/CN.pm
CAVA VERBOSE 2992 : Loading Module : Encode/CN/HZ.pm
CAVA VERBOSE 2992 : Loading Module : utf8.pm
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Encode/CN/CN.dll
CAVA VERBOSE 2992 : Loading Module : Tk/Widget.pm
CAVA VERBOSE 2992 : Loading Module : auto/Tk/Widget/autosplit.ix
CAVA VERBOSE 2992 : Loading Module : Tk/After.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Image.pm
CAVA VERBOSE 2992 : Loading Module : Tk/MainWindow.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Toplevel.pm
CAVA VERBOSE 2992 : Loading Module : auto/Tk/Toplevel/autosplit.ix
CAVA VERBOSE 2992 : Loading Module : Tk/Wm.pm
CAVA VERBOSE 2992 : Loading Module : auto/Tk/Wm/autosplit.ix
CAVA VERBOSE 2992 : Loading Module : Tk/Frame.pm
CAVA VERBOSE 2992 : Loading Module : auto/Tk/Frame/autosplit.ix
CAVA VERBOSE 2992 : Loading Module : Tk/Derived.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Configure.pm
CAVA VERBOSE 2992 : Loading Module : Tk/CmdLine.pm
CAVA VERBOSE 2992 : Loading Module : Config.pm
CAVA VERBOSE 2992 : Loading Module : Tk/BrowseEntry.pm
CAVA VERBOSE 2992 : Loading Module : Tk/LabEntry.pm
CAVA VERBOSE 2992 : Loading Module : Tk/widgets.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Label.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Entry.pm
CAVA VERBOSE 2992 : Loading Module : Tk/Clipboard.pm
CAVA VERBOSE 2992 : Loading Module : auto/Tk/Clipboard/autosplit.ix
CAVA VERBOSE 2992 : Cava Virtual Library Load : auto/Tk/Entry/Entry.dll
CAVA VERBOSE 2992 : Missing module required : auto/Tk/Widget/Button.al : is not
packaged
CAVA VERBOSE 2992 : Loading Module : Tk/Button.pm
CAVA VERBOSE 2992 : Purging Directory C:/Users/kk/AppData/Local/Temp/cvpk2temp-k
k/1RYqWutp
couldn't read bitmap file "": No such file or directoryerror reading bitmap file
"" at <Packaged Modules>/Tk::Widget line 205.
at <Packaged Modules>/Tk::Widget line 203
CAVA VERBOSE 2992 : Application has ended.
死在红色字体部分 |
|