[Kde-bindings] Where is Smoke (for Qt4)?

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue Sep 13 08:12:41 UTC 2005


On Monday 12 September 2005 19:27, Eric Jardim wrote:
> Hi,
>
> How can I get Smoke for Qt4? If QtRuby is using it, how are you generating
> the library? Do you have a C++ parser?
It's in the KDE svn under trunk/KDE/kdebindings. The parser is in 
kdebindings/kalyptus, but it is written in perl and a bit 'hacky', so it 
should really be replaced with something else for KDE4 to be more elegant. 
The smoke library is built in kdebindings/smoke/qt, type 'make' in there 
after you have configured kdebindings, then 'make install' as root.

I needed to copy the admin directory from the trunk version of kdelibs, as the 
one in kdebindings was looking for Qt 3.x instead of Qt 4.x (maybe that was 
because I didn't check out kdebindings correctly, I'm not sure). You will 
need to manually install the private header qwidgetitemdata_p.h, as Smoke 
won't build without it.

> I want to try it with Python.
Yes, that would be interesting. You will need to look in the 
kdebindings/qtruby project - see the source qtruby/rubylib/qtruby/Qt.cpp, 
handlers.cpp and the other .cpp files in that directory. It depends on the 
language having a 'catch-all' method, like method_missing() for ruby or 
autoload for perl. Is it called __attr__ for python - I can't remember?

-- Richard



More information about the Kde-bindings mailing list