Skip to content

Build Tcl and Tk with msys and gcc from Rtools

Notifications You must be signed in to change notification settings

waddella/Tclbuild

Repository files navigation

Compile Tck and Tk on Windows with msys and gcc from Rtools

This repository contains the build instructions and sources to compile Tcl and Tk with the Bwidget and Tktable extensions.

Setup

  • Download the newest R tools from here and install it under c:\Rtools.
  • Clone this git repository into 'C:\Tclbuild'
  • Install msys v1 (which comes bundled with mingw) from here. Install it under C:/MinGW/.

Compile Tcl and Tk

Start a msys terminal by running C:/MinGW/msys/1.0/msys.bat and enter

cd /c/Tclbuild
./tclbuild.sh

After running the build script there will be a couple outputs

  • Logs and builds (archived and compressed: Tcl32.zip and Tcl64.zip) are in the final_build folder.
  • The Tcl32 and Tcl64 folders are the final builds (that get compressed as mentioned in the above point)

Note that running the tclbuild.sh script will delete the files in final_build.

Test your Tcl/Tk build

You can test the builds by running wish86.exe (wish console)

  • C:/Tclbuild/Tcl32/bin/wish86.exe and enter

      source C:/Tclbuild/interactive_test_build.tcl
    
  • C:/Tclbuild/Tcl64/bin/wish86.exe and enter

      set auto_path [concat C:/Tclbuild/Tcl64/lib64 $auto_path]
      source C:/Tclbuild/interactive_test_build.tcl
    

The auto_path issue for the 64bit build gets resolved when compiling R with this Tcl/Tk build on Windows.

URLs for sources

The sources can be found at the following urls

About

Build Tcl and Tk with msys and gcc from Rtools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published