Question for LCB FFI workshop attendees at upcoming conference
lists at mangomultimedia.com
Fri May 10 10:18:38 EDT 2019
On Tue, May 7, 2019 at 12:14 PM Paul Dupuis via use-livecode <
use-livecode at lists.runrev.com> wrote:
> On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:
> > This is for anyone who plans on attending my workshop on using FFI in LCB
> > at the conference. Is there any code (a macOS Framework, Windows API,
> > dylib, etc.) that is written in Objective-C or that has a C wrapper that
> > you are interested in wrapping with LCB in order to make it available to
> > LiveCode?
> > If so, let me know in a response to this thread and I can take a look at
> > before the workshop to see if I can include it.
> I would love to see a sample LCB wrapper for PocketSphinx!
Thanks for the suggestion Paul. This ended up being a really good example
to work on.
I was hoping to just grab the precompiled DLL for it but the downloadable
version has a bug in it and would just exit whenever I tried to use it.
With Mark Waddingham's help (a lot of it) I now have a basic version
working on both macOS and Windows. Even the macOS version required some
interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
only load the dylibs in the extension's code folder. Wrapping the code was
also an educational experience and has a number of teaching points that I
will bring up in the workshop.
For those of you who offered up other suggestions - I took a look at the
pages you sent but I didn't see any obvious C interfaces and they also look
like much more involved projects. FFI will not work with C++ right now.
More information about the Use-livecode