in reply to Inline::C and gd

Your problem here is that you have not compiled JPEG support into your GD library. By default, GD is built with PNG support, but to include JPEG support, you need to include version 6b or later of the JPEG library.

 

Update

With a little further experimentation, I have rebuilt the GD library with JPEG support and no longer encounter this error - To rebuild this library with JPEG support, I expanded the JPEG library into a parallel directory and updated to the GD Makefile to include the HAVE_JPEG flag, included the -ljpeg library and altered the include and library paths to include the JPEG source location.

 

Replies are listed 'Best First'.
Re: Re: Inline::C and gd
by Beatnik (Parson) on May 26, 2002 at 13:45 UTC
    If I run the binary generated by the C source, it works just fine. I used GD for JPG and PNG manipulation in the past, a different pure C based manipulation of JPEG works too :) So I'm pretty sure it should work.
    Thanks for looking into this tho.

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.