English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] labltk and MacOS X
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-05-29 (03:23)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] labltk and MacOS X
From: Agustín Valverde Ramos <a_valverde@ctima.uma.es>

> I want to use ocaml to create program for MacOS X in native mode and 
> I am not using fink. I have no expirience with C, but I have followed 
> the example in the ocaml-3.04 reference manual (section 17.8) to 
> create a program in CLI mode and, additionally, I have achived to use 
> the c library created with ocamlc in a ProjectBuilder program.
> Now,... I want to use labltk! There is a 'native' version of Tcl/Tk for macosx:
> http://www.apple.com/downloads/macosx/unix_apps_utilities/tcltk.html
> It contains the headers and the necesary frameworks (dynamic 
> libraries). I have tried to recompile caml in order to generate the 
> labltk libraries for this tcl/tk, but I  have not been able. How can 
> I to recompile just the labltk libraries? Is it possible to make this 
> with a simple line of commands? Is it possible to write a small 
> make-file for this simple purpose?

I gave a try at it today, with the latest binary snapshot (TclTk-8.4a4-2),
and the MacOSX port looks very much alpha quality.
After a lot of tweaking, I could succeed in building an executable
of ocamlbrowser without X11, and run it.
However it looks stranges (menus are not menus but selectors), and
doesn't work: I get lots of "SetFrontProcess failed" errors, and
cannot do anything with the application.

So, this doesn't look like it is going to be usable very soon.

On the other hand, installing Xdarwin is easy, and then you can just
use the standard Tcl/Tk, which works fine. I suppose this will be the
supported way in ocaml for some time.

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