[Pythonmac-SIG] Building portable PIL

Bob Ippolito bob at redivi.com
Sat May 1 10:36:06 EDT 2004


On May 1, 2004, at 10:24 AM, Bob Ippolito wrote:

> On May 1, 2004, at 10:15 AM, Drew McCormack wrote:
>
>> I am writing an article for MacDevCenter in which I want to perform 
>> image processing via Xgrid. I started off trying to use imagemagick, 
>> but that became a nightmare. Then I remembered PIL, and so far things 
>> are going OK, but I'm not there yet.
>>
>> What I need is a copy of PIL which has no dependencies other than 
>> those in a standard Mac OS X system. I tried first installing libjpeg 
>> using fink, and then using MacPython for PIL, but the PIL formed 
>> depends on the libjpeg.dylib file.
>>
>> I then tried compiling PIL myself, changing the paths to /sw/lib and 
>> /sw/include, as stated in the instructions. This compile seems OK, 
>> until you try to read a jpeg file, and then it says the decoder is 
>> not available, or something like that. Checking the _imaging.so 
>> library with otool indicates that the jpeg dylib is not linked, which 
>> is good, but apparently neither is the static library.
>>
>> So I'm a bit stuck. Does anyone know how I can generate a version of 
>> PIL that can deal with jpeg, but does not depend on libjpeg.dylib?
>
> The libjpeg in my PackageManager repository doesn't have any external 
> dependencies:
> 	http://undefined.org/python/pimp/

Err.. sorry, haven't had my coffee yet.  The PIL in my PackageManager 
repository doesn't have any external dependencies.  libjpeg and such 
are compiled into the .so statically.

-bob




More information about the Pythonmac-SIG mailing list