From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA32014; Fri, 12 Jul 2002 18:41:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA32020 for ; Fri, 12 Jul 2002 18:41:17 +0200 (MET DST) Received: from kraid.nerim.net (kraid.nerim.net [62.4.16.95]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6CGfGf09868 for ; Fri, 12 Jul 2002 18:41:16 +0200 (MET DST) Received: from alan-schm1p.inria.fr (aboukir-101-1-10-alanschmitt.adsl.nerim.net [62.212.98.49]) by kraid.nerim.net (Postfix) with ESMTP id 14E8941A51; Fri, 12 Jul 2002 18:34:55 +0200 (CEST) Received: by alan-schm1p.inria.fr (Postfix, from userid 501) id 4AE3042C3; Fri, 12 Jul 2002 18:40:11 +0200 (CEST) Date: Fri, 12 Jul 2002 18:40:11 +0200 From: Alan Schmitt To: "Kontra, Gergely" Cc: caml-list@inria.fr Subject: Re: [Caml-list] windows + gtk Message-ID: <20020712164011.GH3235@alan-schm1p> Mail-Followup-To: "Kontra, Gergely" , caml-list@inria.fr References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Editor: Vim http://vim.sf.net/ X-Info: http://pauillac.inria.fr/~aschmitt/ X-Operating-System: Linux/2.4.18-6mdk (i686) X-Uptime: 6:22pm up 3:15, 1 user, load average: 2.21, 1.47, 0.81 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk * 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 following: - 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 iirc. - 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: http://www.gimp.org/~tml/gimp/win32/downloads.html 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 gcc. - 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 http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html (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 dll). - you're ready to code and use lablgtk ... if you need inspiration, there are examples in the distrib, or at http://caml.inria.fr/humps/lablgtk.html 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, Alan -- 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