Overview
| Artifact ID: | 35ac63f1a04ba0223fb881968dbee2fa1ff944fb1829cde29fa7022fc18dce24 |
|---|---|
| Ticket: | 92c2169782c2e0068d573dba9eb99d390ade31a7
macOS compiling and using Tcl8.7/Tk8.7 |
| User & Date: | marc_culler on 2021-01-29 03:42:40 |
Changes
- icomment:
Hmmm. Obviously that should not be the default for macOS. Here is my wild guess: this happens when you try to build a standalone macOS app with Tcl 8.7. The technique for building a standalone app on macOS is that you first build the Wish app and then you replace the Info.plist file and create an appinit.tcl. The macOS version of appinit.c checks if the appinit.tcl file exists. If not, it runs as Wish. On macOS the Wish app is an app bundle, of course, and it embeds the Tcl and Tk frameworks within the bundle in the standard way that macOS expects. Since the two frameworks are being relocated from the standard location in /Library/Frameworks to the app bundle it is necessary to use install_name_tool to adjust the id and (for Tk) library load paths. This is exactly the situation where the @executable_path symbol is supposed to be used. At load time that symbol gets replaced by the path to the directory containing the app bundle's main executable, namely <path to app bundle>/Contents/MacOSX . I think the solution to this problem is to *never* append the zip file for standalone macOS apps. The --enable-zipfs should just be completely disabled on macOS. That way it won't matter whether it is the default or not. It should just never happen. MacOS has its own way of handling the "single executable" paradigm and there is no point in trying to "improve" on that by replacing it by the Windows paradigm.
- login: "marc_culler"
- mimetype: "text/plain"
- username: "Marc Culler"