[Zope] Re: PIL error: decoder jpeg not available
Dave Lehman
davelehman@loewen.com
Tue, 14 Jan 2003 12:33:53 -0600
This is a multipart message in MIME format.
--=_alternative 0065F4CE86256CAE_=
Content-Type: text/plain; charset="us-ascii"
A little more information...
cd "libImaging"
./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib
I checked "ImConfig.h" and the two #define statements for libjpeg and libz
are uncommented, so configure properly recognized the options.
However, when I run "make", i'm getting an error on the "jpegdecode" line:
gcc -O -I./. -I/usr/local/include -DHAVE_CONFIG_H -c -o JpegDecode.o
JpegDecode.c
In file included from JpegDecode.c:37:
Jpeg.h:11:21: jpeglib.h: No such file or directory
make: *** [JpegDecode.o] Error 1
What does this mean? Why doesn't "jpeglib.h" exist, and where is it
supposed to come from?
--dave
On 01/14/2003 10:09:10 AM Dave Lehman wrote:
>I'm attempting to install PIL under Redhat 7.3, to use in conjunction
with the
>Photo product. I have gotten it installed and GIFs seem to work fine, but
JPEGs
>do not. I'm trying to follow the "Using PIL with Zope" document found at
>http://www.zope.org/Members/regebro/PIL_zope/.
>
>In Step 2, it instructs me to find out where my jpeglib is located using:
> ld -L/usr/local/lib -ljpeg -nostdlib
> ld -L/usr/lib -ljpeg -nostdlib
>
>Neither of these steps work, but I do have a file called "libjpeg.so.62"
in
>/usr/lib, which I understand is actually the jpeg library I want. I also
have a
>"libz.so.1" which i'm going to assume is my Zlib library, needed in step
1.
>
>OK, so I believe I have both the z and jpeg libraries on my system. I
tried
>running the configure command from step 3 like this:
> ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib
>and it completes with no errors.
>
>Then I edit my Makefile and edit the LIBS= line to:
> LIBS= -L/usr/lib -lz -L/usr/lib -ljpeg -lm
>
>When I run "make", it fails with "cannot find -lz". Since my z library is
>actually called "libz.so.1", I then tried changing the Makefile LIBS=
line to
>"-llibz" and then "-llibz.so.1" but both still failed. So obviously i'm
not
>grasping how to reference these libraries.
>
>Can someone please point out what i'm obviously missing here?
>
>Regards,
>Dave
>
>
>On 12/22/2002 12:23:41 PM "Lennart Regebro" wrote:
>
>>From: <grifter@loewen.com>
>>> 2. If I query RPM, it tells me that I already have jpeglib installed.
>>> However, i'm not quite sure what to point at in step 2.
>>
>>Well, I would be very surprised if it isn't located in one of those two
>>locations.
>>But you can look for it with find too, it should be called libjpeg.*
>>
>>find / -name 'libjpeg*' -print
>>
>>> Or am I mistaken, and I still need to "install jpeglib"?
>>
>>An RPM should work fine.
>>
>>
--=_alternative 0065F4CE86256CAE_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="Courier New">A little more information...</font>
<br>
<br><font size=2 face="Courier New"> cd "libImaging"</font>
<br><font size=2><tt> ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib</tt></font>
<br>
<br><font size=2 face="Courier New">I checked "ImConfig.h" and the two #define statements for libjpeg and libz are uncommented, so configure properly recognized the options.</font>
<br>
<br><font size=2 face="Courier New">However, when I run "make", i'm getting an error on the "jpegdecode" line:</font>
<br>
<br><font size=2><tt> gcc -O -I./. -I/usr/local/include -DHAVE_CONFIG_H -c -o JpegDecode.o JpegDecode.c</tt></font>
<br><font size=2><tt> In file included from JpegDecode.c:37:</tt></font>
<br><font size=2><tt> Jpeg.h:11:21: jpeglib.h: No such file or directory</tt></font>
<br><font size=2><tt> make: *** [JpegDecode.o] Error 1</tt></font>
<br>
<br><font size=2 face="Courier New">What does this mean? Why doesn't "jpeglib.h" exist, and where is it supposed to come from?</font>
<br>
<br><font size=2 face="Courier New">--dave</font>
<br>
<br>
<br>
<br><font size=2 face="Courier New">On 01/14/2003 10:09:10 AM Dave Lehman wrote:<br>
<br>
>I'm attempting to install PIL under Redhat 7.3, to use in conjunction with the <br>
>Photo product. I have gotten it installed and GIFs seem to work fine, but JPEGs <br>
>do not. I'm trying to follow the "Using PIL with Zope" document found at <br>
>http://www.zope.org/Members/regebro/PIL_zope/.<br>
><br>
>In Step 2, it instructs me to find out where my jpeglib is located using:<br>
> ld -L/usr/local/lib -ljpeg -nostdlib <br>
> ld -L/usr/lib -ljpeg -nostdlib <br>
><br>
>Neither of these steps work, but I do have a file called "libjpeg.so.62" in <br>
>/usr/lib, which I understand is actually the jpeg library I want. I also have a <br>
>"libz.so.1" which i'm going to assume is my Zlib library, needed in step 1.<br>
><br>
>OK, so I believe I have both the z and jpeg libraries on my system. I tried <br>
>running the configure command from step 3 like this:<br>
> ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib<br>
>and it completes with no errors.<br>
><br>
>Then I edit my Makefile and edit the LIBS= line to:<br>
> LIBS= -L/usr/lib -lz -L/usr/lib -ljpeg -lm<br>
><br>
>When I run "make", it fails with "cannot find -lz". Since my z library is <br>
>actually called "libz.so.1", I then tried changing the Makefile LIBS= line to <br>
>"-llibz" and then "-llibz.so.1" but both still failed. So obviously i'm not <br>
>grasping how to reference these libraries.<br>
><br>
>Can someone please point out what i'm obviously missing here?<br>
><br>
>Regards,<br>
>Dave<br>
><br>
><br>
>On 12/22/2002 12:23:41 PM "Lennart Regebro" wrote:<br>
><br>
>>From: <grifter@loewen.com><br>
>>> 2. If I query RPM, it tells me that I already have jpeglib installed.<br>
>>> However, i'm not quite sure what to point at in step 2.<br>
>><br>
>>Well, I would be very surprised if it isn't located in one of those two<br>
>>locations.<br>
>>But you can look for it with find too, it should be called libjpeg.*<br>
>><br>
>>find / -name 'libjpeg*' -print<br>
>><br>
>>> Or am I mistaken, and I still need to "install jpeglib"?<br>
>><br>
>>An RPM should work fine.<br>
>><br>
>></font>
--=_alternative 0065F4CE86256CAE_=--