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