Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] O'Caml 3.07p2 + Tk 8.4.4 on Mac OS X 10.2.8
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-10-29 (23:57)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] O'Caml 3.07p2 + Tk 8.4.4 on Mac OS X 10.2.8
From: Paul Snively <>

> I wish to be able to use the Aqua version of Tk, so of course, I had to  
> compile the sources following the instructions at  
> <>, specifically:

IIRC, you can shorten it a bit when the framework is in a standard
    ./configure -tkdefs "-I/Library/Frameworks/Tcl.framework/Headers
         -I/Library/Frameworks/Tk.framework/Headers" -tk-no-x11
        -tklibs "-framework Tcl -framework Tk"

Not that this changes much :-)

However, my experience with the Aqua Tk is lots of strange behaviour,
so my suggestion would be to do yourself a favor, and install the X11
Tk, which works flawlessly. Not also that lablGL's Togl widget works
only with the X11 Tk  (as Togl does not support Aqua Tk to start with).

> Sure enough. Since I didn't feel it was realistic or even necessarily  
> desirable to create a Mac OS X app bundle for every Tk-using  
> command-line tool, I set about to see if there was another solution to  
> the problem. It turns out that there is, and it is described quite  
> nicely at  
> < 
> msg00148.html>. Briefly, Tk's SetFrontProcess() call needs to be  
> prepended with a CPSSetProcessName() and CPSEnableForegroundOperation()  
> pair.

Interesting. I'll take a look at this, but your following comments
about strange behaviours with ocamlbrowser confirm that it's probably
not worth investing too much time in it.

By the way, isn't anybody working on a direct interface to Aqua, to be
able to write Aqua application ocaml?  This would be much nicer than a
half-baked Tk interface. Is GNUstep compatible enough to offer some
kind of portability?

Jacques Garrigue

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: