caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] labltk and MacOS X
@ 2002-05-28 15:00 Agustín Valverde Ramos
  2002-05-29  3:22 ` Jacques Garrigue
  0 siblings, 1 reply; 3+ messages in thread
From: Agustín Valverde Ramos @ 2002-05-28 15:00 UTC (permalink / raw)
  To: caml-list

Hi

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?

If somebody has some experience with ocaml and macosx, I will be
happy reading them.

Thanks


--
*******************************
*  Agustín Valverde Ramos
*  Dept. Matemática Aplicada
*  E.T.S. de Ingeniería Informática
*  Universidad de Málaga
*  Campus de Teatinos
*  29071 Málaga (España)
*  ---------------------------------
*  Tel:  (+34)  952132878
*  Fax: (+34)  952132746
*  mailto:a_valverde@ctima.uma.es
*  http://www.AgustinValverde.com
*  ---------------------------------
*  Soy miembro de GIMAC:
*  "Grupo de Investigación
*  en Matemática Aplicada para la Computación"
*  http://batllo.informatica.uma.es/aciego/gimac-home.html
*
*  I am member of GIMAC:
*  "Research Group in Applied Mathematics for
*  Computer Science"
*  http://batllo.informatica.uma.es/aciego/gimac-home-eng.html
*******************************
-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] labltk and MacOS X
  2002-05-28 15:00 [Caml-list] labltk and MacOS X Agustín Valverde Ramos
@ 2002-05-29  3:22 ` Jacques Garrigue
  2002-05-29 12:03   ` Agustín Valverde Ramos
  0 siblings, 1 reply; 3+ messages in thread
From: Jacques Garrigue @ 2002-05-29  3:22 UTC (permalink / raw)
  To: a_valverde; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] labltk and MacOS X
  2002-05-29  3:22 ` Jacques Garrigue
@ 2002-05-29 12:03   ` Agustín Valverde Ramos
  0 siblings, 0 replies; 3+ messages in thread
From: Agustín Valverde Ramos @ 2002-05-29 12:03 UTC (permalink / raw)
  To: Jacques Garrigue

Jacques Garrigue wrote:

>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.

Finally, I have get an advance in the construction of the labltk.
But, I obtain an error when the compiler search the header  Xlib.h.
It is possible that you have this header from the X11 distribution
and maybe it doesn't work properly in macosx. I am looking for
information in tcl/tk sites and I haver read that a shell script is
missing in the TclTk-8.4a4 distribution, tkConfig.sh; perhaps this
script fix the problem with the header. Have you got this script, or
are you working with the headers from X11 distribution?


--
*******************************
*  Agustín Valverde Ramos
*  Dept. Matemática Aplicada
*  E.T.S. de Ingeniería Informática
*  Universidad de Málaga
*  Campus de Teatinos
*  29071 Málaga (España)
*  ---------------------------------
*  Tel:  (+34)  952132878
*  Fax: (+34)  952132746
*  mailto:a_valverde@ctima.uma.es
*  http://www.AgustinValverde.com
*  ---------------------------------
*  Soy miembro de GIMAC:
*  "Grupo de Investigación
*  en Matemática Aplicada para la Computación"
*  http://batllo.informatica.uma.es/aciego/gimac-home.html
*
*  I am member of GIMAC:
*  "Research Group in Applied Mathematics for
*  Computer Science"
*  http://batllo.informatica.uma.es/aciego/gimac-home-eng.html
*******************************
-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-29 12:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-28 15:00 [Caml-list] labltk and MacOS X Agustín Valverde Ramos
2002-05-29  3:22 ` Jacques Garrigue
2002-05-29 12:03   ` Agustín Valverde Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).