From: Nick J. <sk...@er...> - 2002-09-01 21:29:04
|
I had the exact same problem. To fix it, just copy the "auto" directory containing the wxWindows/wxPerl .DLL files into the directory with your script in it. It worked fine for me then. If the --gui causes a "Bad command or filename" or the equivalent NT/Win2k error to appear, I have a fix for that too. In Perl's config files, one of the vars contains the location to Perl's binary. I think it might be PERL5BIN but I honestly can't remember. Anyway the problem is caused when this path includes UNIX-style forward slashes rather than the DOS/Windows style slashes. AFAIK this is because the PerlApp program runs another program which modifies the executable to be a GUI program. And command.com doesn't take kindly to UNIX-style slashes. Hope this works. It took me ages to figure this out, I don't know why PDK cannot include the required files automatically. Regards, Nick Johnston David Kaufman wrote: >Has anyone successfully converted a simple "hello world" wxPerl script >into an .exe using the Activestate PDK's PerlApp utility? > >i've been trying all day with no joy. the .exe failed silently until i >tried compiling it without the -gui option. after droppping the -gui, i >see this error on stderr (at run time, not compile time): > >Can't load 'auto/Wx/Wx.dll' for module Wx: load_file:One of the library >files ne >eded to run this application cannot be found at /PerlApp/DynaLoader.pm >line 212. > >but the "verbose" perlapp output (below) clearly shows that perlapp >found and included the Wx.dll: > >PerlApp 4.0.0 build 401 >Copyright (C) ActiveState Corp 2001-2002. All rights reserved. >Commercial license for David Kaufman <da...@gi...> > >+++ C:/Perl/lib/AutoLoader.pm >+++ C:/Perl/lib/Carp.pm >+++ C:/Perl/lib/Carp/Heavy.pm >+++ C:/Perl/lib/Config.pm >+++ DynaLoader.pm (internal) >+++ C:/Perl/lib/Errno.pm >+++ C:/Perl/lib/Exporter.pm >+++ C:/Perl/lib/Exporter/Heavy.pm >+++ C:/Perl/lib/File/Glob.pm >+++ C:/Perl/lib/Text/ParseWords.pm >+++ C:/Perl/lib/Tie/Handle.pm >+++ C:/Perl/site/lib/Wx.pm >+++ C:/Perl/site/lib/Wx/App.pm >+++ C:/Perl/site/lib/Wx/Bitmap.pm >+++ C:/Perl/site/lib/Wx/Brush.pm >+++ C:/Perl/site/lib/Wx/Caret.pm >+++ C:/Perl/site/lib/Wx/Colour.pm >+++ C:/Perl/site/lib/Wx/ComboBox.pm >+++ C:/Perl/site/lib/Wx/ControlWithItems.pm >+++ C:/Perl/site/lib/Wx/Cursor.pm >+++ C:/Perl/site/lib/Wx/DC.pm >+++ C:/Perl/site/lib/Wx/DND.pm >+++ C:/Perl/site/lib/Wx/DropSource.pm >+++ C:/Perl/site/lib/Wx/Event.pm >+++ C:/Perl/site/lib/Wx/FS.pm >+++ C:/Perl/site/lib/Wx/Grid.pm >+++ C:/Perl/site/lib/Wx/Help.pm >+++ C:/Perl/site/lib/Wx/Html.pm >+++ C:/Perl/site/lib/Wx/Icon.pm >+++ C:/Perl/site/lib/Wx/Image.pm >+++ C:/Perl/site/lib/Wx/ImageList.pm >+++ C:/Perl/site/lib/Wx/ListCtrl.pm >+++ C:/Perl/site/lib/Wx/Locale.pm >+++ C:/Perl/site/lib/Wx/MDI.pm >+++ C:/Perl/site/lib/Wx/Menu.pm >+++ C:/Perl/site/lib/Wx/Pen.pm >+++ C:/Perl/site/lib/Wx/Print.pm >+++ C:/Perl/site/lib/Wx/RadioBox.pm >+++ C:/Perl/site/lib/Wx/Rect.pm >+++ C:/Perl/site/lib/Wx/Region.pm >+++ C:/Perl/site/lib/Wx/STC.pm >+++ C:/Perl/site/lib/Wx/ScreenDC.pm >+++ C:/Perl/site/lib/Wx/Sizer.pm >+++ C:/Perl/site/lib/Wx/SplashScreen.pm >+++ C:/Perl/site/lib/Wx/StaticBitmap.pm >+++ C:/Perl/site/lib/Wx/Timer.pm >+++ C:/Perl/site/lib/Wx/ToolBar.pm >+++ C:/Perl/site/lib/Wx/TreeCtrl.pm >+++ C:/Perl/site/lib/Wx/Window.pm >+++ C:/Perl/site/lib/Wx/_Constants.pm >+++ C:/Perl/site/lib/Wx/_Exp.pm >+++ C:/Perl/site/lib/Wx/_Functions.pm >+++ C:/Perl/site/lib/Wx/_Inheritance.pm >+++ C:/Perl/site/lib/Wx/_Ovl.pm >+++ XSLoader.pm (internal) >+++ C:/Perl/lib/auto/DynaLoader/autosplit.ix >+++ C:/Perl/lib/auto/DynaLoader/dl_expandspec.al >+++ C:/Perl/lib/auto/DynaLoader/dl_find_symbol_anywhere.al >+++ C:/Perl/lib/auto/DynaLoader/dl_findfile.al >+++ C:/Perl/lib/auto/File/Glob/Glob.dll >+++ C:/Perl/lib/auto/File/Glob/autosplit.ix >+++ C:/Perl/site/lib/auto/Wx/Wx.dll >+++ C:/Perl/lib/base.pm >+++ C:/Perl/lib/fields.pm >+++ C:/Perl/lib/overload.pm >+++ C:/Perl/lib/strict.pm >+++ C:/Perl/lib/vars.pm >+++ C:/Perl/lib/warnings.pm >+++ C:/Perl/lib/warnings/register.pm > >Created 'test.exe' > > > >any help would be greatly appreaciated, > >-dave > > > > >------------------------------------------------------- >This sf.net email is sponsored by: OSDN - Tired of that same old >cell phone? Get a new here for FREE! >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 >_______________________________________________ >wxperl-users mailing list >wxp...@li... >https://lists.sourceforge.net/lists/listinfo/wxperl-users > > > |