Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] graphics on Mac OS X
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Benfield <leftfist@m...>
Subject: [Caml-list] graphics on Mac OS X
I have compiled OCaml 3.08 on Mac OS X. I have X11 installed, including 
the SDK with the header files and whatnot. When I configured the OCaml 
compilation, it did find my X installation and said it would be using 
it and installing the graphics module.

But:

$ ocamlmktop -o mytop graphics.cma
$ ./mytop
         Objective Caml version 3.08.0

# Graphics.open_graph "";;
Exception: Graphics.Graphic_failure "Cannot open display ".

I get the same exception when I try to put it in a file and compile and 
run it, whether compiled with the bytecode compiler or the native code 
compiler. So I know this isn't much to go on but I really am not sure 
what to do from here to get the Graphics to work so if anyone could 
point me in the right direction I would appreciate it.

Thanks.

Mike Benfield

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