From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B2DA3BB9A for ; Thu, 6 Oct 2005 23:04:11 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j96L4Bbs001614 for ; Thu, 6 Oct 2005 23:04:11 +0200 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 XAA21319 for ; Thu, 6 Oct 2005 23:04:10 +0200 (MET DST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j96L4A6R019168 for ; Thu, 6 Oct 2005 23:04:10 +0200 Received: by nproxy.gmail.com with SMTP id a4so218016nfc for ; Thu, 06 Oct 2005 14:04:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lu6wpTBerHas89HX4NMlk4sNQ0yRMl31CHrNXeKBIye7p6ln4jMNhvFr6/onQtMjOxdViD2vxozch7ZMUvRWedp4/IE+Kxie4biDeH/Q+4XApZJuNTOlAvX13IN2sDN5PnMJq+34Cc2rM4W+FTvsyplwjIeMFHC7//q3t8Badv0= Received: by 10.48.142.15 with SMTP id p15mr141585nfd; Thu, 06 Oct 2005 14:04:09 -0700 (PDT) Received: by 10.48.49.3 with HTTP; Thu, 6 Oct 2005 14:04:10 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2005 22:04:10 +0100 From: "Jeremy O'Donoghue" Reply-To: "Jeremy O'Donoghue" To: Rasool Karimi Subject: Re: [Caml-list] where is GMain and ... Cc: caml-list@inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at concorde with ID 4345914B.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4345914A.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gmain:01 compilation:01 gmain:01 cmx:01 cmx:01 gbutton:01 lablgtk:01 ocaml:01 lablgtk:01 ocaml:01 gtk:01 widget:01 wwwfun:01 olabl:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Hi Karimi, On 06/10/05, Rasool Karimi wrote: > My previous problem is solved. I had forgotten to install "asm" program!. > Now I have another problem. When I Compile my program, at end of > compilation, it reports an error that can not find following files: > GMain referenced from term.cmx > Winfo referenced from functions.cmx > GBin referenced from term.cmx > GButton referenced from term.cmx > GtkText referenced from term.cmx > Glib referenced from term.cmx [snip] This looks as though it is Lablgtk2, which is probably the bset supported Ocaml GUI at the moment (although it may be the older Lablgtk - the documentation of the program you're trying to compile should make this clear). Your first message suggests that you are compiling for Windows, which means that you're in for a tough ride. Lablgtk2 is an Ocaml binding for Gtk 2.x, which is a popular Linux/Unix widget set. There is a Windows port, but it is quite painful to install (I should know, I did it a couple of weeks back...) Go to http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html and download lablgtk-2.4.0.tar.gz. Note that you cannot use the Windows binary package if you want to compile with ocamlopt. Unzip and untar, and read README and (especially) README.win32 carefully. Go to http://www.gimp.org/~tml/gimp/win32/downloads.html and download the required binary installer packages (there are a lot of them). You will need both runtime and developer files. Install these somewhere sensible. I would strongly recommend that you ensure that you don't have any spaces in the directory path (I used c:\libs\gtk2 - definitely avoid c:\Program Files\...), and ensure that your path environment variable points to the installed Gtk+ library components. Now follow the build instructions for Lablgtk2 carefully. I use the word carefully rather often as the install worked perfectly for me, but only after several false starts where I tried to cut corners. If you are building on Linux or another Unix system, it is likely that the Gtk+ libraries are already installed. If they are not, then they should be much easier to get and iinstall than for Windows. Good luck! Jeremy