Skip to content
Tcl Source Code Artifact [35ac63f1a0]
Login

Artifact [35ac63f1a0]

Artifact 35ac63f1a04ba0223fb881968dbee2fa1ff944fb1829cde29fa7022fc18dce24:

Ticket change [35ac63f1a0] - Ticket [92c2169782c2e006|92c2169782] <i>macOS compiling and using Tcl8.7/Tk8.7</i> status still Open with 4 other changes by marc_culler on 2021-01-29 03:42:40.
D 2021-01-29T03:42:40.001
J icomment Hmmm.\s\sObviously\sthat\sshould\snot\sbe\sthe\sdefault\sfor\smacOS.\r\n\r\nHere\sis\smy\swild\sguess:\sthis\shappens\swhen\syou\stry\sto\sbuild\sa\sstandalone\smacOS\r\napp\swith\sTcl\s8.7.\r\n\r\nThe\stechnique\sfor\sbuilding\sa\sstandalone\sapp\son\smacOS\sis\sthat\syou\sfirst\r\nbuild\sthe\sWish\sapp\sand\sthen\syou\sreplace\sthe\sInfo.plist\sfile\sand\screate\san\r\nappinit.tcl.\s\sThe\smacOS\sversion\sof\sappinit.c\schecks\sif\sthe\sappinit.tcl\sfile\r\nexists.\s\sIf\snot,\sit\sruns\sas\sWish.\r\n\r\nOn\smacOS\sthe\sWish\sapp\sis\san\sapp\sbundle,\sof\scourse,\sand\sit\sembeds\sthe\sTcl\r\nand\sTk\sframeworks\swithin\sthe\sbundle\sin\sthe\sstandard\sway\sthat\smacOS\sexpects.\r\nSince\sthe\stwo\sframeworks\sare\sbeing\srelocated\sfrom\sthe\sstandard\slocation\sin\r\n/Library/Frameworks\sto\sthe\sapp\sbundle\sit\sis\snecessary\sto\suse\sinstall_name_tool\r\nto\sadjust\sthe\sid\sand\s(for\sTk)\slibrary\sload\spaths.\sThis\sis\sexactly\sthe\r\nsituation\swhere\sthe\s@executable_path\ssymbol\sis\ssupposed\sto\sbe\sused.\s\sAt\r\nload\stime\sthat\ssymbol\sgets\sreplaced\sby\sthe\spath\sto\sthe\sdirectory\scontaining\r\nthe\sapp\sbundle's\smain\sexecutable,\snamely\s<path\sto\sapp\sbundle>/Contents/MacOSX\s.\r\n\r\nI\sthink\sthe\ssolution\sto\sthis\sproblem\sis\sto\s*never*\sappend\sthe\szip\sfile\sfor\r\nstandalone\smacOS\sapps.\s\sThe\s--enable-zipfs\sshould\sjust\sbe\scompletely\sdisabled\r\non\smacOS.\s\sThat\sway\sit\swon't\smatter\swhether\sit\sis\sthe\sdefault\sor\snot.\s\sIt\r\nshould\sjust\snever\shappen.\r\n\r\nMacOS\shas\sits\sown\sway\sof\shandling\sthe\s"single\sexecutable"\sparadigm\sand\sthere\r\nis\sno\spoint\sin\strying\sto\s"improve"\son\sthat\sby\sreplacing\sit\sby\sthe\sWindows\r\nparadigm.
J login marc_culler
J mimetype text/plain
J username Marc\sCuller
K 92c2169782c2e0068d573dba9eb99d390ade31a7
U marc_culler
Z 9360a32f9a95b8c4cf190bfee30fea64