caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] oasis and loading a pre-build shared library at runtime
@ 2011-01-19 13:04 Joel Reymont
  2011-01-19 14:05 ` [Caml-list] " Joel Reymont
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Reymont @ 2011-01-19 13:04 UTC (permalink / raw)
  To: caml-list

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?
 
	Thanks, Joel

---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont







^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Re: oasis and loading a pre-build shared library at runtime
  2011-01-19 13:04 [Caml-list] oasis and loading a pre-build shared library at runtime Joel Reymont
@ 2011-01-19 14:05 ` Joel Reymont
  2011-01-19 14:32   ` Sylvain Le Gall
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Reymont @ 2011-01-19 14:05 UTC (permalink / raw)
  To: caml-list

The answer seems to be DataFiles.

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?

---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont







^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Re: oasis and loading a pre-build shared library at runtime
  2011-01-19 14:05 ` [Caml-list] " Joel Reymont
@ 2011-01-19 14:32   ` Sylvain Le Gall
  0 siblings, 0 replies; 3+ messages in thread
From: Sylvain Le Gall @ 2011-01-19 14:32 UTC (permalink / raw)
  To: caml-list

Hello,

On 19-01-2011, Joel Reymont <joelr1@gmail.com> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-19 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 13:04 [Caml-list] oasis and loading a pre-build shared library at runtime Joel Reymont
2011-01-19 14:05 ` [Caml-list] " Joel Reymont
2011-01-19 14:32   ` Sylvain Le Gall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).