Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Imager with JPEG support on Windows

by gwfran (Initiate)
on May 30, 2010 at 18:24 UTC ( [id://842281]=perlquestion: print w/replies, xml ) Need Help??

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

RTFM'd - no dice. Installed the JPEG DLL's - no dice. In Perl 5.8, I could create JPEG's no problem with Imager. With Perl 5.10 and later versions of Imager, I can't seem to get there. Can someone with experience with Imager on Windows please help? Thanks! PS. Using ActiveState Perl

Replies are listed 'Best First'.
Re: Imager with JPEG support on Windows
by almut (Canon) on May 30, 2010 at 19:11 UTC

    The jpeg library needs to be available at build time of the Imager module. Adding it to the system later doesn't have any effect, unless the module has been built accordingly.  The build process only links against external libraries it can find during configuration.

    (Just mentioning it, as it's not clear from your description whether you built Imager yourself, or where you got it from...)

      At build time! Ah! No, I grabbed Imager before I installed the jpeg libraries. I'll try to recompile and see if that was my problem. Thanks!
        Imager doesn't grab the libraries even when I hard-code their locations in the makefile. This is a god-awful installation (for Windows at least). Guess I'll have to try something different.
Re: Imager with JPEG support on Windows
by hossman (Prior) on May 30, 2010 at 19:07 UTC

    Uh ... details?

    Can you show some code that works on 5.8 but doesn't work on 5.10? Can you explain what exactly "can't seem to get there" means? (ie: what error message are you getting? what behavior does your code have that it didn't have before, etc...)

Re: Imager with JPEG support on Windows
by tonyc (Pilgrim) on Jun 01, 2010 at 13:08 UTC

    From the other output you've described Imager's Makefile.PL is finding neither the jpeg libraries not the header files.

    You need all of the following:

    • a compiler
    • the library - depending on which compiler you're using that will be libjpeg.a or libjpeg.lib
    • the header files - jpeglib.h, jconfig.h, jmorecfg.h

    If the libraries aren't in the default library search path, add a --libpath=c:\directory\ option.

    If the headers aren't in the default include search path, add a --incpath=c:\directory\ option.

    So you might have:

    perl Makefile.PL --incpath=c:\somewhere\include --libpath=c:\somewhere\lib

    The Makefile.PL output should include a line like:

          jpeg: includes found - libraries found

    If it doesn't, Imager didn't find one of either the includes or libraries.

    If it does, try building Imager, if you're still having problems please include: which files you put where, the output of perl Makefile.PL, and the build output.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://842281]
Approved by zwon
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-28 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found