Archive:Getting Started/Build/KDE4/Kubuntu and Debian (zh CN): Difference between revisions
No edit summary |
m (AnneW moved page Getting Started/Build/KDE4/Kubuntu and Debian (zh CN) to Archive:Getting Started/Build/KDE4/Kubuntu and Debian (zh CN) without leaving a redirect: Obsolete) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<!--fortruth初稿!--> | |||
本页将详细介绍在 Kubuntu 7.10 (Gutsy) 和 Debian (Testing/Unstable) 中安装 KDE4 的所有需求。如果你的系统只是一个只有基本功能的桌面,你需要安装以下必需的包: | 本页将详细介绍在 Kubuntu 7.10 (Gutsy) 和 Debian (Testing/Unstable) 中安装 KDE4 的所有需求。如果你的系统只是一个只有基本功能的桌面,你需要安装以下必需的包: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install build-essential cdbs debhelper cmake \ | sudo aptitude install build-essential cdbs debhelper cmake \ | ||
kdesdk-scripts subversion ssh xserver-xephyr doxygen dbus-x11 \ | kdesdk-scripts subversion ssh xserver-xephyr doxygen dbus-x11 \ | ||
Line 8: | Line 9: | ||
libboost-dev libgpgme11-dev libxine-dev libqimageblitz-dev libbz2-dev \ | libboost-dev libgpgme11-dev libxine-dev libqimageblitz-dev libbz2-dev \ | ||
libdbus-1-dev libpam0g-dev libpcre3-dev libkrb5-dev | libdbus-1-dev libpam0g-dev libpcre3-dev libkrb5-dev | ||
</ | </syntaxhighlight> | ||
以上包像 build essential 等是构建系统的前提,包括了基本所有编译 KDE4 (不包括QT4) 的需求和支持 https 所需的包 libssl-dev。更多所需的可选包参看以下列表。 | 以上包像 build essential 等是构建系统的前提,包括了基本所有编译 KDE4 (不包括QT4) 的需求和支持 https 所需的包 libssl-dev。更多所需的可选包参看以下列表。 | ||
Line 14: | Line 15: | ||
安装所有可选包: | 安装所有可选包: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install build-essential cdbs debhelper cmake \ | sudo aptitude install build-essential cdbs debhelper cmake \ | ||
kdesdk-scripts subversion ssh xserver-xephyr doxygen graphviz libqt4-dev \ | kdesdk-scripts subversion ssh xserver-xephyr doxygen graphviz libqt4-dev \ | ||
Line 29: | Line 30: | ||
libqca2-dev libqca2-dev libqca2-dev libsvn-dev libsvncpp-dev \ | libqca2-dev libqca2-dev libqca2-dev libsvn-dev libsvncpp-dev \ | ||
libcommoncpp2-dev | libcommoncpp2-dev | ||
</ | </syntaxhighlight> | ||
编译稳定版的 KDE4 (kde4.0) 还需要安装 | 编译稳定版的 KDE4 (kde4.0) 还需要安装 | ||
Line 37: | Line 38: | ||
可以从下面的命令来安装: | 可以从下面的命令来安装: | ||
(译者:cs 是 kde 提供的一个.bashrc 中的命令用于创建~/kde/src。详见:[[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc]]。 | |||
< | <syntaxhighlight lang="bash"> | ||
cs # | cs #注:cs不是错误 | ||
svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy | svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy | ||
cd qt-copy | cd qt-copy | ||
Line 45: | Line 46: | ||
cb #在单独的构建文件夹中构建 QT | cb #在单独的构建文件夹中构建 QT | ||
../../src/qt-copy/configure <Qt options here> -prefix $QTDIR | ../../src/qt-copy/configure <Qt options here> -prefix $QTDIR | ||
make -j2 #使用 'make -j(X+1)' 这里 X | make -j2 #使用 'make -j(X+1)' 这里 X 是你的机器处理器的个数,可以加快编译速度 | ||
# 如果不安装就请清除那些 obj 文件以节省磁盘空间 | # 如果不安装就请清除那些 obj 文件以节省磁盘空间 | ||
if [ "$QTDIR" = "`pwd`" ]; then \ | if [ "$QTDIR" = "`pwd`" ]; then \ | ||
Line 51: | Line 52: | ||
else make install; fi; | else make install; fi; | ||
</ | </syntaxhighlight> | ||
安装完所需要和要求的包后,请继续参看[[Getting_Started/Build/KDE4#kdelibs|building KDE 4]]. | 安装完所需要和要求的包后,请继续参看[[Getting_Started/Build/KDE4#kdelibs|building KDE 4]]. | ||
== 构建的必要条件 == | == 构建的必要条件 == | ||
在 Kubuntu 7.10 (Gutsy) 和 Debian (Testing/Unstable) | 在 Kubuntu 7.10 (Gutsy) 和 Debian (Testing/Unstable) 中用以下方法安装构建的必要前提: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install build-essential cdbs debhelper cmake \ | sudo aptitude install build-essential cdbs debhelper cmake \ | ||
kdesdk-scripts subversion ssh xserver-xephyr | kdesdk-scripts subversion ssh xserver-xephyr | ||
</ | </syntaxhighlight> | ||
用于生成 API 文档资料的可选包: | 用于生成 API 文档资料的可选包: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install doxygen graphviz | sudo aptitude install doxygen graphviz | ||
</ | </syntaxhighlight> | ||
== kdelibs 的依赖包 == | == kdelibs 的依赖包 == | ||
用以下方法安装 Kdelibs 的依赖包: | 用以下方法安装 Kdelibs 的依赖包: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libqt4-dev dbus-x11 \ | sudo aptitude install libqt4-dev dbus-x11 \ | ||
libstreamanalyzer-dev libstrigiqtdbusclient-dev \ | libstreamanalyzer-dev libstrigiqtdbusclient-dev \ | ||
libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev | libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev | ||
</ | </syntaxhighlight> | ||
=== 推荐的包 === | === 推荐的包 === | ||
Line 83: | Line 84: | ||
* libpcre3-dev - 正则表达式库。 支持 Javascript 所推荐的. | * libpcre3-dev - 正则表达式库。 支持 Javascript 所推荐的. | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libssl-dev libbz2-dev libpcre3-dev | sudo aptitude install libssl-dev libbz2-dev libpcre3-dev | ||
</ | </syntaxhighlight> | ||
=== 其他可选的包 === | === 其他可选的包 === | ||
Line 95: | Line 96: | ||
* libopenexr-dev - 图象处理库image processing library | * libopenexr-dev - 图象处理库image processing library | ||
* libxml2-utils - 用于生成有效的 doc 文件。 | * libxml2-utils - 用于生成有效的 doc 文件。 | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libxml2-utils libpcre3-dev libopenexr-dev \ | sudo aptitude install libxml2-utils libpcre3-dev libopenexr-dev \ | ||
libjasper-dev libenchant-dev libavahi-common-dev libaspell-dev \ | libjasper-dev libenchant-dev libavahi-common-dev libaspell-dev \ | ||
libasound2-dev | libasound2-dev | ||
</ | </syntaxhighlight> | ||
== kdepimlibs 的依赖包 == | == kdepimlibs 的依赖包 == | ||
kdepimlibs 的依赖包安装如下如示: | kdepimlibs 的依赖包安装如下如示: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libboost-dev libgpgme11-dev | sudo aptitude install libboost-dev libgpgme11-dev | ||
</ | </syntaxhighlight> | ||
=== kdepimlibs 的推荐包 === | === kdepimlibs 的推荐包 === | ||
* libldap2-dev - 在 kde4 中支持 ldap。 | * libldap2-dev - 在 kde4 中支持 ldap。 | ||
* libsasl2-dev - imap 和筛选 kioslaves 所必需的 | * libsasl2-dev - imap 和筛选 kioslaves 所必需的 | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libldap2-dev libsasl2-dev | sudo aptitude install libldap2-dev libsasl2-dev | ||
</ | </syntaxhighlight> | ||
== kdebase 的依赖包 == | == kdebase 的依赖包 == | ||
kdebase-runtime 的依赖包安装如下如示: | kdebase-runtime 的依赖包安装如下如示: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libxine-dev | sudo aptitude install libxine-dev | ||
</ | </syntaxhighlight> | ||
{{Note|注意 libxine1-dev 依赖于 gnome 包,这是 kubuntu gutsy 打包时的一个 bug (在 hardy 中已经修复). 在 kubuntu 中 xinelib 包的版本是 1.1.8, 在播放短一点的声音时会有一些障碍 (在xinelib 1.1.9 中已经修复)。 | {{Note|注意 libxine1-dev 依赖于 gnome 包,这是 kubuntu gutsy 打包时的一个 bug (在 hardy 中已经修复). 在 kubuntu 中 xinelib 包的版本是 1.1.8, 在播放短一点的声音时会有一些障碍 (在xinelib 1.1.9 中已经修复)。 | ||
Line 124: | Line 125: | ||
kdebase-apps 的依赖包安装如下如示: | kdebase-apps 的依赖包安装如下如示: | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libqimageblitz-dev | sudo aptitude install libqimageblitz-dev | ||
</ | </syntaxhighlight> | ||
=== kdebase-apps 的可选包 === | === kdebase-apps 的可选包 === | ||
Line 134: | Line 135: | ||
* libsmbclient-dev - 用于在 KDE4 中支持 samba。 | * libsmbclient-dev - 用于在 KDE4 中支持 samba。 | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev | sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev | ||
</ | </syntaxhighlight> | ||
=== kdebase-workspace 的可选包 === | === kdebase-workspace 的可选包 === | ||
Line 151: | Line 152: | ||
* libpam0g-dev - 论证模块 | * libpam0g-dev - 论证模块 | ||
* libnm-util-dev - 构建带有网络管理的 solid 所需要的 | * libnm-util-dev - 构建带有网络管理的 solid 所需要的 | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libxklavier11-dev libxdamage-dev libxcomposite-dev \ | sudo aptitude install libxklavier11-dev libxdamage-dev libxcomposite-dev \ | ||
libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \ | libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \ | ||
libsmbclient-dev libsoprano-dev libsensors-dev libpam0g-dev libnm-util-dev | libsmbclient-dev libsoprano-dev libsensors-dev libpam0g-dev libnm-util-dev | ||
</ | </syntaxhighlight> | ||
== kdeedu == | == kdeedu == | ||
如果你打算使用 kstars 你需要安装以下包: | |||
* libfacile-ocaml-dev - | * libfacile-ocaml-dev - kalzuim 需要的 | ||
* libboost-python-dev - | * libboost-python-dev - kig 的可选包 | ||
* libreadline-dev - | * libreadline-dev - 给 kalgebra 一个终端界面 | ||
* libopenbabel-dev - | * libopenbabel-dev - kalzuim 需要的 | ||
* libeigen-dev - | * libeigen-dev - kalzuim 需要的 | ||
* libusb-dev - | * libusb-dev - 给 KStars 提供 INDI 支持 | ||
* libcfitsio3-dev - | * libcfitsio3-dev - 给 KStars 提供 FITS 图片支持 | ||
* libnova-dev - A general purpose, | * libnova-dev - A general purpose, 双精度, Celestial Mechanics, Astrometry and Astrodynamics library for KStars. | ||
< | <syntaxhighlight lang="bash"> | ||
sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen-dev \ | sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen-dev \ | ||
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev | libopenbabel-dev libfacile-ocaml-dev libboost-python-dev | ||
</ | </syntaxhighlight> | ||
== koffice == | == koffice == | ||
* libqca2-dev - qt | * libqca2-dev - qt 加密支持。 | ||
== kdepim == | == kdepim == | ||
* libqca2-dev - qt | * libqca2-dev - qt 加密支持。 | ||
== kdenetwork == | == kdenetwork == | ||
* libqca2-dev - qt | * libqca2-dev - qt 加密支持。用在 jabber 协议中。 | ||
== kdevplatform == | == kdevplatform == | ||
* libsvn-dev - | * libsvn-dev - dev platform 的 subversion 支持。 | ||
* libsvncpp-dev - | * libsvncpp-dev - dev platform 的 subversion 支持。 | ||
* libcommoncpp2-dev - | * libcommoncpp2-dev - 集成的协同作业。 | ||
== kdevelop == | == kdevelop == | ||
需要 kdevplatform. | |||
返回 [[Getting_Started/Build/KDE4#kdelibs|building KDE 4]]. |
Latest revision as of 12:41, 23 June 2013
本页将详细介绍在 Kubuntu 7.10 (Gutsy) 和 Debian (Testing/Unstable) 中安装 KDE4 的所有需求。如果你的系统只是一个只有基本功能的桌面,你需要安装以下必需的包:
sudo aptitude install build-essential cdbs debhelper cmake \
kdesdk-scripts subversion ssh xserver-xephyr doxygen dbus-x11 \
libstreamanalyzer-dev libstrigiqtdbusclient-dev libsoprano-dev \
libxml2-dev libxslt1-dev shared-mime-info libgif-dev libssl-dev \
libboost-dev libgpgme11-dev libxine-dev libqimageblitz-dev libbz2-dev \
libdbus-1-dev libpam0g-dev libpcre3-dev libkrb5-dev
以上包像 build essential 等是构建系统的前提,包括了基本所有编译 KDE4 (不包括QT4) 的需求和支持 https 所需的包 libssl-dev。更多所需的可选包参看以下列表。
安装所有可选包:
sudo aptitude install build-essential cdbs debhelper cmake \
kdesdk-scripts subversion ssh xserver-xephyr doxygen graphviz libqt4-dev \
dbus-x11 libstreamanalyzer-dev libstrigiqtdbusclient-dev libxml2-dev \
libxslt1-dev shared-mime-info libgif-dev libpcre3-dev libssl-dev libbz2-dev \
libpcre3-dev libxml2-utils libpcre3-dev libopenexr-dev libjasper-dev \
libenchant-dev libavahi-common-dev libaspell-dev libasound2-dev libboost-dev \
libgpgme11-dev libldap2-dev libsasl2-dev libxine-dev libqimageblitz-dev \
libsmbclient-dev libxkbfile-dev libxcb1-dev libxklavier12-dev libxdamage-dev \
libxcomposite-dev libbluetooth-dev libusb-dev libcaptury-dev \
network-manager-dev libsmbclient-dev libsoprano-dev libsensors-dev \
libpam0g-dev libnm-util-dev libusb-dev libcfitsio3-dev libnova-dev \
libeigen-dev libopenbabel-dev libfacile-ocaml-dev libboost-python-dev \
libqca2-dev libqca2-dev libqca2-dev libsvn-dev libsvncpp-dev \
libcommoncpp2-dev
编译稳定版的 KDE4 (kde4.0) 还需要安装 libqt4-dev.
从 trunk (即将是 KDE4.1 版) 编译 KDE 一定要从源码编译最新的 QT4.4 快照版。在 KDE svn 的 qt-copy仓库里有QT4.4 的拷贝。请先阅读 README.qt-copy 来选择合适的 Qt 选项和了解一些可能存在的问题。
可以从下面的命令来安装: (译者:cs 是 kde 提供的一个.bashrc 中的命令用于创建~/kde/src。详见:Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc。
cs #注:cs不是错误
svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy
cd qt-copy
./apply_patches
cb #在单独的构建文件夹中构建 QT
../../src/qt-copy/configure <Qt options here> -prefix $QTDIR
make -j2 #使用 'make -j(X+1)' 这里 X 是你的机器处理器的个数,可以加快编译速度
# 如果不安装就请清除那些 obj 文件以节省磁盘空间
if [ "$QTDIR" = "`pwd`" ]; then \
find . -name '*.o' -delete ; \
else make install; fi;
安装完所需要和要求的包后,请继续参看building KDE 4.
构建的必要条件
在 Kubuntu 7.10 (Gutsy) 和 Debian (Testing/Unstable) 中用以下方法安装构建的必要前提:
sudo aptitude install build-essential cdbs debhelper cmake \
kdesdk-scripts subversion ssh xserver-xephyr
用于生成 API 文档资料的可选包:
sudo aptitude install doxygen graphviz
kdelibs 的依赖包
用以下方法安装 Kdelibs 的依赖包:
sudo aptitude install libqt4-dev dbus-x11 \
libstreamanalyzer-dev libstrigiqtdbusclient-dev \
libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev
推荐的包
- libssl-dev - 支持 https 等所需要的。
- libbz2-dev - 在kio_archive 和 GHNS 包中支持 bzip 所需要的。
- libpcre3-dev - 正则表达式库。 支持 Javascript 所推荐的.
sudo aptitude install libssl-dev libbz2-dev libpcre3-dev
其他可选的包
- libasound2-dev - Alsa 声音系统。
- libaspell-dev - 拼写检查支持 (在 kwrite 等软件中)
- libavahi-common-dev - 发现 avahi/zeroconf 服务service discovery
- libenchant-dev - 拼写检查外包装库spell checking wrapper library
- libjasper-dev - 图象处理库image processing library
- libopenexr-dev - 图象处理库image processing library
- libxml2-utils - 用于生成有效的 doc 文件。
sudo aptitude install libxml2-utils libpcre3-dev libopenexr-dev \
libjasper-dev libenchant-dev libavahi-common-dev libaspell-dev \
libasound2-dev
kdepimlibs 的依赖包
kdepimlibs 的依赖包安装如下如示:
sudo aptitude install libboost-dev libgpgme11-dev
kdepimlibs 的推荐包
- libldap2-dev - 在 kde4 中支持 ldap。
- libsasl2-dev - imap 和筛选 kioslaves 所必需的
sudo aptitude install libldap2-dev libsasl2-dev
kdebase 的依赖包
kdebase-runtime 的依赖包安装如下如示:
sudo aptitude install libxine-dev
kdebase-apps 的依赖包安装如下如示:
sudo aptitude install libqimageblitz-dev
kdebase-apps 的可选包
- libxcb1-dev - X C 的绑定 - 用于支持 xine 中的视频 widget
- soprano - nepomuk 所推荐的. 详见 #Install soprano from svn
- libxkbfile-dev - 键盘配置的包keyboard configuration package
- libsmbclient-dev - 用于在 KDE4 中支持 samba。
sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev
kdebase-workspace 的可选包
- libsmbclient-dev - 用于在 KDE4 中支持 samba
- network-manager-dev - 可以用在网络管理中的 solid 中
- libcaptury-dev - screencasts 中的视频截取工具
- libusb-dev - 用于在 solid 中支持 usb
- libbluetooth-dev - 用于在 solid 中支持蓝牙 (bluetooth)
- libxcomposite-dev - 用于在 kwin 中支持 compositing
- libxdamage-dev - 用于在 kwin 中支持 compositing
- libxklavier11-dev - 虚拟键盘
- libsoprano-dev - Qt RDF 的存储结构 storage framework
- libsensors-dev - 支持硬件传感器 (eg, temperature, fans)
- libpam0g-dev - 论证模块
- libnm-util-dev - 构建带有网络管理的 solid 所需要的
sudo aptitude install libxklavier11-dev libxdamage-dev libxcomposite-dev \
libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \
libsmbclient-dev libsoprano-dev libsensors-dev libpam0g-dev libnm-util-dev
kdeedu
如果你打算使用 kstars 你需要安装以下包:
- libfacile-ocaml-dev - kalzuim 需要的
- libboost-python-dev - kig 的可选包
- libreadline-dev - 给 kalgebra 一个终端界面
- libopenbabel-dev - kalzuim 需要的
- libeigen-dev - kalzuim 需要的
- libusb-dev - 给 KStars 提供 INDI 支持
- libcfitsio3-dev - 给 KStars 提供 FITS 图片支持
- libnova-dev - A general purpose, 双精度, Celestial Mechanics, Astrometry and Astrodynamics library for KStars.
sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen-dev \
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev
koffice
- libqca2-dev - qt 加密支持。
kdepim
- libqca2-dev - qt 加密支持。
kdenetwork
- libqca2-dev - qt 加密支持。用在 jabber 协议中。
kdevplatform
- libsvn-dev - dev platform 的 subversion 支持。
- libsvncpp-dev - dev platform 的 subversion 支持。
- libcommoncpp2-dev - 集成的协同作业。
kdevelop
需要 kdevplatform.
返回 building KDE 4.