[Skencil-users] compilling PIL

jbiddier jbiddier at comcast.net
Thu May 18 04:17:02 CEST 2006


jim hamby wrote:
> HI
>
>   I tried installing the PIL 1.1.5 and found this error at the bottom of the page after running.
>  python setup.py build_ext -i
> running build_ext
> building '_imaging' extension
> creating build
> creating build/temp.linux-i686-2.3
> /////zip////
> building '_imagingtk' extension
> creating build/temp.linux-i686-2.3/Tk
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/freetype2 -IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.3 -c Tk/tkImaging.c -o build/temp.linux-i686-2.3/Tk/tkImaging.o
> Tk/tkImaging.c:51:16: tk.h: No such file or directory
> Tk/tkImaging.c:73: error: syntax error before "clientdata"
> Tk/tkImaging.c: In function `PyImagingPhotoPut':
> Tk/tkImaging.c:77: error: `Tk_PhotoHandle' undeclared (first use in this function)
> Tk/tkImaging.c:77: error: (Each undeclared identifier is reported only once
> Tk/tkImaging.c:77: error: for each function it appears in.)
> Tk/tkImaging.c:77: error: syntax error before "photo"
> Tk/tkImaging.c:78: error: `Tk_PhotoImageBlock' undeclared (first use in this function)
> Tk/tkImaging.c:80: error: `argc' undeclared (first use in this function)
> Tk/tkImaging.c:81: error: `interp' undeclared (first use in this function)
> Tk/tkImaging.c:81: error: `argv' undeclared (first use in this function)
> Tk/tkImaging.c:83: error: `TCL_ERROR' undeclared (first use in this function)
> Tk/tkImaging.c:87: error: `photo' undeclared (first use in this function)
> Tk/tkImaging.c:121: error: `block' undeclared (first use in this function)
> Tk/tkImaging.c:147: error: syntax error before "run"
> Tk/tkImaging.c:153: error: `run' undeclared (first use in this function)
> Tk/tkImaging.c:196: error: `TCL_OK' undeclared (first use in this function)
> Tk/tkImaging.c: At top level:
> Tk/tkImaging.c:201: error: syntax error before "clientdata"
> Tk/tkImaging.c: In function `PyImagingPhotoGet':
> Tk/tkImaging.c:204: error: `Tk_PhotoHandle' undeclared (first use in this function)
> Tk/tkImaging.c:204: error: syntax error before "photo"
> Tk/tkImaging.c:205: error: `Tk_PhotoImageBlock' undeclared (first use in this function)
> Tk/tkImaging.c:207: error: `argc' undeclared (first use in this function)
> Tk/tkImaging.c:208: error: `interp' undeclared (first use in this function)
> Tk/tkImaging.c:208: error: `argv' undeclared (first use in this function)
> Tk/tkImaging.c:210: error: `TCL_ERROR' undeclared (first use in this function)
> Tk/tkImaging.c:214: error: `photo' undeclared (first use in this function)
> Tk/tkImaging.c:222: error: `block' undeclared (first use in this function)
> Tk/tkImaging.c: At top level:
> Tk/tkImaging.c:241: error: syntax error before '*' token
> Tk/tkImaging.c: In function `TkImaging_Init':
> Tk/tkImaging.c:243: error: `interp' undeclared (first use in this function)
> Tk/tkImaging.c:244: error: `ClientData' undeclared (first use in this function)
> Tk/tkImaging.c:244: error: syntax error before numeric constant
> Tk/tkImaging.c:246: error: syntax error before numeric constant
> error: command 'gcc' failed with exit status 1
>
>
> I was following the README file from 
> Python Imaging Library 1.1.5 Source Kit (off-site link) (all platforms) (430k TAR GZ) (March 28, 2005)
>
> I believe this centos 4 should be identical to redhat EL and built from 
> ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/SRPMS
>
> Sorry most of this is some distance above me.
> Thanks
> Jim 
>
>
>
>   
I have posted a quick install page on my web site (squeezed it in). I 
made this page more than 7 months ago to supplement an install doc I was 
working on. It included a Solaris page and a Fedora page (can't find the 
completed copies of those - somewhere on a backup CD it would think.).

Never the less, it has a section on compiling PIL (1.1.4) manually that 
may help you. The page is for SuSE Linux, but I know the instructions to 
work for RedHat 8.0 and Fedora C2. I have no idea if it is valid for 
RedHat EL. Also note that it is for PIL 1.1.4. I have not tried PIL 
1.1.5 on any or my boxes, so I can't guarantee the results. It may help 
you, so I posted it.

The URL is:

http://home.comcast.net/~jbiddier/suse_install/

Feel free to ask more questions if you are having problems with the 
instructions.

Thanks.

--J






More information about the Skencil-users mailing list