Thanks- That looks like it was just the ticket, and the answer to a lot of the other questions I had piling up. <br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 2:03 PM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The ffi has a directory of examples:<br>
<br>
<a href="https://github.com/plt/racket/tree/master/collects/ffi/examples" target="_blank">https://github.com/plt/racket/tree/master/collects/ffi/examples</a><br>
<br>
and there are many on PLaneT<br>
<br>
Jay<br>
<br>
2011/2/7 Ben Dean <<a href="mailto:benjamin.dean@aya.yale.edu">benjamin.dean@aya.yale.edu</a>>:<br>
<div><div></div><div class="h5">> I'm looking to put some Racket wrappers around bits of the OpenCV C api, but<br>
> I'm having a hard getting started. I've looked through the ffi/unsafe<br>
> documentation several times, but something isn't clicking-- I think I need<br>
> to peer at some examples. If anyone has a good example or two of calling C<br>
> code from Racket, I'd be much obliged.<br>
> In detail, what I imagine is going to happen is that I will be accessing<br>
> some (shared?) object files, created as part of the OpenCV build, by calling<br>
> (define function-name (get-ffi-obj function-name (ffi-lib lib-name)<br>
> format)...)<br>
> I'm not clear, however, on what the particular object files I'm looking up<br>
> with ffi-lib. I also am unclear about the convention for the function-name<br>
> parameter to get-ffi-obj. Is it as simple as a string of the the name that<br>
> the C api is exposing?<br>
> I hope I've revealed my ignorance appropriately-- if you noticed any other<br>
> misconceptions or egregious gaps, please do let me know!<br>
> ben<br>
</div></div>> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</font></blockquote></div><br>