Difference between revisions of "Archive:Getting Started/Using Project Neon to contribute to KDE (zh CN)"

Jump to: navigation, search
Line 154: Line 154:
  
 
<code bash="bash">
 
<code bash="bash">
sudo aptitude install kde-nightly-kdebase kde-nightly-kdeplasma-addons \
+
sudo aptitude install  
kde-nightly-kdepim kde-nightly-kdeedu kde-nightly-kdenetwork \
+
kde-nightly-kdebase  
kde-nightly-kdeutils kde-nightly-kdegraphics kde-nightly-kdemultimedia
+
kde-nightly-kdeplasma-addons \
 +
kde-nightly-kdepim  
 +
kde-nightly-kdeedu  
 +
kde-nightly-kdenetwork \
 +
kde-nightly-kdeutils  
 +
kde-nightly-kdegraphics  
 +
kde-nightly-kdemultimedia
 
</code>
 
</code>
  

Revision as of 03:23, 25 September 2009


Contents

Getting_Started/Using_Project_Neon_to_contribute_to_KDE


Project Neon is a nightly build of the latest KDE trunk. It is an easy way for new contributors to KDE to get started without having to build the entire KDE-SVN tree and maintain the checkout. Additionally, dependencies are automatically handled and updated. This is suitable for new developers, translators, usability designers, documenters, promoters, bug triagers etc. This process makes the steps detailed on 这里, including changes to your .bashrc unnecessary.

However, for developers, it may at some point become necessary to build more components from SVN as you become more involved in the project. kdesvn-build脚本可以用来构建SVN上整个或是部分的KDE。

需求

Project Neon要求有最新的Kubuntu稳定版。在2009年一月,它是8.10,现在应该是9.10了。以前的Kubuntu就不支持了。可以把Neon移植到其他的发行版中,不过目前好像还没有人对此进行专门维护。OpenSuse 有提供他们自己的 KDE 主干的的周构建。到这里查看使用介绍.

安装 Project Neon

为了使用 Project Neon, 随便你喜欢用什么方法添加如下的 PPA (Personal Package Archive) 地址到你的 sources.list 文件 :

  1. Project neon KDE4 日构建

deb http://ppa.launchpad.net/project-neon/ubuntu jaunty main

随后, 你可以简单的安装任何你想要工作的模块的nightly包。可用的软件包如下:

kde-nightly-kdebase
kde-nightly-kdeplasma-addons
kde-nightly-kdepim
kde-nightly-kdeedu
kde-nightly-kdenetwork
kde-nightly-kdeutils
kde-nightly-kdegraphics
kde-nightly-kdemultimedia

你可以选择安装所有这些软件包或只安装你感兴趣的那份, 取决于你想要用他们做什么。比如你想要安装最新的KDE Workspace(plasma,kwin等),那么安装kde-nightly-kdebase和kde-nightly-kdeplasma-addons获得额外的plasmoid.

sudo aptitude install kde-nightly-kdebase kde-nightly-kdeplasma-addons

如果你只是对另外一个模块的程序开发有兴趣, 你只需要安装那个模块的软件包.

sudo aptitude install kde-nightly-kdepim

那段命令也会安装 kdelibs, kdepimlibs和其他依赖。 In your regular (stable) kde session you can then run the nightly version of your chosen application by using the full path from the command line.

/opt/kde-nightly/bin/kmail

This will correctly use the nightly version of libraries instead of using the stable versions, so no other changes are necessary to your library path etc.

Alternatively, instead of using the full path to the executable, you could add the following to your .bashrc

_STABLE_PATH=$PATH function switchtonightly {

 export PATH=/opt/kde-nightly/bin:$_STABLE_PATH

}

function switchtostable {

 export PATH=$_STABLE_PATH

}

This will allow you to optionally run unstable applications when you choose to in your session.

  1. 运行 kmail 的稳定版本

kmail switchtonightly

  1. 运行 kmail 的nightly版本

kmail

  1. 运行 knode 的nightly版本

knode switchtostable

  1. 运行 kmail 的稳定版本

kmail

Note that settings for applications that you run from project neon do not conflict with your regular application settings and data. .kde-neon/ is used instead of .kde/

用于开发

If you are joining one of the development teams in KDE, you will need a real svn checkout in order to contribute your code back to the project and create patches easily.

Some extra tools (neonmake) are provided for this purpose in the package amarok-nightly-tools. The packages come with development headers and debugging symbols built in.

sudo aptitude install amarok-nightly-tools

If you are already using a nightly package of the module you want to develop for, you should remove that, and checkout the development version. 例如:

  1. 移除日构建包

sudo aptitude purge kde-nightly-kdepim

  1. 获取构建KDEPIM的依赖文件

sudo apt-get build-dep kde-nightly-kdepim cd ~

  1. 可以选择你的开发目录

cd Development

  1. 获取KDEPIM模块的最新版本

svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepim cd kdepim

  1. Project Neon提供用于构建的快捷方式
  2. 安装到 prefix /opt/kde-nightly/

neonmake

Note that you should usually checkout a module from kde, not an application. Most modules contain libraries shared within the module and which are necessary to build the applications in the module.

Also of note is the neonmake command. This is a shortcut which temporarily sets some environment variables like the LD_LIBRARY_PATH, the install prefix etc, then runs the equivalent of cmake && make && make install. It also runs rpath to configure the executable file to use the nightly libraries.

用于翻译

日构建的Neon包只包含了英文字符串。没有翻译包。不过你可以自行把翻译包加入到你的构建流程。

cd ~ cd Translations

  1. -N 开关只把最顶层的检出

svn co -N svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4 cd l10n-kde4

  1. 构建翻译所用脚本

svn up scripts

  1. 得到中文翻译

svn up zh_CN

  1. 创建中文语言包构建文件

./scripts/autogen.sh zh_CN cd zh_CN neonmake

After building the translations it is possible to either change the language in system settings, or run applications in another language using the environment variable KDE_LANG.

switchtonightly KDE_LANG=zh_CN kmail switchtostable

用于文档

Neon的日构建版本只有英文版的用户手册。

待办: 如何从SVN创建用户文档。

用于升级

If you are creating screenshots or screencasts of the latest version of KDE, project Neon is a simple and fast way of getting a default KDE4 session.

The KDE Promotion team recommends using the default background, theme, icons etc when preparing offical promotional materials (unless the feature you are showing is related to configuring KDE artwork). Project Neon uses the default artwork that comes with KDE4, so it is useful for creating promo materials.

下列命令可以从PPA里获取所有可用的模块:

sudo aptitude install kde-nightly-kdebase kde-nightly-kdeplasma-addons \ kde-nightly-kdepim kde-nightly-kdeedu kde-nightly-kdenetwork \ kde-nightly-kdeutils kde-nightly-kdegraphics kde-nightly-kdemultimedia

screenie在Kubuntu 8.10里被命名为screenie-qt.

sudo aptitude install screenie-qt


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