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 UAA30545; Sun, 1 Aug 2004 20:24:37 +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 UAA29577 for ; Sun, 1 Aug 2004 20:24:36 +0200 (MET DST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.97]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i71IOYEV030983 for ; Sun, 1 Aug 2004 20:24:35 +0200 Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i71IOYJd009460 for ; Sun, 1 Aug 2004 11:24:34 -0700 (PDT) Received: from [192.168.1.102] (clt77-063.carolina.rr.com [24.93.77.63]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id i71IOGwU005203 for ; Sun, 1 Aug 2004 11:24:33 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v618) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: caml-list@inria.fr From: Michael Benfield Subject: [Caml-list] graphics on Mac OS X Date: Sun, 1 Aug 2004 14:24:14 -0400 X-Mailer: Apple Mail (2.618) X-Miltered: at nez-perce with ID 410D3562.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ocamlmktop:01 mytop:01 mytop:01 compiler:01 compiler:01 ocaml:01 ocaml:01 caml:01 bytecode:01 compile:02 exception:02 exception:02 native:02 module:03 cma:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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