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

Jump to: navigation, search
(cmake)
(updated to this decade)
(40 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4/openSUSE}}
 
In openSUSE 10.2 and newer, you can install packages using [http://en.opensuse.org/Zypper Zypper]:
 
<code bash>
 
sudo zypper install <package-name>
 
</code>
 
  
In older releases of SUSE, you can use YaST:
+
= Introduction =
<code bash>
+
 
su
+
openSUSE has a very strong and active KDE team with a lot of information on their own wiki:
yast -i <packagename>
+
* [http://en.opensuse.org/Portal:KDE openSUSE KDE Portal]
</code>
+
* [http://en.opensuse.org/KDE_repositories openSUSE KDE package repositories]
 +
* [http://en.opensuse.org/openSUSE:KDE_developers_guide openSUSE KDE Developers Guide] (Outdated)
 +
* [http://en.opensuse.org/KDE openSUSE wiki KDE page]
  
 
= Required Packages =
 
= Required Packages =
  
The packages you will need to install are:
+
Use the following commands to install the needed packages:
<code>
+
<pre>
alsa-devel
+
zypper install alsa-devel automoc4 avahi-devel patch cups-devel kde4-filesystem \
automoc4
+
libbz2-devel avahi-compat-mDNSResponder-devel hal-devel xorg-x11-devel \
avahi-devel
+
libQtWebKit-devel libxml2-devel kdesdk4 clucene-core-devel boost-devel \
patch (needed to build qt-copy)
+
libjpeg-devel liblrdf-devel libpng-devel libxslt-devel libredland-devel \
cups-devel
+
Mesa-devel giflib-devel subversion gcc-c++ gmp-devel xine-devel \
kde4-filesystem
+
libgpgme-devel pcre-devel dbus-1-devel libqt4-devel cmake git \
libbz2-devel
+
doxygen polkit-devel docbook-xsl-stylesheets cyrus-sasl-devel libical-devel  
avahi-compat-mDNSResponder-devel
+
</pre>
hal-devel
+
 
xorg-x11-devel
+
= Build =
libxml2-devel  
+
 
kdesdk3
+
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).
clucene-core-devel  
+
 
boost-devel
+
== kdesupport ==
libjpeg-devel  
+
 
liblrdf-devel  
+
You can install kdesupport and its dependencies from SUSE by adding the KDE:Distro:Stable repository from
libpng-devel  
+
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:
libxslt-devel  
+
http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_12.1/
libredland-devel
+
 
Mesa-devel  
+
For older versions of openSUSE do:
giflib-devel  
+
su
subversion  
+
zypper ar -f http://download.opensuse.org/repositories/KDE:/Distro:/Stable/[YOUR openSUSE VERSION]
gcc
+
 
gcc-c++
+
Now install kdesupport from openSUSE:
gmp-devel (needed to build kdesupport)
+
zypper install libqca2-devel libsoprano-devel libqimageblitz-devel strigi-devel
xine-devel
+
 
libgpgme-devel (needed to build kdepimlibs)
+
Please remember to skip any instructions from [[Getting_Started/Build]] that refer to kdesupport. Start to compile with kdelibs.
pcre-devel
+
 
</code>
+
= 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
  
= Optional Packages =
+
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:
+
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
+
  
== 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 19:38, 2 July 2012

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 commands to install the needed packages:

 zypper install alsa-devel automoc4 avahi-devel patch cups-devel kde4-filesystem \
 libbz2-devel avahi-compat-mDNSResponder-devel hal-devel xorg-x11-devel \
 libQtWebKit-devel libxml2-devel kdesdk4 clucene-core-devel boost-devel \
 libjpeg-devel liblrdf-devel libpng-devel libxslt-devel libredland-devel \
 Mesa-devel giflib-devel subversion gcc-c++ gmp-devel xine-devel \
 libgpgme-devel pcre-devel dbus-1-devel libqt4-devel cmake git \
 doxygen polkit-devel docbook-xsl-stylesheets cyrus-sasl-devel libical-devel 

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