Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tk-perl2exe FileSelect error 1

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

My following code runs fine with Activestate on Windows:
$FSref = $mw->FileSelect(-directory => "d:\\",-filter => "*.zip");
$filename1 = $FSref->Show;

However fails after perl2exe compilation.
Appreciate any advise.

Tk::Error:
PLEASE SEE THE PERL2EXE USER MANUAL UNDER "Can't locate somemodule.pm in @INC"
FOR AN EXPLANATION OF THE FOLLOWING MESSAGE:
Can't locate utf8.pm in @INC (@INC contains: PERL2EXE_STORAGE D:\Documents and Settings\Ad
ministrator\Desktop\test E:\Temp\1/p2xtmp-2568) at PERL2EXE_STORAGE/Carp/Heavy.pm line 55.

BEGIN failed--compilation aborted.
Tk callback for .fileselect.dir_entry
Tk callback for .fileselect.file_entry
Tk callback for .fileselect.dir_list
Tk callback for .fileselect.dir_list.ysbslice
Tk callback for .fileselect.dir_list.ysbslice.corner
Tk callback for .fileselect.frame
Tk callback for .fileselect.file_list
Tk callback for .fileselect.file_list.ysbslice
Tk callback for .fileselect.file_list.ysbslice.corner
Tk callback for .fileselect.dialog.top
Tk callback for .fileselect.dialog.bottom
Tk::Derived::configure at PERL2EXE_STORAGE/Tk/Derived.pm line 306
Tk::Widget::new at PERL2EXE_STORAGE/Tk/Widget.pm line 205
Tk::Widget::__ANON__ at PERL2EXE_STORAGE/Tk/Widget.pm line 256
Tk::Derived::Component at PERL2EXE_STORAGE/Tk/Derived.pm line 502
Tk::FileSelect::populate at PERL2EXE_STORAGE/Tk/FileSelect.pm line 233
Tk::Derived::InitObject at PERL2EXE_STORAGE/Tk/Derived.pm line 477
Tk::Widget::new at PERL2EXE_STORAGE/Tk/Widget.pm line 203
Tk::Widget::__ANON__ at PERL2EXE_STORAGE/Tk/Widget.pm line 256
main::recov at D:\Documents and Settings\Administrator\Desktop\test\rehost.exe line 997
Tk callback for .button1
Tk::__ANON__ at PERL2EXE_STORAGE/Tk.pm line 252
Tk::Button::butUp at PERL2EXE_STORAGE/Tk/Button.pm line 111
<ButtonRelease-1>
(command bound to event)




Long live king Moshiach !
 
I think that with perl2exe sometimes you have to manually tell it to include some modules, because its dependency checker doesn't always work successfully. Look at its documentation.
 
You might want to try a different compiler. Here's a few ideas:

PAR - Perl Archive Toolkit

You can compile Perl into an EXE from the command prompt with this:
Code:
pp -o script.exe script.pl

ActiveState Perl Dev Kit
This isn't a free program, but if you can get it, it's an easy one to use (its PerlApp even has a GUI to it)

PerlBin
This is another compiler.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top