[Image-SIG] Problems installing PIL
Piet van Oostrum
piet@cs.uu.nl
Wed, 26 Aug 1998 17:31:32 +0200 (MDT)
>>>>> "Fredrik Lundh" <fredrik@pythonware.com> (FL) writes:
FL> What JPEG lib do you use? Could it be a conflict between a UINT8
FL> typedef and a UINT8 define (PIL uses the latter)?
jpeg-6.a as distributed with gimp.
And yes, further experimentation shows that UINT8 is the culprit.
It is defined in the various jpeg .h files as unsigned char/char
or unsigned int (in an emergency case). It is such a twisted maze
of #ifdef CHAR_UNSIGNED/CHAR_IS_UNSIGNED/HAS_UNSIGNED_CHAR and
maybe more that I can't resolve which definition is actually
used.
I have now added this line to ImPlatform.h
#define HAVE_UNSIGNED_CHAR
and it solves the problem, but I have a slight feeling that there
should be a better solution.
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: Piet.van.Oostrum@gironet.nl