Message151276
Modules/_tkinter.py #includes Modules/tkinter.h, tcl.h, and tk.h. The latter two #include tclDecls.h, tclPlatDecls.h, and tkDecls.h. I obtained 8.5.9 versions of all 5 and added them to Include/. Although they came from Ubuntu, they appear to be cross-platform in that they look for Mac and Win defines. They make the corresponding build errors go away. However, one remains: a failure to open X11/Xlib.h.
This must come from the following in tk.h:
#ifndef RC_INVOKED
#ifndef _XLIB_H
# if defined(MAC_OSX_TK)
# include <X11/Xlib.h>
# include <X11/X.h>
# else
# include <X11/Xlib.h>
# endif
#endif
#ifdef __STDC__
# include <stddef.h>
#endif
It seems this tk.h header, at least, expects RC_INVOKED to be defined on non-X11 platforms. Something here is crucially different than on the machine that builds Python for windows. The version of tk.h? the absence of X11/xlib.h? the pcbuild stuff? or the Visual Studio version?
I tried to compile PCbuild/pcbuild.sln with VC2008 Express in the 3.3, 3.2, and 2.7 repositories. For 3.3, I tried both debug and release builds. |
|
Date |
User |
Action |
Args |
2012-01-15 04:59:16 | terry.reedy | set | recipients:
+ terry.reedy, loewis, tim.golden, brian.curtin |
2012-01-15 04:59:16 | terry.reedy | set | messageid: <1326603556.49.0.117233546142.issue13789@psf.upfronthosting.co.za> |
2012-01-15 04:59:15 | terry.reedy | link | issue13789 messages |
2012-01-15 04:59:14 | terry.reedy | create | |
|