Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Finding tcltk when building Python on Windows

Reply
Thread Tools

Finding tcltk when building Python on Windows

 
 
Chris
Guest
Posts: n/a
 
      09-11-2008
Hi,

I'm trying to build Python on Windows using Visual Studio 2005. I have
no trouble compiling tcl/tk 8.5, but when I subsequently build Python
it doesn't find tcl/tk (I get a message about being unable to find
tcl.h).

I'm using the source distribution of Python 2.5.2, not the svn
version. I'm trying to follow the instructions in PCbuild8/readme.txt,
but I'm not sure I understand them correctly. Here is the part of the
text that I think I might have misunderstood:

"""
The following subprojects [including Tkinter] will generally NOT build
out of the box. They wrap code Python doesn't control, and you'll
need to download the base packages first and unpack them into siblings
of PCbuilds's parent directory; for example, if your PCbuild is
........\dist\src\PCbuild\, unpack into new subdirectories of dist\.
"""

If I have extracted the Python source archive to c:\Python-2.5.2\,
then my understanding is that I should extract the tcl and tk source
archives to c:\tcl-8.5.4\ and c:\tk-8.5.4\, respectively. Then, when I
build and install tcl and tk, their output is c:\tcltk\ (because the
instructions say to pass "INSTALLDIR=..\..\tcltk" when building). This
is then supposed to be found when I build Python. But tcl/tk isn't
found, so I assume I didn't do the right thing here.

I feel a bit stupid! I also can't find any explicit instructions for
building Python with tcl/tk support using Visual Studio by searching
the web.

Thanks for any help,
Chris


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interaction between TclTk editor with Python code ab Python 1 05-17-2005 11:56 AM
TCLTK didn't work with do ... end ?? Daniel Bovensiepen [bovi] Ruby 2 04-21-2004 07:43 PM
cygwin tcltk 8.3 Grzegorz Dostatni Python 1 12-02-2003 12:54 PM
IDEStudio (Linux Python cvs-version TclTk 8.4.3 tix-8.1.4) Helmut Jarausch Python 0 07-17-2003 04:28 PM
Building ruby/tcltk on Mac OSX Mike Ruby 0 07-12-2003 07:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57