From: Frank Atanassow <franka@cs.uu.nl>
To: Xavier Leroy <xavier.leroy@inria.fr>
Cc: fred@ontosys.com, caml-list@inria.fr
Subject: Re: [Caml-list] newbie - running graphics applications in WinNT
Date: Thu, 18 Oct 2001 13:53:01 +0200 [thread overview]
Message-ID: <20011018135301.A12962@cs.uu.nl> (raw)
In-Reply-To: <20011017211201.C17973@pauillac.inria.fr>; from xavier.leroy@inria.fr on Wed, Oct 17, 2001 at 09:12:01PM +0200
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
next prev parent reply other threads:[~2001-10-18 11:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-13 22:41 fred
2001-10-17 19:12 ` Xavier Leroy
2001-10-18 11:53 ` Frank Atanassow [this message]
2001-10-18 13:14 ` Pierre Weis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011018135301.A12962@cs.uu.nl \
--to=franka@cs.uu.nl \
--cc=caml-list@inria.fr \
--cc=fred@ontosys.com \
--cc=xavier.leroy@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox