What I meant was that ppsimple.pl compiled the file as expected, with no error messages, but when I ran the resulting .exe file, it produced exactly the same error message as if it were built with pp. I deleted all .exe's in my build folder and changed the output file name before building with ppsimple.pl so I made absolutely sure I was not running an exe file built with pp.

It's very easy to reproduce my problem.


1. Install Strawberry Perl (64-bit) 5.24.0.1
2. Grab the code below and save to a file
3. Use either pp or ppsimple.pl to build an exe.
4. Copy the resulting .exe file to a machine WITHOUT Perl installed. (This is VERY Important. If you run the .exe on a machine with a working Perl install, it works fine.)
5. Run the .exe. You will see the error messages from my original post, regardless of whether the file was built with pp or ppsimple.pl

Here's the simplest example of code with the problem:

#!/usr/bin/perl use strict; use warnings; use File::Path; use Imager; use Imager::Font::W32; use Imager::File::TIFF; use Carp 'verbose'; my $filename = "c:\\temp\\test\\errtest.tif"; my $white = Imager::Color->new(255, 255, 255); my $black = Imager::Color->new(0,0,0); my $xres = 240; #Horizontal Resolution (in DPI) of image my $yres = 240; #Vertical Resolution (in DPI) of image my $PageWidth = 8.5; my $PageHeight = 11; #-- End Paramaters --# my $xsize = $xres * $PageWidth; # Horizontal Page Size (Resolution * I +nches) my $ysize = $yres * $PageHeight; # Vertical Page Size (Resolution * I +nches) my $img = Imager->new(xsize=>$xsize,ysize=>$ysize); $img->settag(name =>'i_xres',value => $xres, name =>'i_yres',value => $yres, name =>'tiff_resolutionunit', value => 2); # Set the reso +lution unit to DPI # Load up Windows Font Face my $Font_Arial_Bold = Imager::Font->new(face => 'Arial Bold') or carp( +"Cannot load 'Arial Bold: ".Imager->errstr); $img->box(filled=>1, color=>$white); #Give our new page a white backgr +ound $Font_Arial_Bold->align(string => 'Test', size => 80, color =>$black, x => $img->getwidth/2, y => 250, halign => 'center', valign => 'center', image => $img); my $bilevel = $img->to_paletted(make_colors => 'mono', translate => 'errdiff', errdiff => 'stucki'); $bilevel->write(file => $filename, type => 'tiff', i_xres=> $xres, i_yres=> $yres, tiff_compression => 4);

In reply to Re^4: Imager::File::TIFF Dependencies by BrentD
in thread Imager::File::TIFF Dependencies by BrentD

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.