jpeg library issue with configure

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
blackbird

jpeg library issue with configure

Post by blackbird »

Does anyone have an idea how to fix a jpeg problem? IM finds everything for jpegs except for checking for jpeg_read_header in -ljpeg... no. I do not know what else to do.


checking for JPEG support ...
checking jconfig.h usability... yes
checking jconfig.h presence... yes
checking for jconfig.h... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking jmorecfg.h usability... yes
checking jmorecfg.h presence... yes
checking for jmorecfg.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... no
checking for JPEG library is version 6b or later... yes
yes
checking if JPEG package is complete... no -- some components failed
andrewadperfect

Re: jpeg library issue with configure

Post by andrewadperfect »

Here is the command list I use when installing the jpg library. You'll
need to modify the file names / paths / commands depending on
your system. This is for a Max OS X / Unix type platform. There's
a bit more than just the configure and install here. I'm not sure why
this happens or what it fixes, but after using this, I got no more
errors.

I don't guarantee this will solve your problem, but it might.


tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a
Post Reply