Building TCL/TK 8.6.4 with Visual Studio 2010
Downloads
For the impatient:
- TCL/TK 8.6.4, Release DLL Build, 32-Bit using Visual Studio 2010
- TCL/TK 8.6.4, Debug DLL Build, 32-Bit using Visual Studio 2010
- TCL/TK 8.6.4, Release DLL Build, 64-Bit using Visual Studio 2010
- TCL/TK 8.6.4, Debug DLL Build, 64-Bit using Visual Studio 2010
Note: The process for building these is much more simple than the one for Visual Studio 2013, but I include this here for reference anyway...
Prerequisites
- You need Visual Studio 2010. I cannot believe I am writing this down as a prerequisite on a page that has the title building TCL/TK 8.6.4 with Visual Studio 2010.
- You need the TCL/TK sourcecode. In the following, I am using Tcl 8.6.4 and Tk 8.6.4
- Unzip the sourcecode. At the end, you should have two directories, for example
c:\tk8.6.4
andc:\tcl8.6.4
.
Building the 32-bit version
- Open
Visual Studio Command Prompt (2010)
- Change to the
win
subdirectory in the TCL source folder. For example, for me this isC:\tcl8.6.4\win
- Run
nmake -f makefile.vc
- Change to the
win
subdirectory in the TK source folder. For example, for me this isC:\tk8.6.4\win
- Run
set TCLDIR=..\..\tcl8.6.4
to ensure TK finds TCL. - Run
nmake -f makefile.vc
- Note: you can stop reading here if you only need the release build. The next few steps show you how to build the debug binaries as well.
- Change to the
win
subdirectory in the TCL source folder. For example, for me this isC:\tcl8.6.4\win
- Run
nmake -f makefile.vc OPTS=symbols
- Change to the
win
subdirectory in the TK source folder. For example, for me this isC:\tk8.6.4\win
- Run
nmake -f makefile.vc OPTS=symbols
Building the 64-bit version
- Open
Visual Studio Command Prompt x64 Win64 (2010)
- Change to the
win
subdirectory in the TCL source folder. For example, for me this isC:\tcl8.6.4\win
- Run
nmake -f makefile.vc MACHINE=AMD64
- Change to the
win
subdirectory in the TK source folder. For example, for me this isC:\tk8.6.4\win
- Run
set TCLDIR=..\..\tcl8.6.4
to ensure TK finds TCL. - Run
nmake -f makefile.vc MACHINE=AMD64
- Note: you can stop reading here if you only need the release build. The next few steps show you how to build the debug binaries as well.
- Change to the
win
subdirectory in the TCL source folder. For example, for me this isC:\tcl8.6.4\win
- Run
nmake -f makefile.vc MACHINE=AMD64 OPTS=symbols
- Change to the
win
subdirectory in the TK source folder. For example, for me this isC:\tk8.6.4\win
- Run
nmake -f makefile.vc MACHINE=AMD64 OPTS=symbols