Just another iPhone Blog
Things I Learnt Today
An awesome initiation by the Open-source community to provide a single application, called as Ports, which keeps track of most of the open-source projects thus reducing
- the hassle of manual compilation of your favorite open source project
- manual tracking of the latest version of your favorite open source project
All you have to say is the open source project name / software title , a.k.a port, you are interested, and Port utility will take care of
- Finding the Latest stable version for the latest OS Version
- Downloading the appropriate source
- compiling and creating an executable
With Mac Ports available it is very easy to compile your JPEG library, or for that matter installing python, which is as easy as saying
sudo ports – v python +universal
This is the tool which help the Novice developers / or the ones who are very much interested in getting their Favorite open source project up and running rather than indulging in dirt of compilation
For more information on Mac Ports Visit the community site here
Python Imaging Library(PIL)
Did a Hands On on setting up Python Imaging Library and there came the use of ports where I had to Install JPEG, XML, FreeType libraries. This is wonderful library which supports a various Image Processing Options, with Image Comparison is the one which I was interested upon.
Installation of PIL is explained step by step here, I was installing this on Snow Leopard and was with this issue
“_imaging.so module not installed”
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Library/Python/2.6/site-packages/PIL/_imaging.so, 2): \ Symbol not found: _jpeg_resync_to_restart Referenced from: /Library/Python/2.6/site-packages/PIL/_imaging.so Expected in: flat namespace in /Library/Python/2.6/site-packages/PIL/_imaging.so
If Ypur not so lucky enough to get the PIL installed due to this Error, then you have come to the right place. This issue is because the Python in Snow Leapard is looking for 64 bit JPEG library by default.
I have followed the steps nailed here and it worked for me
Hope this helps.