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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 13565BBAF for ; Tue, 21 Dec 2010 19:42:20 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AssAAD+EEE3RVdg0kGdsb2JhbACVP45CCBYBAQEJCQwHEQQgpmqaaIVJBIRlhh0 X-IronPort-AV: E=Sophos;i="4.60,208,1291590000"; d="scan'208";a="83318601" Received: from mail-qw0-f52.google.com ([209.85.216.52]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Dec 2010 19:42:11 +0100 Received: by qwi4 with SMTP id 4so4024901qwi.39 for ; Tue, 21 Dec 2010 10:42:10 -0800 (PST) Received: by 10.224.67.75 with SMTP id q11mr5648718qai.3.1292956930438; Tue, 21 Dec 2010 10:42:10 -0800 (PST) Received: from osx.som.umaryland.edu ([134.192.132.114]) by mx.google.com with ESMTPS id q12sm3124441qcu.30.2010.12.21.10.42.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 10:42:07 -0800 (PST) Cc: caml-list@yquem.inria.fr Message-Id: <5B472F92-1A75-4451-9750-434385F32A55@ezabel.com> From: orbitz@ezabel.com To: Michael Ekstrand In-Reply-To: <4D1018B5.1070800@elehack.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Caml-list] Lwt and OCamlMakefile Date: Tue, 21 Dec 2010 13:42:06 -0500 References: <2D355E1A-E205-4FD6-82E9-A50E949C6B81@ezabel.com> <3746A668-E963-40AE-A441-B01517F1E13E@ezabel.com> <4D1018B5.1070800@elehack.net> X-Mailer: Apple Mail (2.936) X-Spam: no; 0.00; camlp:01 cmo:01 dynlink:01 camlp:01 cmo:01 ocamlfind:01 ocamlfind:01 cmo':01 -predicates:01 syntax:01 -package:01 syntax:01 makefile:01 beginner's:01 ocaml:01 Great, that looks like it's working. Many thanks. On Dec 20, 2010, at 10:02 PM, Michael Ekstrand wrote: > On 12/20/2010 08:36 PM, orbitz@ezabel.com wrote: >> Thanks, I forgot to mention that I am setting that: >> >> (*pp camlp4o pa_lwt.cmo *) >> >> (that is where it is coming from in my paste) >> >> But it is still failing at the Dynlink. > > The thing is that camlp4o doesn't know where to find pa_lwt.cmo. This > is what ocamlfind helps with. Unfortunately, OCamlMakefile's > ocamlfind > integration is incomplete when it comes to preprocessors. > > On some systems, you may be able do 'camlp4o -I +lwt pa_lwt.cmo', but > that isn't portable (it depends on lwt being installed in the std-lib > directory). > > So, the real solution is to use a shell script which wraps 'camlp4o' > and > looks up the appropriate package lines with ocamlfind. It will do > something like > > camlp4 $(ocamlfind -predicates preprocesor,syntax -syntax camlp4o > -package lwt.syntax) > > but I do not remember the exact details. I do remember that I > defined a > PP environment variable in my Makefile with the path to the script, > so I > could do > > (*pp $PP lwt.syntax *) > > and it would expand to wherever the shell script was (I had multiple > directories in my source tree when I used OCamlMakefile). > > - Michael > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs