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

Hello Fellow Monks, I've been searching a lot everywhere for a PPD file for Tk::WinPhoto. Can anyone please help me? I desperately need to find a Win32 binary for Active State 5.8.x. Or perhaps a guide how to make it using MinGW or any other free compiler for Windows. Thanks a lot.

Replies are listed 'Best First'.
Re: Tk::WinPhoto for ActiveState
by strat (Canon) on Sep 18, 2005 at 08:32 UTC
Re: Tk::WinPhoto for ActiveState
by puploki (Hermit) on Sep 18, 2005 at 09:27 UTC

    It seems Tk::WinPhoto is part of the Tk bundle. If you grab that from CPAN there is a readme file for ActiveState in there that reads:

    Tk800.013 has been built by the author using ActivePerl from ActiveState's APi509e.exe. You need Visual C++ (Mine is version 6.0 - Professional Edition). When you install ActivePerl, it provides patched C runtime as PerlCRT. +dll which it installs in the "system32" directory. This needs "administrator" rights on NT. It also provides the import library PerlCRT.lib, but this is installed in an odd location e.g. C:\ActivePerl\lib\CORE\PerlCRT.lib where it is not found by MakeMaker or VC++. I copied it to C:\VisualStudio\VC98\lib\PerlCRT.lib (Your paths may vary dependinh where you installed ActivePerl and VC++ +.) Once that is done: perl Makefile.PL nmake nmake test nmake install_perl Works as expected. With prior verions of ActivePerl and Tk it has been necessary with some versions of VC++ to downgrade "optimization"; from -O2 that ActivePerl suggests, to -Od. This does not _seem_ to be required this time.

    Now, you may be able to get away without using Visual Studio, by downloading the (free) Platform SDK from Microsoft that includes nmake.

Re: Tk::WinPhoto for ActiveState
by emazep (Priest) on Sep 18, 2005 at 11:24 UTC
    As puploki have already said, the Tk::WinPhoto module belongs to the Tk distro.

    The latest (precompiled) Tk ppm package is available at the bribes repository (you can include it (together with many others) in your local ppm repositories list through PPM::Repositories).

    But unfortunately (and strangely), despite the above mentioned Tk ppm package is in synch with the latest Tk version available on CPAN (804.027 at the time of this writing), it does not include the Tk::WinPhoto module. I can just guess that this is because Tk::WinPhoto does not work properly or it even does not compile on Windows (in the ppm Tk POD it says that Tk::WinPhoto is considered an experimental module).

    Ciao,
    Emanuele.

Re: Tk::WinPhoto for ActiveState
by randyk (Parson) on Sep 18, 2005 at 15:06 UTC
    In the WinPhoto subdirectory of the Tk-804.027 sources, there's a file, NotWin.exc, which indicates that this module does not build on Win32.