I am a beginner with Tcl/Tk, but I am already in need to deploy an .app with Tcl/Tk frameworks in it (because the .app needs to rely on its own Tcl/Tk version and not on macOS standard and old Tcl/Tk). Can somebody point me to where I can find precompiled Frameworks or to a step-by-step guide on how to compile them on macOS?
Half a day of search has not been very fruitful in this regard. I guess my need is not at all very special, as I see many .apps shipping their own Tcl/Tk Frameworks. (PS: I need to access these Frameworks from Perl, but this shouldn't make any difference.)
Here is my build script. You will need to make modifications to suit your needs.
I personally recommend Tcl/Tk 8.6.8 at this time, but it has to be built with an earlier XCode version (I use XCode Command Line Tools 9.2 on Sierra).
There are still various bug fixes for MacOS Mojave being worked on. Other people may recommend otherwise.
Variables:
directory structure:
tclbuild.sh:
The proposed script fails for me on Mojave, after compiling for several minutes, with the following error:
I have the latest Tcl/Tk (8.6.9) resources and the same folder structure as indicated above.