nsmryan / itscomputersciencetime.com

My blog, itscomputersciencetime
http://itscomputersciencetime.com
0 stars 1 forks source link

w64devkit TCL #1

Open nsmryan opened 2 years ago

nsmryan commented 2 years ago

wget -O tcl-release.tar.gz https://github.com/tcltk/tcl/archive/release.tar.gz tar xvf tcl-release.tar.gz cd tcl-release/win CC=gcc AR=ar RANLIB=ranlib RC=windres ./configure --enable-threads --enable-64bit --prefix=c:/tcltk make make install

cd ../.. wget -O tk-release.tar.gz https://github.com/tcltk/tk/archive/release.tar.gz CC=gcc AR=ar RANLIB=ranlib RC=windres ./configure --prefix=c:/tcltk --with-tcl=../../tcl-release/win make make install

cd ../.. wget -O tcllib-release.tar.gz https://github.com/tcltk/tcllib/archive/release.tar.gz tar xvf tcllib-release cd tcllib-release ./configure --prefix=c:/tcltk make make install

nsmryan commented 2 years ago

Seems like I have to provide CC AR RC RANLIB for extensions. Need to give paths without ~. Extensions seem to want original build directory, not c:/tcltk/lib.

Extension RBC needed the platform explicitly set to windows in configure. Got RBC from https://chiselapp.com/user/rene/repository/rbc/info?name=tip. RBC found the wrong install. Modified make manually. Modified make to add tcl-release/win and tcl-release/generic.

With all of this, RBC actually compiled and runs!

nsmryan commented 2 years ago

wget -O tklib-release.tar.gz https://github.com/tcltk/tklib/archive/tklib-0.7.tar.gz tar xvf tklib-release cd tklib-release ./configure --with-tclsh=c:/tcltk/bin/tclsh86.exe --prefix=c:/tcltk make install

Warning given, but seems to work:

~/tcl/tklib-tklib-0.7 $ ./configure --with-tclsh=c:/tcltk/bin/tclsh86.exe --prefix=c:/tcltk
checking executable extension based on host type...
checking for tclsh... c:/tcltk/bin/tclsh86.exe, via --with-tclsh
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
nsmryan commented 2 years ago

Look at manjaro tcl prompt configuration. I think there is a dot file or something using the pure tcl readline- try to find this and put it in the windows w64 dev kit setup.

nsmryan commented 2 years ago

~100 MB deployment- w64 zip and tcltk with tcllib, tklib, tk, rbc. A bit less for mini (10 MB reduction), zipped tcltk is 20 MB reduction, for ~70 MB total.

nsmryan commented 2 years ago

Pure tcl readline. http://tclreadline.sourceforge.net/