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] windows + gtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-12 (16:41)
From: Alan Schmitt <alan.schmitt@i...>
Subject: Re: [Caml-list] windows + gtk
* Kontra, Gergely (kgergely@mlabdial.hit.bme.hu) wrote:
> Hi!
> I'm new to (o)caml, and just wonder: is it possible to make windows exe
> file, which uses gtk?
> Is gtk available for windows anyway?
> thx in advance

Yes. I've done a small app for my wife (sort of a timesheet program) in
ocaml that runs in windows. The best way to do this is doing the
- wait until ocaml 3.05 (you don't want to patch it, and 3.05 should be
  perfect for your need)
- while waiting, fetch cygwin. You'll mainly need sed, make, and gcc
- get the development tarball for windows gtk (old version, no the 2.0
  one ... the 1.3 should be fine). Development means the include files,
  librairies and dll are there. You can get it at:
  there are many packages to download and unzip. 
  Even though they say these packages are not to be used with the cygwin
  environment, it is fine since we'll use the correct flag with cygwin
- at this time, ocaml 3.05 is out (or you get it from cvs ... which you
  may do easily if you have chosen it when installing cygwin), you
  simply get it, run configure for 'mingw32' (I'm not sure of the exact
  option here), and compile it.
- you may now get lablgtk
  (don't forget to say that use use gcc -mnocygwin (or -mno-cygwin, I
  don't remember) when commpiling it, so as not to depend on the cygwin
- you're ready to code and use lablgtk ... if you need inspiration,
  there are examples in the distrib, or at

Now you're all set. If you have not yet chosen a text editor for your
programming needs, there is a hint at a good one in the headers of this
message (and it's available in cygwin too, sorry I couldn't resist ;0)

Hope this helps,

The hacker: someone who figured things out and made something cool happen.
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