Re: Fw: Compiling and running X11 Tcl/Tk on XQuartz
Re: Fw: Compiling and running X11 Tcl/Tk on XQuartz
- Subject: Re: Fw: Compiling and running X11 Tcl/Tk on XQuartz
- From: Tom Lane <email@hidden>
- Date: Thu, 01 Mar 2018 09:55:58 -0500
- Comments: In-reply-to K Shen <email@hidden> message dated "Thu, 01 Mar 2018 13:06:42 +0000"
K Shen <email@hidden> writes:
> Thanks for your reply. I tried to build as you suggested, but was
> unsuccessful - I can't find wish (or Wish.app directory) in the Tk framework
> that was created, and I would prefer to build a non-framework version.
The recipe that I showed creates a framework in the directory that you
point to for that, and a fairly normal-looking Tcl/Tk installation in the
PREFIX directory, in particular
$ ls -l tcl8.5/bin
total 72
lrwxr-xr-x 1 tgl admin 8 Oct 18 2014 tclsh@ -> tclsh8.5
-rwxr-xr-x 1 tgl admin 12720 Oct 18 2014 tclsh8.5*
lrwxr-xr-x 1 tgl admin 11 Oct 18 2014 wish-X11@ -> wish8.5-X11
-rwxr-xr-x 1 tgl admin 17552 Oct 18 2014 wish8.5-X11*
While those executables work fine, you can tell from the file sizes that
something's funny about them, and indeed it turns out that they're mostly
just referencing shared libraries:
$ otool -L tcl8.5/bin/wish8.5-X11
tcl8.5/bin/wish8.5-X11:
/Users/tgl/Library/Frameworks/Tk.framework/Versions/8.5-X11/Tk
(compatibility version 8.5.0, current version 8.5.16)
/Users/tgl/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl
(compatibility version 8.5.0, current version 8.5.16)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1197.1.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 855.17.0)
/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
/opt/X11/lib/libXss.1.dylib (compatibility version 2.0.0, current
version 2.0.0)
/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
So that's why you can't get rid of the framework part. But it's not that
big:
$ du -hs /Users/tgl/Library/Frameworks/
8.5M /Users/tgl/Library/Frameworks/Tcl.framework
7.3M /Users/tgl/Library/Frameworks/Tk.framework
so personally I see no value in getting rid of it that's worth sweating
over getting the build script to do something it doesn't want to do.
regards, tom lane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden