Difference between revisions of "Getting Started/Build/Distributions/openSUSE"

Jump to: navigation, search
(make it easy for the user to execute)
(Required Packages)
(36 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4/openSUSE}}
 
  
= Required Packages =
+
= Introduction =
  
In openSUSE 10.2 and newer, you can install packages using [http://en.opensuse.org/Zypper Zypper]:
+
openSUSE has a very strong and active KDE team with a lot of information on their own wiki:
<code bash>
+
* [http://en.opensuse.org/Portal:KDE openSUSE KDE Portal]
sudo zypper install <package-name>
+
* [http://en.opensuse.org/KDE_repositories openSUSE KDE package repositories]
</code>
+
* [http://en.opensuse.org/openSUSE:KDE_developers_guide openSUSE KDE Developers Guide] (Outdated)
 +
* [http://en.opensuse.org/KDE openSUSE wiki KDE page]
  
In older releases of SUSE, you can use YaSt
+
= Required Packages =
su
+
Use the following command to install the needed packages:
yast -i <packagename>
+
  
Here is a list of packages you need to have installed. Each one is starting with yast -i , so you can just copy-and-paste the lines into your konsole:
 
 
<pre>
 
<pre>
yast -i alsa-devel
+
zypper si -d kdelibs4
yast -i automoc4
+
yast -i avahi-devel
+
yast -i patch
+
yast -i cups-devel
+
yast -i kde4-filesystem
+
yast -i libbz2-devel
+
yast -i avahi-compat-mDNSResponder-devel
+
yast -i hal-devel
+
yast -i xorg-x11-devel
+
yast -i libQtWebKit-devel
+
yast -i libxml2-devel
+
yast -i kdesdk3
+
yast -i clucene-core-devel
+
yast -i boost-devel
+
yast -i libjpeg-devel
+
yast -i liblrdf-devel
+
yast -i libpng-devel
+
yast -i libxslt-devel
+
yast -i libredland-devel
+
yast -i Mesa-devel
+
yast -i giflib-devel
+
yast -i subversion
+
yast -i gcc-c++
+
yast -i gmp-devel
+
yast -i xine-devel
+
yast -i libgpgme-devel (needed to build kdepimlibs)
+
yast -i pcre-devel
+
 
</pre>
 
</pre>
  
= Optional Packages =
+
= Build =
 +
 
 +
This section describes how you can get kde to compile so that you can log in graphically (using kdm, the KDE display manager) and call konqueror (contained in KDEBASE, KDE's base package).
 +
 
 +
== kdesupport ==
 +
 
 +
You can install kdesupport and its dependencies from SUSE by adding the KDE:Distro:Stable repository from
 +
the [http://download.opensuse.org/repositories/KDE:/Distro:/Stable/ openSUSE Build Service] to your repositories. For openSUSE 12.1 add this Repository to YaST/zypper:
 +
http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_12.1/
 +
 
 +
For older versions of openSUSE do:
 +
su
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/Distro:/Stable/[YOUR openSUSE VERSION]
 +
 
 +
Now install kdesupport from openSUSE:
 +
zypper install libqca2-devel libsoprano-devel libqimageblitz-devel strigi-devel
 +
 
 +
Please remember to skip any instructions from [[Getting_Started/Build]] that refer to kdesupport. Start to compile with kdelibs.
 +
 
 +
= Using openSUSE Unstable Repositories =
 +
 
 +
openSUSE, via its Build Service, provides a so-called unstable repository which contains weekly snapshots from KDE SVN trunk. These allow you to run a system install of unstable, but does not allow you to keep a stable system install while testing unstable in parallel.
 +
 
 +
== Requirements ==
 +
 
 +
You need a supported openSUSE version, that is, at the time of writing, openSUSE 11.4 or 12.1 or openSUSE Factory (the always-on-development branch of openSUSE).
 +
 
 +
== Installing packages from the unstable repository ==
 +
 
 +
Add the repository manually and perform an installation from the command line.
 +
 
 +
 
 +
=== Addition of the repository ===
 +
 
 +
Add the repository. To do so, enter as root
 +
 
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/Unstable:/SC/YOUR_openSUSE_VERSION/ [ALIAS]
  
You can skip the manual and painful installation kdesupport and its dependencies ( Qt 4.3, CMake 2.4.6, DBus, Hal, clucene-core, Strigi,
+
where YOUR_openSUSE_VERSION is either openSUSE_11.4, openSUSE_12.1, or openSUSE_Factory depending on what you are running. And ALIAS is whatever name you want to assign to the repository.
Soprano and other Nepomuk dependencies) by adding the KDE:KDE4 repository from
+
the [http://download.opensuse.org/repositories/KDE:/KDE4/ openSUSE Build Service] to your installation sources.  
+
  
For openSUSE 10.2 and newer add this Repository to your Install Source (Yast)
+
After that upgrade the packages to the unstable version:
<code>
+
http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Desktop/openSUSE_10.2/
+
</code>
+
  
For older versions of SUSE Linux do:
+
zypper dup --from [ALIAS]
<code>
+
su
+
installation_sources -a http://software.opensuse.org/download/KDE:/KDE4:/[YOUR SUSE LINUX VERSION]
+
</code>
+
  
= Build it =
+
=== Post-installation steps ===
== cmake ==
+
Now install cmake, in this example 2.6.2:
+
cd
+
wget http://www.cmake.org/files/v2.6/cmake-2.6.2.tar.gz
+
tar xvzf cmake-2.6.2.tar.gz
+
cd cmake-2.6.2
+
./bootstrap
+
make && make install
+
  
== distro packages ==
+
You may want to add some additional repositories to have compatible non KDE SC packages available.
Now install the following packages:
+
<code>
+
dbus-1-devel
+
libqt4-devel
+
libqca2-devel
+
libsoprano-devel
+
libqimageblitz-devel
+
strigi
+
strigi-devel
+
</code>
+
  
CMake binary packages for openSUSE are available from the KDE:KDE4 repository as well as from the [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].
+
zypper ar -f http://download.opensuse.org/repositories/KDE:/UpdatedApps/YOUR_openSUSE_VERSION/ [ALIAS]
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/Extra/YOUR_openSUSE_VERSION/_KDE_Unstable_SC/ [ALIAS]
  
There are a lot more packages that are needed to satisfy the config-check, such as libusb-devel, bison etc., so look out for the config notifications and install accordingly. Please remember to skip any instructions that refer to kdesupport below. Start to compile with kdelibs.
+
followed by the installation the packages you need:
  
 +
zypper install [package]
  
Return to [[Getting_Started/Build/KDE4#kdelibs|building KDE 4]].
+
Return to [[Getting_Started/Build|Building KDE]].

Revision as of 20:10, 4 February 2013

Contents

Introduction

openSUSE has a very strong and active KDE team with a lot of information on their own wiki:

Required Packages

Use the following command to install the needed packages:

zypper si -d kdelibs4

Build

This section describes how you can get kde to compile so that you can log in graphically (using kdm, the KDE display manager) and call konqueror (contained in KDEBASE, KDE's base package).

kdesupport

You can install kdesupport and its dependencies from SUSE by adding the KDE:Distro:Stable repository from the openSUSE Build Service to your repositories. For openSUSE 12.1 add this Repository to YaST/zypper:

http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_12.1/

For older versions of openSUSE do:

su
zypper ar -f http://download.opensuse.org/repositories/KDE:/Distro:/Stable/[YOUR openSUSE VERSION]

Now install kdesupport from openSUSE:

zypper install libqca2-devel libsoprano-devel libqimageblitz-devel strigi-devel

Please remember to skip any instructions from Getting_Started/Build that refer to kdesupport. Start to compile with kdelibs.

Using openSUSE Unstable Repositories

openSUSE, via its Build Service, provides a so-called unstable repository which contains weekly snapshots from KDE SVN trunk. These allow you to run a system install of unstable, but does not allow you to keep a stable system install while testing unstable in parallel.

Requirements

You need a supported openSUSE version, that is, at the time of writing, openSUSE 11.4 or 12.1 or openSUSE Factory (the always-on-development branch of openSUSE).

Installing packages from the unstable repository

Add the repository manually and perform an installation from the command line.


Addition of the repository

Add the repository. To do so, enter as root

zypper ar -f http://download.opensuse.org/repositories/KDE:/Unstable:/SC/YOUR_openSUSE_VERSION/ [ALIAS]

where YOUR_openSUSE_VERSION is either openSUSE_11.4, openSUSE_12.1, or openSUSE_Factory depending on what you are running. And ALIAS is whatever name you want to assign to the repository.

After that upgrade the packages to the unstable version:

zypper dup --from [ALIAS]

Post-installation steps

You may want to add some additional repositories to have compatible non KDE SC packages available.

zypper ar -f http://download.opensuse.org/repositories/KDE:/UpdatedApps/YOUR_openSUSE_VERSION/ [ALIAS]
zypper ar -f http://download.opensuse.org/repositories/KDE:/Extra/YOUR_openSUSE_VERSION/_KDE_Unstable_SC/ [ALIAS]

followed by the installation the packages you need:

zypper install [package]

Return to Building KDE.


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