Instructions for building tclsh on Windows using NMake and COFFEE.
COFFEE v0.1 has been tested with Tcl 8.6b1 on Windows XP with MSVC6 (using NMake only), and builds a static threaded tclsh.
You will need to download & install CMake from http://www.cmake.org/. Ensure that the CMake bin/ directory is in your PATH.
Set up your MSVC build environment using VCVARS32.BAT and/or your platform SDK's SetEnv.Bat.
If you are using MSVC6 you will want to check that the LIBPATH environment variable is set, or use
set LIBPATH=%LIB% to avoid a bunch of warnings from CMake.
Download Tcl sources from http://tcl.sourceforge.net/. Extract the Tcl source archive into a local folder.
Download COFFEE from 166f578d6c (using the ZIP archive command). You may need to login first as anonymous/anonymous.
Extract COFFEE into your Tcl source folder, so that CMakeFiles.txt is in the same folder as the Tcl ChangeLog.
CMake is able to create out-of-source-tree builds, and this is the preferred way to build with CMake.
In your Tcl source folder:
mkdir build && cd build cmake -G "NMake Makefiles" .. nmake
CMake appears to perform a DEBUG build by default. You can try the following options (in your build/ folder)
- For a release build:
- For a debug build:
- For a debug build with NMake showing all commands it executes:
cmake -DCMAKE_BUILD_TYPE:String=Debug -DCMAKE_VERBOSE_MAKEFILE=true ..
- Fiddle with any build option: