Difference between revisions of "Development/Languages"

Jump to: navigation, search
(Add Perl as having "stable and mature" bindings)
m (Text replace - "<code bash>" to "<syntaxhighlight lang="bash">")
Line 47: Line 47:
  
 
Clone the repositories with
 
Clone the repositories with
<code bash>git clone kde:smokegen
+
<syntaxhighlight lang="bash">git clone kde:smokegen
 
git clone kde:smokeqt
 
git clone kde:smokeqt
 
git clone kde:smokekde
 
git clone kde:smokekde
Line 60: Line 60:
  
 
Building happens as usual with
 
Building happens as usual with
<code bash>cmake <src-dir> -DCMAKE_INSTALL_PREFIX=/usr
+
<syntaxhighlight lang="bash">cmake <src-dir> -DCMAKE_INSTALL_PREFIX=/usr
 
make
 
make
 
make install</code>
 
make install</code>

Revision as of 21:38, 29 June 2011


Contents

Development/Languages


KDE supports several programming languages for KDE 4 development.

Stable and Mature

Support for these languages is mature, fully maintained and suitable for application development:

In Development

Support for these languages is still in development:

Bindings Technologies and Embedding

  • Smoke - Provides infrastructure which is used for creating bindings for multiple languages such as Ruby, C# and PHP.
  • Kross - Provides embedded scripting for C++ applications. Multiple languages such as Python, Ruby, JavaScript, QtScript, Falcon and Java are supported.
  • QtScript - The QtScript binding generator.
  • SIP - Used to generate the bindings for Python.

Support for Qt3 / KDE3

Building current git master

It is recommended to have the following in ~/.gitconfig: [url "git://anongit.kde.org/"]

   insteadOf = kde:

[url "ssh://git@git.kde.org/"]

   pushInsteadOf = kde:

to pull from the anongit servers, but push to the main git server.

Clone the repositories with

git clone kde:smokegen
git clone kde:smokeqt
git clone kde:smokekde
git clone kde:qtruby
git clone kde:korundum
git clone kde:qyoto
git clone kde:kimono
git clone kde:perlqt
git clone kde:perlkde
git clone kde:kross-interpreters
</code>
 
Building happens as usual with
<syntaxhighlight lang="bash">cmake <src-dir> -DCMAKE_INSTALL_PREFIX=/usr
make
make install</code>
 
Smokegen has to be built first, then smokeqt and smokekde. After that you can then build the various language bindings. Note that the KDE bindings part always depends on the Qt part - so you have to build this one first.
 
kross-interpreters contains the language plugins for kross. They do not depend on any of the above.
 
__NOTOC__

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal