[Kde-bindings] Using smoke with ffi to C

Luca Fascione lukes at wetafx.co.nz
Mon Oct 9 21:39:03 UTC 2006


Paulo,
I've done this before with Tcl, which has a C API.

The way you do it is that you do the language binding in C++, using your 
API in C, and Qt/Smoke parts in C++. The problem is that your target 
language needs object oriented support to be able to subclass the Qt 
objects...

Luca

Paulo J. Matos wrote:
> Hi all,
>
> How can I use smoke to create bindings for Qt/KDE if the language ffi
> I'm using only accesses C correctly?
>
> The example
> http://cablemodem.fibertel.com.ar/lateral/weblog/2005/12/16.html
>
> uses C++.
> I've also downloaded QtRuby but this one was just to see if it would
> clarify how smoke works... but still since I don't understand ruby I
> was not really able to understand what architecture they are using to
> create the bindings. Correct me if I'm wrong: In QtRuby they create a
> C++ extension to the Ruby compiler to call smoke and then use it in
> ruby to create the bindings. Is it?
>
> Regards,
>
>   

-- 
Luca Fascione
Pipeline Engineer - Weta Digital

+644 380 5951 (x5951) / +64 21 0764 862




More information about the Kde-bindings mailing list