From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p0JEWtcr026824 for ; Wed, 19 Jan 2011 15:32:55 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai4GAK6ENk1QW+UMgWdsb2JhbACWLY4aFQEBFiIkwD+FUASLHoYd X-IronPort-AV: E=Sophos;i="4.60,344,1291590000"; d="scan'208";a="87423747" Received: from lo.gmane.org ([80.91.229.12]) by mail2-smtp-roc.national.inria.fr with ESMTP; 19 Jan 2011 15:32:50 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PfZ5d-0008IX-TR for caml-list@inria.fr; Wed, 19 Jan 2011 15:32:49 +0100 Received: from avelizy-155-1-70-210.w86-217.abo.wanadoo.fr ([86.217.109.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Jan 2011 15:32:49 +0100 Received: from sylvain by avelizy-155-1-70-210.w86-217.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Jan 2011 15:32:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Wed, 19 Jan 2011 14:32:38 +0000 (UTC) Message-ID: References: <74905BF3-E338-40A5-B9A8-3FDB5AD816D7@gmail.com> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-70-210.w86-217.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] Re: oasis and loading a pre-build shared library at runtime Hello, On 19-01-2011, Joel Reymont wrote: > The answer seems to be DataFiles. Good guess ;-) N.B. if you wish to control where the bundle is installed you can define it like this: DataFiles: bundle ($datadir/where_the_bundle_should_go) > > On Jan 19, 2011, at 1:04 PM, Joel Reymont wrote: > >> I'm trying use OCaml to wrap the C API for my Beagle 480 USB analyzer. >> >> The API comes as a C file, header file and a pre-built "bundle" on the Mac. >> >> I cannot link against the bundle so the bundle needs to be loaded >> into the OCaml executable built with Oasis. I have C code that loads >> the bundle but how do I tell Oasis to place the bundle together with >> the executable during installation? > Cheers, Sylvain Le Gall -- My company: http://www.ocamlcore.com Linkedin: http://fr.linkedin.com/in/sylvainlegall Start an OCaml project here: http://forge.ocamlcore.org OCaml blogs: http://planet.ocamlcore.org