Hey folks -

I ran into a problem with an external library, which is not a surprise
looking at the bug reports. :-)

The obvious PAR::Packer solution is to include something like --link=png,
etc in my pp compilation command. This set of arguments is easy to generate
(in my case) using Prima::Config, which lists the names of all of the
external dependencies in one place.

Unfortunately, this doesn't seem to work. It will build an executable, but
it won't pack the libraries. For example, on a Windows system without jpeg,
it throws a runtime exception saying "The application has failed to start
because libjpeg-8_.dll was not found..." I did not test this behavior on
Linux because I don't have a very simple way to copy the executable to a
pristine copy of Linux. (I happen to keep a pristine copy of XP so I can
test CPAN installs of my stuff on Windows.)

The fix was easy enough for me: I wrote a simple wrapper around pp.pm that
includes the direct file paths. When I do that, it works. (Note I also
needed to explicitly include zlib and lzma for that to work.)

So, PAR::Packer is packaging things fine, but it is not correctly finding
the libraries that I ask it to find with the --lib flag. Is this a known
problem?

Thanks!
David

-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

Reply via email to