Languages/zh-cn: Difference between revisions
(Created page with "==稳定的和成熟的==") |
m (Ochurlaud moved page Development/Languages/zh-cn to Languages/zh-cn) |
||
(15 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
==稳定的和成熟的== | ==稳定的和成熟的== | ||
以下这些语言的支持已经是成熟的,并且被充分地维护,完全适用于应用程序的开发: | |||
* [[Development/Languages/C++ |C++]] | * [[Development/Languages/C++ |C++]] | ||
Line 13: | Line 13: | ||
* [[Development/Languages/Perl|Perl]] | * [[Development/Languages/Perl|Perl]] | ||
== | ==正在开发中的== | ||
以下这些语言的支持依然正在开发中: | |||
* [[Development/Languages/PHP-Qt|PHP]] | * [[Development/Languages/PHP-Qt|PHP]] | ||
Line 21: | Line 21: | ||
* [[Development/Languages/KBasic|KBasic]] - BASIC language similar to VB | * [[Development/Languages/KBasic|KBasic]] - BASIC language similar to VB | ||
== | ==语言绑定技术与内嵌语言== | ||
* [[Development/Languages/Smoke|Smoke]] - | * [[Development/Languages/Smoke|Smoke]] - 为用于创建诸如Ruby、C#和PHP之类的多语言绑定提供基础。 | ||
* [[Development/Languages/Kross|Kross]] - | * [[Development/Languages/Kross|Kross]] - 为C++应用程序提供内嵌脚本。多语言,诸如Python、Ruby、JavaScript、QtScript、Falcon和Java已经被支持。 | ||
* [[Development/Languages/QtScript|QtScript]] - | * [[Development/Languages/QtScript|QtScript]] - QtScript绑定构建器。 | ||
* [[Development/Languages/SIP|SIP]] - | * [[Development/Languages/SIP|SIP]] - 用于产生Python绑定。 | ||
== | ==Qt3/KDE3的支持== | ||
* [[Development/Languages/Perl|Perl]] | * [[Development/Languages/Perl|Perl]] | ||
Line 38: | Line 38: | ||
* [[Development/Languages/Tools|KDE interaction tools]] (Shell) | * [[Development/Languages/Tools|KDE interaction tools]] (Shell) | ||
== | ==编译当前 git master== | ||
推荐在 ~/.gitconfig 中加入: | |||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
[url "git://anongit.kde.org/"] | [url "git://anongit.kde.org/"] | ||
Line 47: | Line 47: | ||
pushInsteadOf = kde: | pushInsteadOf = kde: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
以从 anongit 服务器拉取并提交到主 git 服务器。 | |||
克隆源的命令 | |||
<syntaxhighlight lang="bash">git clone kde:smokegen | <syntaxhighlight lang="bash">git clone kde:smokegen | ||
git clone kde:smokeqt | git clone kde:smokeqt | ||
Line 62: | Line 62: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
编译和正常一样 | |||
<syntaxhighlight lang="bash">cmake <src-dir> -DCMAKE_INSTALL_PREFIX=/usr | <syntaxhighlight lang="bash">cmake <src-dir> -DCMAKE_INSTALL_PREFIX=/usr | ||
make | make | ||
make install</syntaxhighlight> | make install</syntaxhighlight> | ||
先要编译 Smokegen,然后是 smokeqt 和 smokekde。然后编译各个语言的绑定。注意 KDE 绑定部分总是依赖于 QT 绑定,所以需要先编译 QT 相关代码。 | |||
kross-interpreters | kross-interpreters 包含 kross 使用的语言绑定。它们不依赖于任何上面内容。 |
Latest revision as of 17:39, 10 March 2016
KDE支持多种的编程语言用于KDE 4的开发。
稳定的和成熟的
以下这些语言的支持已经是成熟的,并且被充分地维护,完全适用于应用程序的开发:
正在开发中的
以下这些语言的支持依然正在开发中:
语言绑定技术与内嵌语言
- Smoke - 为用于创建诸如Ruby、C#和PHP之类的多语言绑定提供基础。
- Kross - 为C++应用程序提供内嵌脚本。多语言,诸如Python、Ruby、JavaScript、QtScript、Falcon和Java已经被支持。
- QtScript - QtScript绑定构建器。
- SIP - 用于产生Python绑定。
Qt3/KDE3的支持
编译当前 git master
推荐在 ~/.gitconfig 中加入:
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "ssh://[email protected]/"]
pushInsteadOf = kde:
以从 anongit 服务器拉取并提交到主 git 服务器。
克隆源的命令
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
编译和正常一样
cmake <src-dir> -DCMAKE_INSTALL_PREFIX=/usr
make
make install
先要编译 Smokegen,然后是 smokeqt 和 smokekde。然后编译各个语言的绑定。注意 KDE 绑定部分总是依赖于 QT 绑定,所以需要先编译 QT 相关代码。
kross-interpreters 包含 kross 使用的语言绑定。它们不依赖于任何上面内容。