Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2004-08-01 (18:24)
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.


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


Mike Benfield

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: