Re: [cffi-devel] help with load-foreign-library

2010-07-01 Thread Stelian Ionescu
On Thu, 2010-07-01 at 01:11 -0400, Daniel Herring wrote: > On Thu, 1 Jul 2010, Stelian Ionescu wrote: > >> Questions: > >> 1) Am I doing it all wrong or can one do like this? > >> 2) Is there a smart way to use the .so file to get the correct name of > >> functions? > > > > That library seems to be

Re: [cffi-devel] help with load-foreign-library

2010-06-30 Thread Daniel Herring
On Thu, 1 Jul 2010, Stelian Ionescu wrote: >> Questions: >> 1) Am I doing it all wrong or can one do like this? >> 2) Is there a smart way to use the .so file to get the correct name of >> functions? > > That library seems to be C++ or a C library compiled with the C++ > compiler and it doesn't exp

Re: [cffi-devel] help with load-foreign-library

2010-06-30 Thread Frank Goenninger
Hi - not really knowing libcv but just staring at the nm output: There are CvCaptureCAM functions bjt no cvCaptureFromCAM in the library ... Cheers Frank Am 30.06.2010 um 18:37 schrieb N J: > Hi, > > I have a question about how to find a function in the opencv library. > > I tried this: >

Re: [cffi-devel] help with load-foreign-library

2010-06-30 Thread N J
Thanks for the quick help. I think I got some insight into the problem. Frank is right, there is no cvCaputerFromCam anymore in the API. And as Stelian noted, one probably need to acount for the differences between C and C++. However,, I finally extracted a nice list of the functions available wi

Re: [cffi-devel] help with load-foreign-library

2010-06-30 Thread Stelian Ionescu
On Wed, 2010-06-30 at 18:37 +0200, N J wrote: > Hi, > > I have a question about how to find a function in the opencv library. > > I tried this: > > (require :cffi) > > ;; load shared libs > (cffi:load-foreign-library "libcv.so") > (cffi:load-foreign-library "libhighgui.so") > > ;; define the f