Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compile tk8.6.0 for X11 on OSX

45 views
Skip to first unread message

Eckhard Lehmann

unread,
Jun 17, 2013, 2:13:33 PM6/17/13
to
Hello,

I experience some problems with Tk8.6.0, when I try to compile it for
X11 on Mac OSX 10.7.
Installed is Xquartz 2.7.4 and also some X11 from macports (which
shouldn't conflict I think). Previously I also installed an ActiveTcl
8.6 and 8.5. I run make as advertised in the README, but I changed
--enable-xft to --disable-xft in the GNUMakefile, because it raised some
linking errors.

$ ls
...
...
tk8.6.0

$ make -C tk8.6.0/macosx TK_X11=1
$ sudo make -C tk8.6.0/macosx install TK_X11=1

That works, but I cannot run it afterwards:

$ which wish-X11
/usr/local/bin/wish-X11
$ wish-X11
dyld: Library not loaded:
/Library/Frameworks/Tk.framework/Versions/8.6-X11:/usr/X11R6/lib/Tk
Referenced from: /usr/local/bin/wish8.6-X11
Reason: image not found
Trace/BPT trap: 5

All that on the Terminal.app and on xterm inside Xquartz.

Has somebody experienced this already and has an idea where the error
might be?

Thanks in advance

--
Eckhard

Donal K. Fellows

unread,
Jun 17, 2013, 2:33:41 PM6/17/13
to
On 17/06/2013 20:13, Eckhard Lehmann wrote:
> I experience some problems with Tk8.6.0, when I try to compile it for
> X11 on Mac OSX 10.7.
> Installed is Xquartz 2.7.4 and also some X11 from macports (which
> shouldn't conflict I think). Previously I also installed an ActiveTcl
> 8.6 and 8.5. I run make as advertised in the README, but I changed
> --enable-xft to --disable-xft in the GNUMakefile, because it raised some
> linking errors.

I think it's easier to just use the configure/Makefile in the unix
directory in that case. Or at least that's what I do and it doesn't seem
to have any significant problems (on an ancient OSX 10.5). You might
need to add extra options to configure (e.g., --with-x=/path/to/X11);
I've not experimented as the defaults worked for me.

Donal.
--
Donal Fellows — Tcl user, Tcl maintainer, TIP editor.

Eckhard Lehmann

unread,
Jun 17, 2013, 4:01:45 PM6/17/13
to
Am 17.06.13 20:33, schrieb Donal K. Fellows:

> I think it's easier to just use the configure/Makefile in the unix

It seems (and is documented) that the GNUMakefile does that, its just a
wrapper around the unix/ ./configure && make etc.
Actually I thought that I can use the Wish.app afterwards to start my
application in X11, so I tried to overwrite the ActiveState installation
with a Wish that is running with X11.

The reason for all that is, that Aqua TK is horrible slow compared to
X11 Tk...

> directory in that case. Or at least that's what I do and it doesn't seem
> to have any significant problems (on an ancient OSX 10.5). You might
> need to add extra options to configure (e.g., --with-x=/path/to/X11);
> I've not experimented as the defaults worked for me.

If only I knew where the /path/to/X11 is... ;). On former versions 10.4,
10.5 and 10.6 it worked for me as well out of the box.


--
Eckhard

0 new messages