ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
Re: [Image-SIG] 64bit windows OS
by Raphael Walker other posts by this author
Oct 26 2009 5:10AM messages near this date
[Image-SIG] Palette and alpha | Re: [Image-SIG] 64bit windows OS
>  As for building PIL x64, if you want full feature support, you have to
 >  build
 >  some dependencies as well (zlib, libpng, jpeglib, and freetype). It's
 >  a bit
 >  convoluted; if you or anyone else want instructions, I'll post them
 >  here.

Hello Elias,

Please give instructions for building PIL 1.1.6 for win64.

1. I added extensions for png (zlib) and jpeg (jpeg-6b/jpeg-7).

my  setup.py:
TCL_ROOT = None
JPEG_ROOT = 'jpeg-7'
ZLIB_ROOT = 'zlib'
TIFF_ROOT = None
FREETYPE_ROOT = None
LCMS_ROOT = None

2. I build PIL with :

 >  python setup.py build

build complete with:
--- JPEG support available
--- ZLIB (PNG/ZIP) support available

3. try selftest
 >  python selftest.py

c:\Users\rwalker\devel\building\Imaging-1.1.6> python selftest.py
*****************************************************************
Failure in example: _info(Image.open("Images/lena.jpg"))
from line #24 of selftest.testimage
Exception raised:
Traceback (most recent call last):
   File ".\doctest.py", line 499, in _run_examples_inner
     exec compile(source, "<string> ", "single") in globs
   File "<string> ", line 1, in <module>
   File ".\selftest.py", line 22, in _info
     im.load()
   File "PIL\ImageFile.py", line 180, in load
     d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
   File "PIL\Image.py", line 375, in _getdecoder
     raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
    1 of  57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.

4. i search for possible errors/mistakes

the _imaging.pyd has dependencies to zlib.dll. i checked your 
_imaging.pyd from your install package and there is no dependency to 
zlib.dll.

what did i missed for compiling PIL on win64?

Thanks,
Raphael

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Raphael Walker
Elias Fotinis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved