Trying to understand the question...

"I'm editing some source code for a script. The guy who programmed it used Tk::PNG and Imager::File::PNG to make the icons for the items in the inventory, since the games uses .tga files with alpha channels.

My problem is that I downloaded zlib and libpng (the first link on each page, marked "Setup") and installed them to C:\Program Files\GnuWin32. Now when I try to use CPAN in the command prompt, I type "install Imager::File::PNG", and I get this."

... Warning (mostly harmless): No library found for -lpng PNG: building independently PNG: Generic: includes not found - libraries not found PNG: v1.6: includes not found - libraries not found PNG: v1.5: includes not found - libraries not found PNG: v1.4: includes not found - libraries not found PNG: v1.2: includes not found - libraries not found PNG: v1.0: includes not found - libraries not found PNG: base (+libz): includes not found - libraries not found PNG: v1.6 (+libz): includes not found - libraries not found PNG: v1.5 (+libz): includes not found - libraries not found PNG: v1.4 (+libz): includes not found - libraries not found PNG: v1.2 (+libz): includes not found - libraries not found PNG: v1.0 (+libz): includes not found - libraries not found PNG: Checking if the compiler can find them on its own
OS unsupported: PNG libraries or headers not found
PNG: Test code failed: Can't link/include 'png.h', 'stdio.h', 'png' Warning: No success on command[C:\Perl-5.16\bin\perl.exe Makefile.PL] TONYC/Imager-File-PNG-0.89.tar.gz C:\Perl-5.16\bin\perl.exe Makefile.PL -- NOT OK Running make test Make had some problems, won't test. Could not read metadata file. Fa +lling back to other methods to determine prerequisites. Finished...

Updated:

Ok, maybe you need to install this zlib?...


In reply to Re: Help with Imager::File::PNG by pvaldes
in thread Help with Imager::File::PNG by Fair Strides

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.