Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 <psnively@mac.com>

> 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  
> <http://caml.inria.fr/archives/200211/msg00163.html>, specifically:

IIRC, you can shorten it a bit when the framework is in a standard
location:
    ./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  
> <http://www.erlang.org/ml-archive/erlang-questions/200210/ 
> 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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners