[Tkinter-discuss] Re: Python Tkinter import Failed

Fredrik Lundh fredrik at pythonware.com
Fri Jan 28 13:43:53 CET 2005


Dean N. Williams wrote:

>    I am trying to build Python on a Windows XP platform running
> Cygwin.  I was able to build Tcl and Tk

successfully?  including linking and running the wish binaries?

do you have X11 libraries for Cygwin on Windows XP?  the following
indicates that if you have them, they're not where Python expects them
to be:

building '_tkinter' extension
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.5.12-i686-2.4/_tkinter.o 
build/temp.cygwin-1.5.12-i686-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/ASD_work/cdat/lib 
 -L/usr/local/lib -L. -ltk8.4 -ltcl8.4 -lpython2.4 -o build/lib.cygwin-1.5.12-i686-2.4/_tkinter.dll
/usr/local/ASD_work/cdat/lib/libtk8.4.a(tkWindow.o)(.text+0x1093):tkWindow.c: undefined reference to 
`_XDestroyWindow'
/usr/local/ASD_work/cdat/lib/libtk8.4.a(tkWindow.o)(.text+0x1107):tkWindow.c: undefined reference to 
`_XDestroyIC'
/usr/local/ASD_work/cdat/lib/libtk8.4.a(tkWindow.o)(.text+0x129b):tkWindow.c: undefined reference to 
`_XSync'
(etc)

if you have the X11 libraries, and using them is what you want, hacking the setup.py
file might help (search for the comment "Assume default location for X11")

</F> 





More information about the Tkinter-discuss mailing list