in reply to pp with gui
I've been in the habit of using ASP's perlapp, but it unfortunately requires a paid license that not everyone wants to spend money for. (I'm lucky that I need it for work, and my company generously paid for the license).
So this seemed a good chance to learn an alternative approach.
I tried many of the same steps that you did, and got mostly the same results. Then I noticed you had modified your pp command to:
and I realized there was a typo in "tkki. dll" -- beside the extra space, it should be "tkkit.dll".pp --gui -o gui2.exe gui2.pl -l C:/Perl/lib/auto/Tcl/tkki. dll -l +C:/Perl/lib/auto/Tcl/Tcl.dll
Once I changed that:
pp --gui -o gui1.exe gui1.pl -l C:/Perl/lib/auto/Tcl/tkkit.dll -l +C:/Perl/lib/auto/Tcl/Tcl.dll
the executable "gui1.exe" works as it should have.
You later said:
Here is the command I am using now. Please let me know if you see +any more errors. pp --gui -o gui1.exe gui1.pl -l C:/Perl/lib/auto/Tcl/tkkit.dll -l +C:/Perl/lib/auto/Tcl/Tcl.dll -x
I tried that as well, both with and without the -x; both worked ("gui1.exe" ran as expected). The only difference seemed to be that -x caused the gui to appear during compilation. Is it possible you *thought* you've corrected the "tkkit.dll" typo, but still have it (maybe in your "build" script?)
A few notes -- the app does startup kind of slowly, though (at least compared to apps I've built with "perlapp"). But when I run it a few more times, it seems to start quicker after the initial run.
It was fairly difficult to installing PAR::Packer (this was on a Windows 7 machine), at least for my ActiveState Perl environment. The thing that finally worked for me was:
C:\> ppm install MinGW C:\> cpanp i PAR::Packer
Update: added the prerequisite "ppm install MinGW"
Update 2: After installing on a different Windows 7 machine, I see that the tests fail for "ppm install MinGW":
It didn't seem to matter; answering 'y' to:Result: FAIL dmake: Error code 129, while making 'test_dynamic' dmake: Error code 255, while making 'subdirs-test'
The tests for 'Win32::Exe' failed. Would you like me to proceed anyway or should we abort? Proceed anyway? [y/N]: y
was ultimately successful at installing "PAR::Packer" and "pp".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pp with gui
by marto (Cardinal) on Apr 04, 2013 at 21:51 UTC | |
|
Re^2: pp with gui
by mkmal (Novice) on Apr 04, 2013 at 23:21 UTC | |
by golux (Chaplain) on Apr 05, 2013 at 00:19 UTC | |
by marto (Cardinal) on Apr 05, 2013 at 09:12 UTC | |
by mkmal (Novice) on Apr 05, 2013 at 00:35 UTC | |
by Anonymous Monk on Apr 05, 2013 at 08:08 UTC | |
by golux (Chaplain) on Apr 05, 2013 at 13:20 UTC | |
|
Re^2: pp with gui
by mkmal (Novice) on Apr 04, 2013 at 19:39 UTC | |
by marto (Cardinal) on Apr 04, 2013 at 21:54 UTC | |
by mkmal (Novice) on Apr 06, 2013 at 19:17 UTC | |
by marto (Cardinal) on Apr 06, 2013 at 19:35 UTC | |
by mkmal (Novice) on Apr 06, 2013 at 20:01 UTC |