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

Hi ! I have made a perl/Tk program on linux and I have to translate it for windows. I installed active perl on windows. The problem is that active perl provide Tkx which is very different form Tk. Moreover Tkx seems to bee really poorly documented, for example after long searches on google I can't even find the syntax for a checkbutton... So what can I do ? Where can I find a good documentation on Tkx ? Or is there a simple way to install Tk on windows ? many thanks
  • Comment on porting a linx perl/tk program on window$

Replies are listed 'Best First'.
Re: porting a linx perl/tk program on window$
by Anonymous Monk on May 14, 2009 at 08:55 UTC
    ActivePerl comes with Tk and/or you can easily install it with ppm install Tk.

    Tkx::Tutorial

Re: porting a linx perl/tk program on window$
by zentara (Cardinal) on May 14, 2009 at 12:09 UTC
    Honest , it is easier in the long run to just learn linux..... MSWindows tries to purposely make things hard for you.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku
Re: porting a linx perl/tk program on window$
by doug (Pilgrim) on May 14, 2009 at 18:56 UTC

    Doesn't cygwin supply the perl/Tk package? I know I've written perl/Tk that's run on linux and windows, but I don't remember if that was cygwin or ActiveState.

    As for the documentation issue, I own the O'Reilly book. I didn't think it was the best ORA book ever, but was good enough for what I was doing at the time.

    -- doug

Re: porting a linx perl/tk program on window$
by lamprecht (Friar) on May 16, 2009 at 21:24 UTC
    Perl/Tk builds without problems on Strawberry-perl. It should build as well using AS-perl MinGW/dmake.
    Ppm Packages are listed here http://cpan.uwinnipeg.ca/dist/Tk.

    Christoph

      Thanks for all the answers ! Building Perl/Tk on window$ is really a nightmare... I installed MinGW and try to compile Tk-804.028. "make" is unknown command and mingw32-make produce errors and does not built... I don't know what to do. C:\logiciels\Tk-804.028>C:\MinGW\bin\mingw32-make makefile:1776: warning: overriding commands for target `manifest' makefile:1183: warning: ignoring old commands for target `manifest' mingw32-make: *** No rule to make target `C:\Perl\libConfig.pm', needed by `make file'. Stop.
        ppm install Tk
        you're supposed to use dmake