[Pythonmac-SIG] Using PIL/Compiling/_imagingtk

Colby Gutierrez-Kraybill colby at astro.berkeley.edu
Wed Mar 2 00:51:53 CET 2005


Howdie,

I'm attempting to use the Python Imaging Library
on a mac os x (panther 10.3.8) box with the standard
python install, along with the macpython addons
and the tcltkaqua packages.

I first installed the macpython addons  
(http://ftp.cwi.nl/jack/python/mac/MacPython-Panther-2.3-2.dmg)
for 10.3, then ran the package manager, which lead to a 404
error, and in-turn lead me to this post about the 10.3 package
manager being unmaintained:
http://mail.python.org/pipermail/pythonmac-sig/2005-February/013230.html

I got the latest tclTkAqua-BI from:
http://tcltkaqua.sourceforge.net/ (8.4.9.0)

When I run python, I can now import Tkinter, and
run a helloworld program to pop up a window, etc...

The package manager, using Bob Ippolito's list
http://undefined.org/python/pimp/darwin-7.2.0-Power_Macintosh.plist
Specifies installing PIL from source, by hand...

So, I got the latest 1.1.4 tgz from Pythonware, got through
the ligImaging configure process but the make fails with:

...
cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes -IlibImaging  
-I/Library/Frameworks/Tcl.framework/Headers  
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders  
-I/Library/Frameworks/Tk.framework/Headers  
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders  
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/ 
python2.3 -c _imagingtk.c -o  
build/temp.darwin-7.8.0-Power_Macintosh-2.3/_imagingtk.o
In file included from /Library/Frameworks/Tk.framework/Headers/tk.h:96,
                  from _imagingtk.c:20:
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning:  
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: warning:  
function declaration isn't a prototype
gcc -Wl,-F. -Wl,-F. -bundle -framework Python  
build/temp.darwin-7.8.0-Power_Macintosh-2.3/_imagingtk.o  
build/temp.darwin-7.8.0-Power_Macintosh-2.3/Tk/tkImaging.o -LlibImaging  
-lImaging -o build/lib.darwin-7.8.0-Power_Macintosh-2.3/_imagingtk.so
ld: Undefined symbols:
_Tcl_AppendResult
_Tcl_CreateCommand
_Tk_FindPhoto
_Tk_PhotoBlank
_Tk_PhotoPutBlock_NoComposite
error: command 'gcc' failed with exit status 1

Very Very Annoying...

Based on other similar posts, this appears to be some recent  
inconsistency between the builds.

Where do the above routines live and what's the proper direction to  
follow
in getting some patch back to the 1.1.4 Imaging release to make sure  
this
compiles?

- Colby





More information about the Pythonmac-SIG mailing list