Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: POE & Tk totally confound perlapp (or am I missing something?)

by Marshall (Canon)
on Apr 18, 2009 at 03:42 UTC ( [id://758394]=note: print w/replies, xml ) Need Help??


in reply to POE & Tk totally confound perlapp (or am I missing something?)

I haven't used POE, but have built a number of Tk apps in .exe form using ActiveState. I don't mess around with manually editing the --add command line stuff. I put explicit "use" statements in the code. In the case of Tk, although just "use Tk;" is enough when running in normal environment, to make the .exe I find that I need to "use" all of the individual widgets that the program calls...like below.. You may find that "using" the module in the code produces a different result than --add does. Your mileage may vary, but I would suggest trying this approach.
use Tk; use Tk::TableMatrix; use Tk::LabFrame; use Tk::Listbox; use Tk::Scrollbar; use Tk::Button; use Tk::Menubutton; use Tk::Menu; use Tk::Widget; use Tk::Label; use Tk::Entry; ...etc..
UPDATE:
I looked at one of my .PerlApp files. Now I am on 7.1 and haven't installed the latest version yet...BUT this is a real product in its 2nd year of production. The project code name is "green" which of course means nothing to you. I took out some path names, but this is basically what your .PerlApp file should look like.

Notice: this .exe is not dependent on anything, there are no dynamic .dlls's, AND nothing has been "forced" into the .exe. This Gui: 0 stuff means that there is a command window that starts also (ie, this is not a strictly GUI only application). Hostname "bigmomma" is just the name of my build machine.

Your .PerlApp file should look like this...very clean...no voo-doo.

As far as path goes, in the PerlApp application, C:\Perl\site\lib;C:\Perl\lib;.

In other words, this builds from the standard libraries and accesses current directory for non_standard ones (they could be in a different directory).

Hope this helps! When your .PerlApp file looks as clean as this, you will have a working .exe file.

#!C:\Program Files\ActiveState Perl Dev Kit 7.1\bin\lib\pai.exe PAP-Version: 1.0 Packer: C:\Program Files\ActiveState Perl Dev Kit 7.1\bin\perlapp.exe Script: green.pl Cwd: C:\PROJECTS\XYZZY1\XYXXY2\XYZZY_experimental Clean: 0 Date: 2008-08-28 21:51:03 Debug: Dependent: 0 Dyndll: 0 Exe: green.exe Force: 0 Gui: 0 Hostname: bigmomma Icon: GREENLOGS.ICO Icon: GREENLOGS.ICO No-Compress: 0 No-Logo: 0 Runlib: Shared: none Tmpdir: Verbose: 0 Version-Comments: ............. Version-CompanyName: .............. Version-FileDescription: version 2.01 green Version-FileVersion: 2.1 Version-InternalName: .............. Version-LegalCopyright: ........... Version-LegalTrademarks: ............. Version-OriginalFilename: Green Version-ProductName: Green Version-ProductVersion: 2008 Xclude: 0

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://758394]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found