From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, SPF_NEUTRAL autolearn=disabled version=3.1.3 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 CE258BC50 for ; Tue, 3 Oct 2006 17:03:23 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k93F3NLD010906 for ; Tue, 3 Oct 2006 17:03:23 +0200 Received: by ug-out-1314.google.com with SMTP id o2so609119uge for ; Tue, 03 Oct 2006 08:03:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=QHcOr/ELCppUXCV0GgXoQViH7k0K1IsrDkKdMoweolrP54a/9rOSHVRCtlS7cigJ+GrGIhKgfRcA+Wz+ucpvHhIbLyjWzV46tvHEYWXmmS4wXEuxMPbRRVbxyBexOjMvmYYFUpnLJpN+tgRxQASmhEiNKYf/kILaO2pU4dog0iw= Received: by 10.66.224.3 with SMTP id w3mr3860574ugg; Tue, 03 Oct 2006 08:03:23 -0700 (PDT) Received: from ?192.168.0.5? ( [82.240.255.138]) by mx.gmail.com with ESMTP id b23sm6296109ugd.2006.10.03.08.03.22; Tue, 03 Oct 2006 08:03:22 -0700 (PDT) In-Reply-To: <45226D8E.8040905@univ-savoie.fr> References: <70619F46-FF01-4B4B-8CEA-3DB768CB6640@gmail.com> <45226D8E.8040905@univ-savoie.fr> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <45598B33-A502-466B-830A-B4FC1D93316D@gmail.com> Cc: caml-list@inria.fr Content-Transfer-Encoding: 7bit From: Julien Blond Subject: Re: [Caml-list] Custom linking with MacOSX frameworks? Date: Tue, 3 Oct 2006 17:05:43 +0200 To: Christophe Raffalli X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 45227BBB.000 on concorde : j-chkmail score : X : 0/20 1 X-Miltered: at concorde with ID 45227BBB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; makefile:01 compiler:01 compilation:01 compilation:01 ocamlc:01 -custom:01 -cclib:01 macosx:01 macosx:01 caml-list:01 glut:01 glut:01 linking:02 executable:03 frameworks:05 > I do that for GlSurf and I use Glut ! Cool! I took a look at your Makefile and I found the answer to my question. Actually I didn't think to pass the -framework with the double quotes to the C compiler. So, if this compilation issue does interest somebody, here is the "trick". To "custom link" with MacOSX frameworks, the compilation command must looks like : ocamlc -custom -o -cclib -lobjc - ccopt "-framework " ... Thanks to Cristophe! :-) > The window has an acqua look, but no way to customize the menubar ... Well, I don't use Glut for I prefer the more "customizable" SDL framework. It may work better with it? -- Julien Blond LIP6/Bertin Technologies