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 NAA30534; Thu, 18 Oct 2001 13:53:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA30430 for ; Thu, 18 Oct 2001 13:53:06 +0200 (MET DST) Received: from mail.cs.uu.nl (sunset.cs.uu.nl [131.211.80.32]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f9IBr6126985; Thu, 18 Oct 2001 13:53:06 +0200 (MET DST) Received: from silvester.cs.uu.nl (silvester.cs.uu.nl [131.211.80.119]) by mail.cs.uu.nl (Postfix) with SMTP id 095CB451C; Thu, 18 Oct 2001 13:53:01 +0200 (MET DST) Received: by silvester.cs.uu.nl (sSMTP sendmail emulation); Thu, 18 Oct 2001 13:53:01 +0200 Date: Thu, 18 Oct 2001 13:53:01 +0200 From: Frank Atanassow To: Xavier Leroy Cc: fred@ontosys.com, caml-list@inria.fr Subject: Re: [Caml-list] newbie - running graphics applications in WinNT Message-ID: <20011018135301.A12962@cs.uu.nl> References: <20011013174122.A6359@ontosys.com> <20011017211201.C17973@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011017211201.C17973@pauillac.inria.fr>; from xavier.leroy@inria.fr on Wed, Oct 17, 2001 at 09:12:01PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Xavier Leroy wrote (on 17-10-01 21:12 +0200): > > The "readme.win" file says that '"graph" works only under the toplevel > > application'. Does that mean I can't build an 'ocamlgraph' at all on > > WinNT? > > Yes. Currently, the graphics library is not available from > stand-alone Win32 executables, only from the toplevel GUI. > > > I really want to use ocaml to create some standalone graphical > > applications that can run on Win32 machines; is that possible? > > Not yet, but it will be soon. A proper standalone implementation of > the Graphics library is in progress (by Jacob Navia) and should be > available in the next OCaml release. I recently built Ocaml 3.03 ALPHA under the latest Cygwin on Win2k, including XFree86. The graphics library compiles without any problem, but if you try to use it it, it will fail with an exception because graphics.ml does not recognize Cygwin as a Unix-type system. This is easily fixed by patching a definition in graphics.ml to read: let (open_graph, close_graph) = match Sys.os_type with | "Unix" | "Cywgin" -> (unix_open_graph, unix_close_graph) | ... After that, I was able to create and use a graphics toplevel, and also to make standalone (both bytecode and native) applications without any problems. Of course, the graphics window shows up in the X server's window. -- Frank Atanassow, Information & Computing Sciences, Utrecht University Padualaan 14, PO Box 80.089, 3508 TB Utrecht, Netherlands Tel +31 (030) 253-3261 Fax +31 (030) 251-379 ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr