473,320 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Finding tcltk when building Python on Windows

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
Sep 11 '08 #1
0 1290

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Helmut Jarausch | last post by:
Hi, has anybody managed to get IDEStudio running on Linux with Python 2.3b2+ (cvs) plus TclTk 8.4.3 + tix-8.1.4 ? After a minor correction to src/idledev/IDEStudio.py to set 'srcdir'...
7
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results....
1
by: Grzegorz Dostatni | last post by:
Does anyone have tcltk 8.3 packages for cygwin? I spend the last 6 hours searching for them on the net. Could you please check your cygwin archive? Greg "Many a man may look respectable, and...
1
by: ab | last post by:
Hi, I have an editor(front end) that is written in Tcl/Tk. It has a menu bar, menu buttons, edit boxes, listboxes & comboboxes. I am invoking this editor from an application that is written in...
22
by: Tony Houghton | last post by:
I'm using pygame to write a game called Bombz which needs to save some data in a directory associated with it. In Unix/Linux I'd probably use "~/.bombz", in Windows something like "C:\Documents...
8
by: Rick Strahl [MVP] | last post by:
Hi all, I'm building an app that uses the ASP.Net runtime... One problem I've run into is that pages running inside of the runtime are not finding DLLs in the GAC. In fact, if I look at the...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
3
by: Bev in TX | last post by:
I am a complete newbie at building Python. I am trying to build it under MS Windows Vista (64-bit AMD) with MS VS2005. I'm doing that because I need debug libraries, which I did not see in the...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.