http://qs321.pair.com?node_id=802345

arya6000 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Is it possible to package a wxperl program into a .exe? I tried the following and the .exe file is created pp -M Wx -g -o listctrl.exe listctrl.pl but when I run the .exe I get the following error "The application has failed to start because wxbase28u_gcc_wxperl.dll was not found. Re-installing the application may fix the problem." I tried this without making it into an .exe and it works. Please let me know if there is a way to fix it. Best Regards

Replies are listed 'Best First'.
Re: Compiling wxperl with pp?
by dirving (Friar) on Oct 21, 2009 at 02:01 UTC
Re: Compiling wxperl with pp?
by pobocks (Chaplain) on Oct 21, 2009 at 07:32 UTC
    Out of curiousity - why do Perl/Tk programs work without special effort being put in, but wxperl programs don't?
    for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";
      If you compile Wx statically (like Tk), it would take the same exact amount of effort. PAR doesn't scan for external dlls well (or at all?). Wx::Perl::Packager compensates for this, saves you from manually -adding dlls like
      pp -c -v -a wxbase28u_gcc_custom.dll -a wxmsw28u_adv_gcc_custom.dll -a + wxmsw28u_core_gcc_custom.dll -e " use Wx; print Wx::wxVERSION_STRING +,qq!\n!"