Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Building GUI EXEs with perl2exe - no window seen

by sifukurt (Hermit)
on Dec 28, 2001 at 20:17 UTC ( #134899=note: print w/replies, xml ) Need Help??

in reply to Building GUI EXEs with perl2exe - no window seen

What is the information you're passing to perl2exe? I've built many Tk EXEs and haven't run into the problem you're describing. Are you building with the -gui flag? If so, build it again without that flag, that way you can see error messages that would otherwise be completely lost. If it runs correctly as a perl script but doesn't run correctly as an exe, I'd wager that the problem is that there are at least a few modules that aren't being included in the exe file. In your script, you have to expressly use every module that the modules you're already using depend upon. Let me give you a quick example. I was building an EXE with perl2exe that used Math::BigInt. It ran correctly as a regular ol' perl script, but didn't run as an exe file. The problem was that Math::BigInt was using Math::BigInt::Calc, and that's where the exe file was choking. Once I expressly included use Math::BigInt::Calc in my script and rebuilt the exe file, it worked fine. If that doesn't work for you, post exactly what you're passing to perl2exe and I'll try to replicate the problem on my end.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2023-06-06 08:46 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.