[Skencil-users] compilling PIL

jim hamby hoodcanaljim at usa.com
Thu May 18 06:33:16 CEST 2006


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 



-- 
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/



More information about the Skencil-users mailing list