[squeak-dev] Re: Questions regarding FFI

kemal asad-syed kasadsyed at gmail.com
Sun May 17 15:42:19 UTC 2009


 <squeak-dev at lists.squeakfoundation.org><http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-dev>
>
> if you are using windows for a function to be used with FFI ou have to
> export it adding "__declspec( dllexport )" in front of all the exported
> functions in your C source.  if you want to get the inline functions of the
> openCV dll , you will have to go to the source of that dll and then export,
> wrapping a open source  dll in a new dll does not make sense you can change
> the original sources.
>
good luck.
  Kemal
> Depanage informatique http://je-resous.fr/





>
>
> I'm working in windows. If you are right then I think the only way to
> access
> the inline functions from Squeak (without recompiling the OpenCV dlls) is
> to
> compile a new dll which calls the inline functions and access this new dll
> from squeak. I will try that. Thanks!
>
>
> >
> > I don't have much of answers for you  :
> > but for
> >
> > >* 3)      Some OpenCV functions are declared as inline functions. I
> haven’t*>* been able to access those functions from Squeak. Is this an
> expected*>* behavior?*
> > for FFI to work you have to export your functions in the shared library,
> so
> > they can be called in your shared library, and this is process is
> platform
> > dependent. beleive you are compiling with gcc on gnu/Linux please confirm
> if
> > not please let  me know the platform .
> >
> >  I don't see why inline function will be exported by default they are
> "just"
> > used in the preprocess and at compilation time they are not regular
> > functions. So what you found should be usual behavior.
> >
> > good luck.
> > Kemal
> > Depanage informatiquehttp://je-resous.fr/
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090515/45ec878f/attachment-0001.htm
>
> ------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090517/4d2580c2/attachment.htm


More information about the Squeak-dev mailing list