Python Image Library (PIL) build error on Cygwin

Steve Holden sholden at holdenweb.com
Fri Apr 30 15:38:04 EDT 2004


Jason Tishler wrote:

>Steve,
>
>On Fri, Apr 30, 2004 at 12:40:48PM -0400, Steve Holden wrote:
>  
>
>>Yup, now I can't find the Tk library,
>>    
>>
>
>Does the following from the Cygwin Python README help?
>
>    4. _tkinter users should note that Cygwin tcltk is really a Win32
>    package and hence, does *not* understand Cygwin style paths.  To use
>    the _tkinter module you must define the following environment
>    variables:
>
>        $ export TCL_LIBRARY=$(cygpath -w /usr/share/tcl$version)
>        $ export TK_LIBRARY=$(cygpath -w /usr/share/tk$version)
>

Unfortunately that doesn't seem to help:

sholden at DELLBOY ~/install/Imaging-1.1.4
$ export TCL_LIBRARY=$(cygpath -w /usr/share/tcl8.4)

sholden at DELLBOY ~/install/Imaging-1.1.4
$ export TK_LIBRARY=$(cygpath -w /usr/share/tk8.4)

sholden at DELLBOY ~/install/Imaging-1.1.4
$ python setup.py build
running build
running build_py
running build_ext
building '_imagingtk' extension
gcc -shared -Wl,--enable-auto-image-base 
build/temp.cygwin-1.5.9-i686-2.3/_imagingtk.o 
build/temp.cygwin-1.5.9-i686-2.3/Tk/tkImaging.o -LlibImaging 
-L/usr/lib/python2.3/config -lImaging -ltk8.4 -ltcl8.4 -lpython2.3 -o 
build/lib.cygwin-1.5.9
-i686-2.3/_imagingtk.dll
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: 
cannot find -ltk8.4
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

I'm wondering if I might need to download extra libraries, but I can't 
see anything appropriate.

regards
 Steve






More information about the Python-list mailing list