I have a minimal program using the Graphics module that just does open Graphics;; open_graph "";;
, and I'm building it with ocamlbuild -package graphics test.native
. The compilation succeeds, but when I execute the .native file, nothing happens and the program just hangs until I interrupt it.
I'm running OS X 10.10. I've installed xquartz and ocaml (using --with-x11
) using Homebrew and restarted several times. I've tried running this minimal graphics program as well with the same results. I've tried starting the xquartz application before executing, also with the same results. I'm sure that the graphics package installed correctly -- running 'ls ocamlc -where
/graphics*`' shows the expected graphics.* files.
I'd really appreciate any help with this!