<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://techbase.kde.org/skins/common/feed.css?0.2"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://techbase.kde.org/api.php?action=feedcontributions&amp;user=Liquidat&amp;feedformat=atom</id>
		<title>KDE TechBase - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://techbase.kde.org/api.php?action=feedcontributions&amp;user=Liquidat&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Special:Contributions/Liquidat"/>
		<updated>2013-06-18T07:30:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://techbase.kde.org/Talk:Schedules/KDE4/4.0_Release_Beta_Goals</id>
		<title>Talk:Schedules/KDE4/4.0 Release Beta Goals</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Talk:Schedules/KDE4/4.0_Release_Beta_Goals"/>
				<updated>2007-09-28T14:55:59Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: New page: == Kopete? == What is with Kopete? Shouldn't KDE be released together with an instant messenger? Will it work or won't it? --~~~~&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Kopete? ==&lt;br /&gt;
What is with Kopete? Shouldn't KDE be released together with an instant messenger? Will it work or won't it? --[[User:Liquidat|Liquidat]] 16:55, 28 September 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Schedules/KDE4/4.0_Announcements/KDE4/4.0_Beta3</id>
		<title>Schedules/KDE4/4.0 Announcements/KDE4/4.0 Beta3</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Schedules/KDE4/4.0_Announcements/KDE4/4.0_Beta3"/>
				<updated>2007-09-10T12:16:08Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;List of nice and important changes between beta2 and beta3 so they can be put in the announcement article. Put links in here!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* work on KNotes [http://blog.guillermoamaral.com/2007/09/04/knotes-sur-un-triangle/]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
work-in-progress:&lt;br /&gt;
&lt;br /&gt;
* About Kommander&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://code.google.com/soc/2007/kde/appinfo.html?csaid=93F720A476DF8E71&amp;quot;&amp;gt;Matthias Wieser integrated&amp;lt;/a&amp;gt; the cool &amp;lt;a href=&amp;quot;http://dot.kde.org/1087424515/&amp;quot;&amp;gt;Kommander tool&amp;lt;/a&amp;gt;, which enables even very unskilled developers to quickly build GUI applications.&lt;br /&gt;
&lt;br /&gt;
(they didn't make it, too much work. might become something later on?)&lt;br /&gt;
&lt;br /&gt;
* About MARBLE (SoC work)&lt;br /&gt;
much work, not the least on &amp;lt;a href=&amp;quot;http://edu.kde.org/marble/&amp;quot;&amp;gt;Marble&amp;lt;/a&amp;gt;. It alone had three Summer of Code projects, with &amp;lt;a href=&amp;quot;http://realate.blogspot.com/&amp;quot;&amp;gt;Andrew Manson&amp;lt;/a&amp;gt; working on &amp;lt;a href=&amp;quot;http://code.google.com/soc/2007/kde/appinfo.html?csaid=58AE7448FBEEEAE0&amp;quot;&amp;gt;GPS support&amp;lt;/a&amp;gt;, &amp;lt;a href=&amp;quot;http://carloslicea.blogspot.com/&amp;quot;&amp;gt;Carlos Licea&amp;lt;/a&amp;gt; on &amp;lt;a href=&amp;quot;http://code.google.com/soc/2007/kde/appinfo.html?csaid=DCE4DBD4A0509DC7&amp;quot;&amp;gt;2D projection&amp;lt;/a&amp;gt; and &amp;lt;a href=&amp;quot;http://cia.vc/stats/author/muradt/&amp;quot;&amp;gt;Murad Tagirov&amp;lt;/a&amp;gt; busy with &amp;lt;a href=&amp;quot;http://code.google.com/soc/2007/kde/appinfo.html?csaid=D67FADC741D4F4C4&amp;quot;&amp;gt;KML support&amp;lt;/a&amp;gt;.&lt;br /&gt;
(beta 3 stuff)&lt;br /&gt;
&lt;br /&gt;
* KVocTrain (from KDE-Edu) is renamed to Parley ( Parley is a discussion or conference, especially one between enemies over terms of truce or other matters).&lt;br /&gt;
&lt;br /&gt;
* kget was integrated with Plasma:&lt;br /&gt;
http://liquidat.wordpress.com/2007/09/04/kde-4-screencast-plasma-and-kget-interaction/&lt;br /&gt;
&lt;br /&gt;
Todo:&lt;br /&gt;
- ask KDE-pim ppl about progress!!!&lt;br /&gt;
- get plasma screencast?!?&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4_(de)</id>
		<title>Getting Started/Build/KDE4 (de)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4_(de)"/>
				<updated>2007-07-11T21:34:03Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: strigi, soprano raus, kdesupport rein&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4}}&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Vorbereitungen|&lt;br /&gt;
&lt;br /&gt;
name=KDE4 aus dem Quellcode bauen|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Übersicht ==&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt einen Weg, KDE auf Linux- und BSD-Systemen&lt;br /&gt;
zu komplieren und auszuführen. Als Grundlage verwenden wir die Shell.&lt;br /&gt;
Wenn Sie sich für die Installation auf anderen Systeme wie etwa Solaris, MacOS oder Microsoft Windows interessieren, besuchen Sie bitte [[../|Build]] und folgen Sie den Links am Ende der Seite.&lt;br /&gt;
&lt;br /&gt;
{{warning|Stellen Sie sich auf verstärkt auftretende Buildprobleme '''an Montagen''' ein, da die Entwickler an diesem Wochentag kritische Änderungen vornehmen. Das [http://developer.kde.org/~dirk/dashboard/ Dashboard] zeigt unerwartete Probleme beim Kompilieren an.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Benötigte Software ==&lt;br /&gt;
&lt;br /&gt;
Folgendes muss installiert sein, um dieses Tutorial erfolgreich durchführen zu können:&lt;br /&gt;
* gcc und g++ vom gcc Projekt, vorzugsweise Version 4.1 oder höher&lt;br /&gt;
* svn, der subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* devel-(Entwicklungs-)Bibliotheken und -header für X11, OpenGL (mesa-common-dev und libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 und libxslt&lt;br /&gt;
* Das &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; Skript, welches Teil von kdesdk ist. Sie können es als Teil von kdesdk (kdesdk-scripts in Debian) installieren oder von hier einzeln herunterladen: [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* das [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info Paket], welches der freedesktop-MIME-Standard ist, den KDE nun nutzt&lt;br /&gt;
* [http://boost.org/ boost], welches von kdebase gebraucht wird. Nach dem Kompilieren und/oder Installieren von boost fügen Sie das boost-Verzeichnis (das, welches das include-Unterverzeichnis enthält) zu CMAKE_INCLUDE_PATH hinzu, oder kreieren Sie eine Umgebungsvariable namens BOOST_ROOT, die zum boost-Verzeichnis verweist, um cmake den Ort von boost mitzuteilen (FindBoost).&lt;br /&gt;
&lt;br /&gt;
Weiterhin ist es zu empfehlen, folgende Software bereits installiert zu haben:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
In Kubuntu 7.04 (Feisty) kann alle zum Bau der Pakete benötigte Software mit folgendem Befehl installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die manuelle Installation von Qt 4.3, CMake 2.4.6 und DBus kann durch die Installation der folgenden Pakete und ihrer Abhängigkeiten vermieden werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{warning|Alle KDE-Releases nach Alpha1 funktionieren nur mit Qt4.3. Kubuntu hat aber nur Packete für QT 4.3-Beta. Um neuere Versionen zu kompilieren, ist  das offizielle Release nötig.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Für eine voll funktionstüchtige [[apidox]]-Umgebung wird ebenfalls zusätzliche Software benötigt:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
{{note|&lt;br /&gt;
Der openSUSE build service stellt ebenfalls tagesaktuelle KDE-4-Pakete bereit, die das gesamte auf dieser Seite beschriebene Vorgehen überflüssig machen. Weitere Informationen findet man direkt im openSUSE wiki unter [http://de.opensuse.org/KDE4 KDE4].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In OpenSuse können Pakete mit Hilfe von [http://de.opensuse.org/Zypper Zypper] installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In älteren SUSE-Versionen geht dies nur mit Yast:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die meisten zum Bau von KDE 4 nötigen Pakete sind:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
xorg-x11-devel, libxml2-devel, kdesdk3, clucene-core-devel, libjpeg-devel, liblrdf-devel, libpng-devel, libxslt-devel, Mesa-devel, giflib-devel, subversion, gcc, gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bereits vorkompilierte CMake-Pakete für openSUSE sind direkt verfügbar im  [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo ===&lt;br /&gt;
&lt;br /&gt;
Sie können die stabilen ebuilds verwenden. Vergessen Sie nur nicht, ihr Portage zu synchronisieren, bevor Sie fortfahren.&lt;br /&gt;
&lt;br /&gt;
Von folgenden Paketen müssen instabile Versionen verwendet werden. Um das zu erreichen, nehmen Sie die Paketnamen in die Datei &amp;lt;code&amp;gt;package.keywords&amp;lt;/code&amp;gt; auf.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
# echo 'x11-libs/qt' &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
# echo 'dev-util/cmake' &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
# echo 'dev-cpp/clucene' &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
# echo '&amp;gt;dev-cpp/clucene-0.9.16a' &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dies sind die zu installierenden Pakete. Einige könnten bereits installiert sein. Diese können übersprungen werden, indem das &amp;quot;update&amp;quot;-flag in emerge gesetzt wird.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
$ emerge -avu ebuild/name&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 sys-devel/gcc&lt;br /&gt;
 dev-util/subversion&lt;br /&gt;
 dev-util/pkgconfig&lt;br /&gt;
 x11-base/xorg-x11&lt;br /&gt;
 media-libs/glut&lt;br /&gt;
 media-libs/mesa&lt;br /&gt;
 media-libs/jpeg&lt;br /&gt;
 media-libs/libpng&lt;br /&gt;
 media-libs/giflib&lt;br /&gt;
 dev-cpp/clucene&lt;br /&gt;
 dev-util/cppunit&lt;br /&gt;
 media-libs/liblrdf&lt;br /&gt;
 dev-libs/libxml2&lt;br /&gt;
 dev-libs/libxslt&lt;br /&gt;
 x11-misc/shared-mime-info&lt;br /&gt;
 dev-libs/boost&lt;br /&gt;
 x11-libs/qt&lt;br /&gt;
 dev-util/cmake&lt;br /&gt;
 sys-apps/dbus&lt;br /&gt;
 redland&lt;br /&gt;
&lt;br /&gt;
Beginnen Sie nun, [[Getting_Started/Build/KDE4#Strigi|Strigi]] zu kompilieren.&lt;br /&gt;
&lt;br /&gt;
Viel Erfolg!&lt;br /&gt;
&lt;br /&gt;
== Ein Benutzer für die KDE-4-Entwicklung ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Einige Menschen ziehen es vor, für KDE 4 einen separaten Nutzer-Account einzurichten, um nicht aus Versehen durch noch bestehende Bugs oder ähnliches Daten zu verlieren. Die Anleitung hier basiert auf der Herangehensweise.&lt;br /&gt;
&lt;br /&gt;
Es ist jedoch deutlich effizienter alles mit einem einzigen Nutzer-Account zu machen. Unter [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]] findet man mehr Details dazu.&lt;br /&gt;
&lt;br /&gt;
In diesem Fall ist die folgende Anleitung noch immer gültig, jedoch sollten die nötigen Umgebungsvariablen nicht in die &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, sondern in eine separate Datei geschrieben werden, die dann bei Bedarf eingelesen wird.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Kommandozeile ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Über KControl ===&lt;br /&gt;
&lt;br /&gt;
Anstatt der oben genannten Befehle kann man auch mit Hilfe des Benutzer-Moduls im KDE-Kontrollzentrum (kcontrol) einen weiteren Benutzer einrichten.&lt;br /&gt;
&lt;br /&gt;
=== Einrichten der Entwicklungsumgebung ===&lt;br /&gt;
&lt;br /&gt;
Kopieren Sie die Datei {{path|~/.bashrc}} von Ihrem normalen Benutzer-Account zu Ihrem neuen kde-devel-Account. Danach fügen Sie den Inhalt der Seite [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] in die Datei {{path|~kde-devel/.bashrc}} ein. Stellen Sie sicher, dass die Zeile &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; auskommentiert ist falls auf Ihrem System das Programm &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; nicht verfügbar ist.&lt;br /&gt;
Die neue {{path|~/.bashrc}} wird mit folgendem Befehl eingelesen:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nun haben Sie Zugriff auf Befehle wie &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;, die in dieser Anleitung genutzt werden. Auch wird so sichergestellt, dass alle wichtigen Umgebungsvariablen (z. B. für die Pfadangaben von Qt, KDE und CMake) richtig gesetzt sind.&lt;br /&gt;
&lt;br /&gt;
Für weitere Informationen lesen Sie bitte [[Getting Started/Increased Productivity in KDE4 with Scripts]].&lt;br /&gt;
&lt;br /&gt;
=== Zum neuen Benutzer wechseln ===&lt;br /&gt;
&lt;br /&gt;
Sie können sich nun als Benutzer kde-devel anmelden (der Bindestrich ist wichtig!):&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Der Rest dieser Anleitung geht davon aus, dass Sie alle Befehle als &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; ausführen.&lt;br /&gt;
&lt;br /&gt;
== Die Shell des Entwicklungsbenutzers ==&lt;br /&gt;
Auf manchen Systemen nutzen neue Benutzer standardmäßig {{path|/bin/sh}}. Wenn dies auf Ihrem System nicht der Fall ist, können Sie diesen Abschnitt überspringen. {{path|/bin/sh}} zu nuzten kann sich als sehr unangenehm erweisen. Daher sollten Sie erwägen, zu {{path|/bin/bash}} oder einer anderen Shell zu wechseln.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Als kde-devel-Benutzer ===&lt;br /&gt;
Wenn Sie keine root-Privilegien haben und Ihr System das Wechseln der eigenen Shell mittels &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; unterstützt, können Sie versuchen, Ihre Shell zu {{path|/bin/bash}} zu wechseln, indem Sie Folgendes eingeben:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Als root-Benutzer ===&lt;br /&gt;
Wenn Ihr System die Anwendung &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; beinhaltet, können Sie den folgenden Befehl als root-Benuzter eingeben: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Eine weitere Möglichkeit ist die Nutzung der Anwendung &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; als root-Benuzter, um auf sichere Art {{path|/etc/passwd}} zu editieren. Machen Sie 'kde-devel' in dieser Datei ausfindig und ändern Sie '{{path|/bin/sh}}' am Zeilenende in '{{path|/bin/bash}}'. Speichern Sie die Änderungen und beenden Sie die Anwendung.&lt;br /&gt;
&lt;br /&gt;
Die neue Shell wird automatisch gestartet wenn Sie sich wieder als kde-devel-Benutzer einloggen.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus und KDE arbeiten mit den D-Bus-Versionen 0.6.2, 0.92 und höher zusammen. Die Versionen 0.60 und 0.61 funktionieren eventuell auch, sind aber ungetestet. Die Versionen 0.90 und 0.91 funktionieren definitiv nicht.&lt;br /&gt;
&lt;br /&gt;
Wir empfehlen, dass Sie eine aktuelle, stabile Version, also größer Version 1.0, benutzen, wenigstens aber Version 0.94.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie eine aktuelle D-Bus-Version auf ihrem System bereits installiert haben oder Ihre D-Bus-Version nicht aktualisieren wollen, können Sie die nächste Sektion überspringen.&lt;br /&gt;
&lt;br /&gt;
Bevor Sie die nächsten Schritte durchgehen sollten Sie sicherstellen, dass die X11-header und -Bibliotheken installiert sind. Das Konfigurationsskript sollte in Zeile 5 Folgendes ausgeben:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Stellen Sie sicher, dass Ihre Umgebung [[Getting_Started/Build/KDE4 (de)#Einrichten der Entwicklungsumgebung|wie beschrieben]] eingerichtet wurde. Das ist wichtig für das Funktionieren der &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt;- und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt;-Befehle.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' ist eine Bash-Funktion, klicken Sie hier, um mehr darüber zu lernen]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=$KDEDIR/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert === &lt;br /&gt;
Wir wechseln in Zeile 1 in das Quellen-Verzeichnis, laden in Zeile 2 den Quellcode von freedesktop.org herunter und entpacken diesen in Zeile 3.&lt;br /&gt;
In Zeile 4 wechseln wir in das neu erstellte Verzeichnis, und bereiten in Zeile 5 das Kompilieren der Quelldateien vor. Zeile 6 setzt den Kompilier-Vorgang in Gang, Zeile 7 installiert D-Bus, und in Zeile 8 benutzen wir das &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt;-Werkzeug, um eine Maschinen-Identifikation zu installieren. Das erlaubt dem bus, automatisch mit der Desktop-Sitzung zu starten.&lt;br /&gt;
&lt;br /&gt;
Achten Sie darauf, dass Sie Schreibrechte auf {{path|/var}} haben, da Sie sie für die letzten beiden Schritte benötigen. Falls Ihr System kein sudo-Kommando unterstützt, können Sie auch &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; benutzen, z. B. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
&lt;br /&gt;
Falls Sie die Fehlermeldung '''makeobj: command not found''' bekommen fehlt Ihnen &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Überspringen Sie diesen Abschnitt, wenn Sie [http://cmake.org/ CMake] &amp;gt;=2.4.5 installiert haben.&lt;br /&gt;
Es sollte Ihnen möglich sein, die Binärpakete zu installieren, die hier verfügbar sind: [http://www.cmake.org/HTML/Download.html CMake site]. Dort sind ebenfalls distributionsspezifische Pakete zu finden.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' ist eine Bash-Funktion, klicken Sie hier, um mehr zu erfahren]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Zuerst wechseln wir in das Quellverzeichnis des &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt;-Benutzers (Zeile 1), laden den CMake-Quellcode herunter (Zeile 2) und entpacken ihn (Zeile 3). Dann erstellen wir ein Verzeichnis, in dem wir CMake kompilieren (Zeile 4) und wechseln in dieses (Zeile 5). Hier führen wir das CMake-bootstrap-Skript aus (Zeile 6), dann den make-Befehl (Zeile 7) und schließlich die Installation als root-Benuzter (Zeile 8).&lt;br /&gt;
&lt;br /&gt;
Wenn Ihr System den &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt;-Befehl nicht beinhaltet, können Sie stattdessen Folgendes eingeben: &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Als nächstes wird Qt 4 benötigt; es befindet sich im KDE-Quell-Repository. KDE kompiliert garantiert gegen jedes Qt der Version 4.3. Qt 4.2 und früher sind nicht unterstützt und funktionieren nicht. Da Qt 4.3 erst kürzlich veröffentlicht worden ist, finden sich wahrscheinlich noch keine Pakete für Ihre Distribution (bekannte Ausnahmen sind Kubuntu und openSUSE). Sie sollten die Kopie auf den KDE-Subversion-Servern verwenden.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
 # make install: Nur wenn QTDIR nicht das momentane Verzeichnis ist!&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Heimverzeichnis des &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt;-Benutzers (Zeile 1) und laden den Quellcode mittels Subversion (svn) herunter (Zeile 2). Nach dem Wechsel in das daraus resultierende Verzeichnis {{path|qt-copy}} (Zeile 3), führen wir ein Skript aus, das die Patches integriert, die mit &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; kommen (Zeile 4). &lt;br /&gt;
&lt;br /&gt;
Sobald die Patches integriert sind, konfigurieren wir das build mittels des &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt;-Skripts (Zeilen 5-7). Die verschiedenen Kommandozeilenoptionen werden in der Datei {{path|qt-copy/README.qt-copy}} erläutert. Schließlich kompilieren wir die Mininalanforderungen für KDE (Zeile 8) und installieren Qt (Zeilen 9-10). Wenn Sie alle Beispiel- und Demo-Applikationen installieren möchten, können Sie sie entweder einzeln kompilieren oder einfach den Befehl &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; im Verzeichnis {{path|qt-copy}} ausführen.&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass die Installation keine root-Rechte verlangt, da Qt lokal in {{path|$QTDIR}} installiert wird. Die Installation ist ohnehin nur nötig, wenn {{path|$QTDIR}} sich von {{path|$HOME/qt-copy}} unterscheidet, was nicht der Fall ist, wenn Sie die Anweisungen exakt befolgt haben.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
Wenn Sie die Fehlerausgabe &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot; erhalten, installieren Sie das devel-Paket von &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (der Name des Pakets kann in verschiedenen Distributionen abweichen, in (K)Ubuntu z. B. ist er &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
Wenn Sie eine Fehlermeldung im configure-Schritt erhalten, die auf &amp;quot;missing defines&amp;quot; hinweist, prüfen Sie den Wert von &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;. Manche Distributionen lassen die Variable direkt auf das standardmäßig installierte Qt verweisen. Wenn der Befehl &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; das Problem löst, sollten Sie überlegen, ihn zum &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt;-Skript hinzuzufügen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie die Fehlermeldung &amp;quot;.pch/debug-shared/QtCore&amp;quot; erhalten, bedeutet dies, dass Qt-4.3 zwar die vorkompilierten header aktiviert hat (wenn Ihr gcc dies unterstützt), es jedoch nicht funktioniert. Wenn Sie distcc nutzen, konfigurieren Sie Qt mit der Option -no-pch. Wenn Sie icecream nutzen, führen Sie ein Update zur neuesten Version von icecream im svn trunk durch.&lt;br /&gt;
&lt;br /&gt;
Versuchen Sie, irgendeine Qt-Applikation zu starten, beispielsweise {{program|assistant}}. Wenn sie in QSpanData::adjustSpanMethods abstürzt, haben Sie ein Problem mit dem Oxygen style. Versuchen Sie, {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} und {{path|lib/kde4/plugins/styles/oxygen.so}} zu entfernen, wenn sie sich im KDE-Installationspräfix finden.&lt;br /&gt;
&lt;br /&gt;
== kdesupport ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4 (de)#Einrichten der Entwicklungsumgebung|Einrichten der Entwicklungsumgebung]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Es gibt eine Reihe von Bibliotheken in kdesupport, von denen andere Programme abhängen. Das umfasst Strigi und Soprano für die Datei-Metadaten und für die Suche, eigen für visuelle Effekte z.B. in Kalzium, taglib für Musik-Programme und qca für Kryptographie-Unterstützung.&lt;br /&gt;
&lt;br /&gt;
Strigi selbst hat ebenfalls einige Abhängigkeiten: Sie benötigen die Bibliotheken von libz, libbz2, openssl (libcrypto oder libssl), libclucene (=0.9.16; Version 0.9.17 funktioniert '''nicht'''), und entweder libxml2 oder libexpat.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # cs is kein Schreibfehler&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/&lt;br /&gt;
 cd kdesupport&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode von kdesupport mittels Subversion herunter (Zeile 2) und wechseln anschließend in das neue Verzeichnis {{path|~/src/kdesupport}} (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von kdesupport wieder.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
Wenn Sie folgende Fehlermeldung bekommen:&lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
dann sollten Sie das Entwicklerpaket für libxml2 installieren (z.B. libxml2-devel oder ähnlich).&lt;br /&gt;
&lt;br /&gt;
Wenn Sie&lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
erhalten, benötigen Sie librdf aus den Redland-Bibliotheken.&lt;br /&gt;
Wenn Ihre Distribution das librdf-Paket nicht zur Verfügung stellt, können Sie dessen Quellcode hier herunterladen [http://download.librdf.org/source/ http://download.librdf.org/source/] und selbst kompilieren. In Gentoo heißt das  Paket 'redland' anstatt librdf.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie &lt;br /&gt;
 Fetching external item into 'kdesupport/admin'&lt;br /&gt;
 Error validating server certificate for 'https://...'&lt;br /&gt;
erhalten, werfen Sie einen Blick auf [http://techbase.kde.org/Getting_Started/Sources/Using_Subversion_with_KDE Using Subversion with KDE]&lt;br /&gt;
&lt;br /&gt;
Bei der Fehlermeldung&lt;br /&gt;
 FILE cannot create directory: /usr/lib[64]/qt4/plugins/crypto&lt;br /&gt;
benötigen Sie zum Installieren des crypto-plugins Administrations-Rechte, vermutlich weil Sie die Systemweite Installation von qt4 verwenden. Am einfachsten ist es, Sie benutzen wie oben angegeben eine für den lokalen Nutzer erstellte.&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
Nachdem wir Qt 4 und Strigi kompiliert haben, können wir nun mit dem Kompilieren  der KDE-Basisbibliotheken fortschreiten. Wenn Sie die oben genannte Anleitung bezüglich [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] nutzen, kommen Ihnen diese neuen Funktionen im Folgenden gelegen. &lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' und 'cb' sind KEINE Tippfehler!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das KDE-Quellverzeichnis (Zeile 1), erstellen ein Verzeichnis names KDE und wechseln in dieses (Zeile 2). Dann laden wir den Quellcode der kdelibs mittels Subversion herunter (Zeile 3), wechseln in das neue Verzeichnis {{path|~/src/KDE/kdelibs}} (Zeile 4) und starten die Kompilierung (Zeile 5). Wir finden uns anschließend im &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;-build-Verzeichnis wieder.&lt;br /&gt;
&lt;br /&gt;
{{tip|Es könnte einige fehlende Anhängigkeiten auf Ihrem System geben! Sie können in der Ausgabe von &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; leicht übersehen werden.&lt;br /&gt;
Sie können vor dem Kompilieren jeglicher KDE-Module (wie kdelibs, kdepimlibs usw.) &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; ausführen.}}&lt;br /&gt;
&lt;br /&gt;
=== Zusätzliche KDE-typische CMake-Module ===&lt;br /&gt;
Es gibt weitere CMake-Module in {{path|kdelibs/cmake/modules/}}, die für die Kompilierung von KDE4-Applikationen nötig sind. Sie werden mit kdelibs installiert (siehe unten).&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
Wenn Sie Schwierigkeiten bei der Kompilierung von kdelibs haben, stellen Sie sicher, dass Sie die Software im obigen Abschnitt [[Getting_Started/Build/KDE4#Required_Software|Required Software]] installiert haben und dass sie funktioniert. Andere mögliche Probleme sind:&lt;br /&gt;
* Wenn der Befehl &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; mit der Ausgabe fehlschlägt, dass CMake ein &amp;quot;out of source&amp;quot; build-Verzeichnis benötigt, entfernen Sie {{path|~/src/KDE/kdelibs/CMakeCache.txt}} und versuchen Sie es erneut.&lt;br /&gt;
&lt;br /&gt;
Wenn &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; dennoch denselben Fehler ausgibt, versuchen Sie Folgendes:&lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot; erhalten, müssen Sie in Ihr build-Verzechnis wechseln bevor Sie cmakekde ausführen. (z. B. &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* Wenn Qt nicht oder in einer falschen Version gefunden wird, stellen Sie sicher, dass das qmake der benötigten Qt-Version an erster Stelle (unter den qmake-Einträgen) im Pfad eingetragen ist.&lt;br /&gt;
* Wenn das Problem nach wie vor vorhanden ist, versuchen Sie die CMake make-Option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Sie benötigen die libungif-Bibliothek, ansonsten erhalten Sie eine Fehlerausgabe ähnlich &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3-Upgrade: Wenn Sie einen Verknüpfnugsfehler in kjsembed erhalten, der auf die QScriptEngine bezogen ist, editieren Sie CMakeCache.txt in kdelibs und entfernen Sie die Zeilen, die sich auf QT_QTUITOOLS_LIBRARY beziehen, und führen Sie den make-Befehl erneut aus (diese statische Bibliothek hat eine neue Abhängigkeit und der cmake-Code, der diese hinzufügt, benötigt sie, um ausgeführt zu werden).&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&amp;lt;/code&amp;gt; erhalten, installieren Sie openssl-devel, und rekompilieren Sie Qt.&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
Sie müssen ''kdepimlibs'' nach &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, aber vor ''kdebase'' installieren.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das KDE-Quellverzeichnis (Zeile 1), laden den Quellcode für kdepimlibs mittels Subversion herunter (Zeile 2) und wechseln anschließend in das neue Verzeichnis {{path|~/src/KDE/kdepimlibs}} (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; wieder.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
Für manche kioslaves könnte kdebase benötigt werden.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Schwierigkeiten beim Kompilieren von kdebase haben:&lt;br /&gt;
* Stellen Sie sicher, dass die &amp;lt;tt&amp;gt;libxss-Header&amp;lt;/tt&amp;gt; installiert sind. (Sollten diese nicht installiert sein, erhalten Sie in der Regel undefinierte Verweise auf xscreensaver-Objekte.)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; muss {{path|/home/kde-devel/kde/bin/meinproc}} ausgeben.&lt;br /&gt;
* Wenn cmakekde das kdepimlibs-Verzeichnis nicht finden kann, editieren Sie die Datei {{path|$KDE_BUILD/kdebase/CMakeCache.txt}} und definieren Sie &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt; manuell.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot; erhalten, installieren Sie das devel-Paket von &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. Auf manchen Systemen ist es separat von &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; gepackt und heißt &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; oder &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt;. Sie müssen eventuell außerdem nach der Installation dieses Paketes die Datei CMakeCache.txt im build Verzeichnis löschen.&lt;br /&gt;
* Dasselbe gilt für die analoge Fehlerausgabe betreffend der Variable &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot;: Sie benötigen das devel-Paket für &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot; erhalten, müssen Sie die libfontconfig-Header installieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot; erhalten, müssen Sie soprano aus kdesupport installieren und dann kdelibs neu kompilieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;‘XserverRegion’ does not name a type&amp;quot; erhalten, stellen Sie sicher, dass Sie die libxcomposite header installiert haben. (In Ubuntu heißen diese &amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
== Lokale API-Dokumentation erstellen ==&lt;br /&gt;
&lt;br /&gt;
Obwohl die API-Dokumentation für KDE online unter [http://api.kde.org api.kde.org] verfügbar ist, kann es hilfreich sein, sie offline verfügbar zu haben, zum Beispiel wenn Sie [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] zum Durchsuchen der Dokumentation nutzen oder wenn Sie nicht ständig online sein können.&lt;br /&gt;
&lt;br /&gt;
Seien Sie sich bewusst, dass das Generieren der API-Dokumentation mehrere Stunden in Anspruch nehmen kann und knapp ein halbes Gigabyte an Speicherplatz benötigt.&lt;br /&gt;
Das Generieren wird von einem Skript in {{path|kdelibs/doc/api}} ausgeführt; Sie benötigen &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt;, um es ausführen zu können.&lt;br /&gt;
&lt;br /&gt;
Um die API-Dokumentation für kdelibs zu generieren, geben Sie Folgendes ein:&lt;br /&gt;
&amp;lt;!--'cs' und 'cb' sind KEINE Tippfehler!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Wiederholen Sie dies nach Bedarf für andere Module.&lt;br /&gt;
&lt;br /&gt;
== Allgemeine Fehlerbehebung ==&lt;br /&gt;
&lt;br /&gt;
Es kann im Laufe der Zeit nach mehrmaligem Ausführen von &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; vorkommen, dass sich das Ausgabeformat einiger Werkzeuge, die in der KDE-Werkzeugkette benutzt werden, ändert. Zum Beispiel werden &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; Dateien vom &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; gelesen, um die Konfigurationsdialoge zu generieren. Da CMake diese Veränderungen nicht erkennt, kann das Kompilieren fehlschlagen. Eine provisorische Lösung ist, die Regenerierung all dieser Dateien zu erzwingen:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
Dasselbe gilt für &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; Dateien wie solche, die mit Qt Designer generiert werden.&lt;br /&gt;
&lt;br /&gt;
== Das war's! ==&lt;br /&gt;
&lt;br /&gt;
Sie sind nun bereit, andere svn-Module in derselben Weise wie kdebase zu kompilieren, KDE 4 zu benutzen und zu testen, sowie Ihre eigenen Patches und Anwendungen zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Siehe auch die Anleitung [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] um Hilfe beim Starten von KDE-4-Anwendungen sowie zur Benutzung von KDevelop zu erhalten.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4</id>
		<title>Getting Started/Build/KDE4</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4"/>
				<updated>2007-06-13T21:14:06Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: /* Qt */ it is part of the usual updates for Fedora 7&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4}}&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Getting Started|&lt;br /&gt;
&lt;br /&gt;
name=Building KDE4 From Source|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
This tutorial shows one way to get KDE from trunk running on Linux/BSD systems. Throughout the tutorial the bash shell is used. If you are interested in building KDE on other systems such as Solaris, MacOS or Microsoft Windows, please visit the [[../|Build]] page and see the links at the bottom for the respective operating systems.&lt;br /&gt;
&lt;br /&gt;
{{warning|Expect a higher risk of build failure '''on Mondays''' when critical changes are implemented. [http://developer.kde.org/~dirk/dashboard/ Dashboard] reports unexpected breakages. You are encouraged to fix failing modules.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Required Software ==&lt;br /&gt;
&lt;br /&gt;
The following must be installed first before you can successfully complete this tutorial:&lt;br /&gt;
* gcc and g++ from the gcc project, preferably version 4.1 or higher&lt;br /&gt;
* svn, the subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* development libraries and headers for X11, OpenGL (mesa-common-dev and libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 and libxslt&lt;br /&gt;
* the &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; script, which is part of kdesdk. You can install it as part of kdesdk (kdesdk-scripts on Debian) or similar package, or just download it itself from [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* the [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info package], which is the freedesktop MIME standard KDE is using now&lt;br /&gt;
* [http://boost.org/ boost], needed by kdebase; after compiling and/or installing boost, in order to make cmake aware about its location (FindBoost),  add boost directory (the one containing include subdirectory) to CMAKE_INCLUDE_PATH or set an environment variable called BOOST_ROOT pointing to boost directory.&lt;br /&gt;
&lt;br /&gt;
You may also want to have the following installed:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
In Kubuntu 7.04 (Feisty) the build dependencies you need are installed with:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev subversion libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can skip the manual installation of Qt 4.3, CMake 2.4.6 and DBus by installing the following packages (and their dependencies).  '''Please Note:''' This will not work for Qt for KDE4 after Alpha 1:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And for fully functional [[apidox]] frame work you also need:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
&lt;br /&gt;
In openSUSE, you can install packages using [http://en.opensuse.org/Zypper Zypper]:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In older releases of SUSE, you can use YaST:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The packages you will need are:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
xorg-x11-devel&lt;br /&gt;
libxml2-devel &lt;br /&gt;
kdesdk3 &lt;br /&gt;
clucene-core-devel &lt;br /&gt;
libjpeg-devel &lt;br /&gt;
liblrdf-devel &lt;br /&gt;
libpng-devel &lt;br /&gt;
libxslt-devel &lt;br /&gt;
redland-devel&lt;br /&gt;
Mesa-devel &lt;br /&gt;
giflib-devel &lt;br /&gt;
subversion &lt;br /&gt;
gcc &lt;br /&gt;
gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CMake binary packages for openSUSE are available from [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo ===&lt;br /&gt;
&lt;br /&gt;
You can use most stable ebuilds just remember to sync your portage before you begin.&lt;br /&gt;
&lt;br /&gt;
We need to be unmasked and/or kept at a lower version to continue.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
# echo 'x11-libs/qt' &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
# echo 'dev-util/cmake' &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
# echo 'dev-cpp/clucene' &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
# echo '&amp;gt;dev-cpp/clucene-0.9.16a' &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are the packages you will need to install, some may already be installed so you may skip those by adding the update flag to emerge.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
$ emerge -avu ebuild/name&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 sys-devel/gcc&lt;br /&gt;
 dev-util/subversion&lt;br /&gt;
 dev-util/pkgconfig&lt;br /&gt;
 x11-base/xorg-x11&lt;br /&gt;
 media-libs/glut&lt;br /&gt;
 media-libs/mesa&lt;br /&gt;
 media-libs/jpeg&lt;br /&gt;
 media-libs/libpng&lt;br /&gt;
 media-libs/giflib&lt;br /&gt;
 dev-cpp/clucene&lt;br /&gt;
 dev-util/cppunit&lt;br /&gt;
 media-libs/liblrdf&lt;br /&gt;
 dev-libs/libxml2&lt;br /&gt;
 dev-libs/libxslt&lt;br /&gt;
 x11-misc/shared-mime-info&lt;br /&gt;
 kde-base/kdesdk-scripts&lt;br /&gt;
 dev-libs/boost&lt;br /&gt;
 x11-libs/qt&lt;br /&gt;
 dev-util/cmake&lt;br /&gt;
 sys-apps/dbus&lt;br /&gt;
 dev-libs/redland&lt;br /&gt;
&lt;br /&gt;
You will start compiling by hand from the [[Getting_Started/Build/KDE4#Strigi|Strigi section]].&lt;br /&gt;
&lt;br /&gt;
Good Luck!&lt;br /&gt;
&lt;br /&gt;
== Create a user account for KDE4 development ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Some people like to have a separate user account for KDE 4 (for instance an old bug deleted files by mistake), and the instructions below were written with that approach.&lt;br /&gt;
&lt;br /&gt;
However it is much more efficient to do everything with a single user account, see [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&lt;br /&gt;
for more details. &lt;br /&gt;
&lt;br /&gt;
You can still follow the instructions below, but don't put the environment variables in your &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, put them in a separate file that you source to switch to the KDE 4 environment.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Command Line ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Using KControl ===&lt;br /&gt;
&lt;br /&gt;
Instead of using the commands above, you can also use the User module in the KDE Control Center if you already have KDE3 installed.&lt;br /&gt;
&lt;br /&gt;
=== Setting up the environment ===&lt;br /&gt;
&lt;br /&gt;
Copy the {{path|~/.bashrc}} from your normal user account to the new kde-devel account. Next, copy and paste the contents of the [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] into {{path|~kde-devel/.bashrc}}. Be sure to comment out the line &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; if you do not have the &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; command available. To make it run, you have to open a new bash or to execute &lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will provide access to commands such as &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; that are used in this tutorial as well as ensure that the proper paths are in place for Qt, KDE and CMake binaries.&lt;br /&gt;
&lt;br /&gt;
For more information, please read the [[Getting Started/Increased Productivity in KDE4 with Scripts]] tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Switching to the New User ===&lt;br /&gt;
Switch to the user kde-devel: (don't forget the dash)&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this tutorial assumes you are running as the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user.&lt;br /&gt;
&lt;br /&gt;
== The development user's shell ==&lt;br /&gt;
&lt;br /&gt;
On some systems a new user is configured by default to use {{path|/bin/sh}}. If this is not the case on your system, you can skip this section. Using {{path|/bin/sh}} can be very inconvenient to work with and you may want to change it to {{path|/bin/bash}} or another shell.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: As the kde-devel user ===&lt;br /&gt;
&lt;br /&gt;
If you don't have root privileges and your system supports the changing of your own shell with the &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; application, then you could try to change your shell to {{path|/bin/bash}} by using:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: As the root user ===&lt;br /&gt;
&lt;br /&gt;
If your system comes with the &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; application you can run the following command as root: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another option is to use the &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; application as root to safely edit your {{path|/etc/passwd}}. Locate 'kde-devel' in the the file. Change '{{path|/bin/sh}}' at the end of the line to read '{{path|/bin/bash}}', save your changes and exit.&lt;br /&gt;
&lt;br /&gt;
The new shell will be started automatically when you log in as the kde-devel user again.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus and KDE are known to work with D-Bus versions 0.62, as well as 0.92 and upwards. Versions 0.60 and 0.61 may work too but are not tested. Versions 0.90 and 0.91 are known not to work. We recommend using post-1.0 release versions (at least 0.94), so consider upgrading if you haven't done so.&lt;br /&gt;
&lt;br /&gt;
You may skip this section if you have a recent D-Bus version or if you don't want to upgrade.&lt;br /&gt;
&lt;br /&gt;
Before running these steps in the recipe, make sure your X11 headers and libraries are available. The configure script run on line 5 should output:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Make sure you did set up your environment correctly as described [[Getting_Started/Build/KDE4#Setting_up_the_environment|above]]. This is necessary for the &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; functions to work.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click here to learn more]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== What's Happening === &lt;br /&gt;
After changing into the source directory (line 1), D-Bus source code is downloaded from freedesktop.org (line 2) and unpacked (line 3). After going into the newly created D-Bus directory (line 4), the build is set up using the supplied {{path|configure}} script (line 5). After building (line 6) and installing (line 7) D-Bus, we use the &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt; tool to install a machine identification file that allows the bus to start automatically when the desktop session starts (line 8).&lt;br /&gt;
&lt;br /&gt;
Note that you need write access to {{path|/var}} for the last two steps. If your system does not have the sudo command, you can use the &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; command instead, e.g. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
If you get the error '''makeobj: command not found''' you are lacking the command &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Skip this if you have [http://cmake.org/ CMake] &amp;gt;=2.4.5 installed. &lt;br /&gt;
You should be able to directly use the binary packages available on the [http://www.cmake.org/HTML/Download.html CMake site]. There are also distribution specific packages available.&lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click Here to learn more]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar -zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== What's Happening ===&lt;br /&gt;
First, we go back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's source directory (line 1), get the CMake sources (line 2) and unpack them (line 3). We create a directory to build CMake in (line 4) and go into it (line 5). We then run the CMake bootstrap script to set up the CMake build (line 6), then make (line 7) and install it (line 8) using the root user.&lt;br /&gt;
&lt;br /&gt;
If your system does not have the &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt; command, you can instead do &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Next we need to get the Qt4 that is in KDE's source repository. KDE is guaranteed to build against any Qt 4.3. Qt 4.2 and earlier are not supported and will not work. Qt 4.3 has been released only recently, so your distribution probably doesn't have packages for it yet (known exceptions: Kubuntu, openSUSE, Fedora, Gentoo, Debian experimental). You should use the copy in the KDE Subversion servers.&lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
&lt;br /&gt;
 # do copy files if the target doesnt match current dir,&lt;br /&gt;
 # clear obj files to save disk space otherwise&lt;br /&gt;
 if [ $QTDIR = `pwd` ]; then \&lt;br /&gt;
 find . -name '*.o' -exec rm {} \; ; \&lt;br /&gt;
 else make install; fi;&lt;br /&gt;
&lt;br /&gt;
=== What's Happening ===&lt;br /&gt;
We switch back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's home directory (line 1) and download the source code using subversion (svn) from KDE's repository (line 2). After changing into the resulting {{path|qt-copy}} directory (line 3), we run a script that manages the patches that come with &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; (line 4). &lt;br /&gt;
&lt;br /&gt;
Once the patches have been applied, we then set up the build using the &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt; script (line 5-7). The various command line options used are explained in the {{path|qt-copy/README.qt-copy}} file. Finally, we build the minimal requirements for KDE (line 8) and install (line 9-10) Qt. If you want all the example and demo applications, you can either build them individually or simply do a &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; from the {{path|qt-copy}} directory. &lt;br /&gt;
&lt;br /&gt;
Note that the installation does not require root as it installs Qt locally into {{path|$QTDIR}}. Anyway, installation is only needed if {{path|$QTDIR}} differs from {{path|$HOME/qt-copy}}, which is not the case if you have exactly followed the instructions.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
If you get &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (the actual name may vary between operating systems, for example it is &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt; on Ubuntu based systems such as Kubuntu). &lt;br /&gt;
&lt;br /&gt;
If you get an error in the configure step about missing defines, check the value of &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;.  Some distributions set this to point directly to the system-installed Qt.  If &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; solves the problem, you probably want to add it to the &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt; script.&lt;br /&gt;
&lt;br /&gt;
If you get an error &amp;quot;.pch/debug-shared/QtCore&amp;quot;, this is because Qt-4.3 enables precompiled headers if your gcc supports it, but for some reason it doesn't work for you. If you use distcc, configure qt with -no-pch. If you use icecream, update to the latest icecream from svn trunk.&lt;br /&gt;
&lt;br /&gt;
Try running any Qt program, like {{program|assistant}}. If it crashes in QSpanData::adjustSpanMethods, then your problem is the oxygen style. Try removing {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} and {{path|lib/kde4/plugins/styles/oxygen.so}} if they exist in the KDE install prefix.&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
{{warning|If you have jumped to this section without reading [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]], '''the recipes provided will not work'''. &lt;br /&gt;
&lt;br /&gt;
The recipes are not in error; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; are not typos. Your environment '''needs''' to be set up correctly for these instructions to work for you.}}&lt;br /&gt;
&lt;br /&gt;
The code for getting file metadata now relies on Strigi. To install Strigi you need the libraries and headers for libz, libbz2, openssl (libcrypto or libssl), libclucene (=0.9.16; version 0.9.17 does '''not''' work), and either libxml2 or libexpat.&lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi&lt;br /&gt;
 cd strigi&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== What's Happening ===&lt;br /&gt;
We change to the base source directory (line 1). We download the sources for Strigi using subversion (line 2), go into the new {{path|~/src/strigi}} directory (line 3), and commence the build (line 4). This will leave us in the strigi build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
==== TroubleShooting ====&lt;br /&gt;
If you get &lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
you should install the development package for libxml2.&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
{{warning|If you have jumped to this section without reading [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]], '''the recipes provided will not work'''. &lt;br /&gt;
&lt;br /&gt;
The recipes are not in error; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; are not typos. Your environment '''needs''' to be set up correctly for these instructions to work for you.}}&lt;br /&gt;
&lt;br /&gt;
The code for getting file kmetadata relies on Soprano. To install Soprano you need the libraries and headers for librdf.&lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano&lt;br /&gt;
 cd soprano&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== What's Happening ===&lt;br /&gt;
We change to the base source directory (line 1). We download the sources for Soprano using subversion (line 2), go into the new {{path|~/src/soprano}} directory (line 3), and commence the build (line 4). This will leave us in the soprano build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
==== TroubleShooting ====&lt;br /&gt;
If you get &lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
then you need librdf from the Redland.&lt;br /&gt;
If your distribution does not provide the librdf package, you can download the source there: [http://download.librdf.org/source/ http://download.librdf.org/source/] and build it.&lt;br /&gt;
(Gentoo users: The ebuild for librdf is named dev-libs/redland)&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
&lt;br /&gt;
With Qt4, Strigi, and Soprano built, we can now move on to building KDE's base libraries. If you use the aforementioned [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] this is where those new functions come in handy. &lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== What's Happening ===&lt;br /&gt;
We change to the base source directory (line 1) then make and go into the KDE directory (line 2). We download the sources for kdelibs using subversion (line 3), go into the new {{path|~/src/KDE/kdelibs}} directory (line 4), and commence the build (line 5). This will leave us in the &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
{{tip|There might be missing dependencies on your system! They are easily overlooked in the output of &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;.&lt;br /&gt;
You might want to do a &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; prior to compiling any kde modules (like kdelibs, kdepimlibs etc.)}}&lt;br /&gt;
&lt;br /&gt;
=== Additional KDE-specific CMake modules ===&lt;br /&gt;
There are additional CMake modules in {{path|kdelibs/cmake/modules/}} that are necessary for building KDE4 applications. These will be installed for you when  kdelibs itself is installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
If you have problems compiling kdelibs, first make sure the software in the [[Getting_Started/Build/KDE4#Required_Software|Required Software]] section above is installed and works. Other possible hints include:&lt;br /&gt;
* If the &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; command fails stating that CMake requires an out of source build directory, remove {{path|~/src/KDE/kdelibs/CMakeCache.txt}}, and try again.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; still gives the same error then try this &lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* If you received an error stating &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot;, then you need to change to your build directory before running cmakekde. (e.g &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* If Qt wasn't found or the wrong version of Qt was found, make sure that the qmake from the Qt you need is the first qmake in the path.&lt;br /&gt;
* If the problems persist, try the CMake make-option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Here you need the libungif library, otherwise you will get an error message like &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3 upgrade: if you get a link error in kjsembed talking about QScriptEngine, edit CMakeCache.txt in kdelibs and remove the lines that talk about QT_QTUITOOLS_LIBRARY, then type make again (that static library has a new dependency, and the cmake code that adds it needs to run).&lt;br /&gt;
* if you get &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&lt;br /&gt;
&amp;lt;/code&amp;gt;, install openssl-devel, and re-compile QT.&lt;br /&gt;
* if you get &amp;lt;code&amp;gt;kdelibs/kimgio/ico.cpp:188: undefined reference to `QImage::jumpTable()'&amp;lt;/code&amp;gt; it means you compiled QT without QT3 support(no, linking to a true QT3 install won't work)&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
After &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, but before ''kdebase'', you need to build and install ''kdepimlibs''.&lt;br /&gt;
&lt;br /&gt;
=== The Recipe ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== What's Happening ===&lt;br /&gt;
We go into the KDE source directory (line 1), download the source code for kdepimlibs using subversion (line 2) and then go into the new {{path|~/src/KDE/kdepimlibs}} directory (line 3). We then commence the build (line 4). This will leave us in the &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
You may need kdebase for some kioslaves.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
If you have troubles compiling kdebase:&lt;br /&gt;
* Make sure you have the &amp;lt;tt&amp;gt;libxss headers&amp;lt;/tt&amp;gt; installed. (Usually you got undefined references on xscreensaver objects if you haven't those headers)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; has to deliver {{path|/home/kde-devel/kde/bin/meinproc}}&lt;br /&gt;
* if cmakekde can not find the path of kdepimlibs, edit the file {{path|$KDE_BUILD/KDE/kdebase/CMakeCache.txt}} and manually set &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt;&lt;br /&gt;
* if you get an error saying &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. On some systems, this is packaged separately from &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; and called &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt;. You may also need to remove the CMakeCache.txt file in the build dir after installing the package.&lt;br /&gt;
* the same for &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot; where you will need the devel package for &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* if you get the error &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot;, then you need to install  the libfontconfig headers&lt;br /&gt;
* if you get the error &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot;, you need to install soprano from kdesupport and to rebuild kdelibs&lt;br /&gt;
* if you get the error &amp;quot;‘XserverRegion’ does not name a type&amp;quot; make sure you have libxcomposite headers installed (&amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt; in ubuntu)&lt;br /&gt;
&lt;br /&gt;
== Generating local API documentation ==&lt;br /&gt;
Although the API documentation for KDE is available online at [http://api.kde.org api.kde.org], it is sometimes useful to have it on your own disk, for example when you want to use [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] for browsing the documentation or when you are not able to be online all the time.&lt;br /&gt;
&lt;br /&gt;
Be aware that generating the API documentation can take several hours and takes almost half a gigabyte of diskspace.&lt;br /&gt;
The generation is handled by a script in {{path|kdelibs/doc/api}}, you need &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt; to be able to run it. &lt;br /&gt;
&lt;br /&gt;
To build the API documentation for kdelibs, type the following:&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Repeat for other modules as desired.&amp;lt;br&amp;gt;&lt;br /&gt;
 cd &amp;lt;module home&amp;gt;&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
== General troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
What can happen over time, after some &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; commands, is that some of the tools used in the KDE build chain change their output format. For example, &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; files are read by &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; to produce configuration dialogs. CMake cannot detect those changes, and the compilation might fail. A workaround is to always force a re-generation of all such files:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
The same applies to &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; files as produced by Qt designer.&lt;br /&gt;
&lt;br /&gt;
== Success! ==&lt;br /&gt;
&lt;br /&gt;
You are now ready to start building other svn modules in the same fashion as you built kdebase, running and testing KDE4 or writing your own patches and applications.&lt;br /&gt;
&lt;br /&gt;
See the [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] tutorial for how to start KDE 4 applications and how to use KDevelop to work on them.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Talk:Installing_third_party_softwares_in_terminal/Build/KDE4</id>
		<title>Talk:Installing third party softwares in terminal/Build/KDE4</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Talk:Installing_third_party_softwares_in_terminal/Build/KDE4"/>
				<updated>2007-06-07T01:08:46Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: /* Amount of space needed? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== This article is full of errors ====&lt;br /&gt;
&lt;br /&gt;
For example it *is* nessecary to install qt-copy, even if you keep it in the source directory (which leads to 394583069845 error messages on the console during the install). And kdelibs won't build unless something unknown is done with strigi - if it is installed into KDEDIR, it isn't just found.&lt;br /&gt;
&lt;br /&gt;
==== This article is complicated ====&lt;br /&gt;
when I wrote this article, it was lean and simple. It has been improved somewhere, but on most places worsened. An example is the directory structure (to get to qt-copy: cd &amp;amp;&amp;amp; cd qt-copy; to get to kdelibs: cs &amp;amp;&amp;amp; cd kdelibs; to get to kdepim: cs &amp;amp;&amp;amp; cd KDE &amp;amp;&amp;amp; cd kdepim - no one understands this!!!).&lt;br /&gt;
Another example is cs and cb which is quite unnecessary as my initial article shows. But of course, with the complexity as the article has NOW, it IS necessary.&lt;br /&gt;
&lt;br /&gt;
Why do you spoil a simple article so that even I no longer find my own subdirs ?&lt;br /&gt;
--­­­­[[User:Tstaerk|Tstaerk]] 10:25, 28 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
: Where do you see &amp;quot;cs &amp;amp;&amp;amp; cd KDE &amp;amp;&amp;amp; cd kdepim&amp;quot;? Because I don't see that anywhere. In any case it would just be &amp;quot;cs kdepim&amp;quot;. Perhaps that's the bit need explaining a bit better? --[[User:Aseigo|Aseigo]] 02:48, 29 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:To whom are you talking to? ;) There are many contributors and as it's a wiki an article probably &amp;quot;degenerates&amp;quot; automatically if noone has an eye on it. The article certainly has valuable information and simply needs a cleanup. In other words: Fix it! :) --[[User:Dhaumann|Dhaumann]] 12:20, 28 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
::IMHO all of this cs/cb/cmakekde and such is only confusing, users just do copy&amp;amp;paste with no really knowledge of what's going on when they type those commands. This way troubleshooting is quite difficult, and they learn nothing about the '''real''' compiling way. The concept of source/build dirs is barely noted. The ''old'' http://developer.kde.org/build/trunk.html has some more commands to type, but it was quite more understandable and clear about the '''real''' steps to do. --[[user:Pino|pino]] 12:54, 28 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
::: Yes, this article could go back to being more verbose. I suppose what is missing is an explanation of ''why'' the shortcuts are used. They are there for a reason. I also don't get the differentiation between real and not real steps; unless we now consider using the shell for what it was designed for as not real. --[[User:Aseigo|Aseigo]] 02:48, 29 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:::: What's wrong in explicitely telling:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co .../kdelibs&lt;br /&gt;
mkdir build-kdelibs&lt;br /&gt;
cd build-kdelibs&lt;br /&gt;
cmake &amp;lt;options&amp;gt; ../kdelibs&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:::: After all, we did that with the &amp;lt;tt&amp;gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&amp;lt;/tt&amp;gt; sequence in KDE 3 times, and that worked quite fine. I still fail why we have to make our things more complicated. Moreover, these macros force fixed paths -- [[user:Pino|pino]] 23:43, 29 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
==== Q: What is cs and cb? ====&lt;br /&gt;
&lt;br /&gt;
A: '''This is not a typo'''. Read the article about setting up your .bashrc.  Both '''cs''' and '''cb''' are bash functions, used to change to the KDE source directory and KDE build directory respectively.&lt;br /&gt;
&lt;br /&gt;
==== Q: Are there build instructions for other OS? ====&lt;br /&gt;
&lt;br /&gt;
A: Actually '''yes''', for [[Getting Started/Build/KDE4/Mac OS X|Mac OS X]]. There also is [http://www.kdelibs.com kdelibs.com] (see also [[User_talk:Jstaniek#KDElibs.com_and_developernew.kde.org_coexistence|here]]) which will be merged into this wiki in the future.&lt;br /&gt;
&lt;br /&gt;
==== Q: Isn't the install prefix, make and make install missing for modules like kdelibs and kdebase? ====&lt;br /&gt;
A: No. The shell function ''cmakekde'' handels this, have a look at the file [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|.bashrc]].&lt;br /&gt;
&lt;br /&gt;
==== Q: How can I generate API Documentation for other modules? ====&lt;br /&gt;
A: Try the following code, replacing &amp;lt;modulename&amp;gt; with your desired module:&lt;br /&gt;
 cs&lt;br /&gt;
 mkdir -p apidox&lt;br /&gt;
 cs apidox&lt;br /&gt;
 ../kdelibs/doc/api/doxygen.sh ../&amp;lt;modulename&amp;gt;/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I tried that and got the following:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
kdedev@PC1:~/src/KDE/apidox$ ../kdelibs/doc/api/doxygen.sh ../kdepimlibs/&lt;br /&gt;
*** doxygen.sh&lt;br /&gt;
* $DOXDATA does not name a directory ( or is unset ), tried &amp;quot;/media/kdedev/home/src/KDE/kdepimlibs/doc/common&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
What is wrong here? -[[User:TMG|TMG]] 23:55, 28 March 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
==== Q: I changed the first command of the &amp;quot;Set up QT - Recipe&amp;quot; from cd to cs because I think this was a typo. Am I right?? ====&lt;br /&gt;
A: Right --[[User:Dhaumann|Dhaumann]]&lt;br /&gt;
&lt;br /&gt;
:: no, it was perfectly intentional. see the [[/Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc bashrc in the productivity with KDE4 scripts tutorial]]. it has QTDIR set to ~/qt-copy. this makes sense, actually, since building Qt is done rather differently from the rest of KDE and one may not get Qt from KDE's svn in any case. so yes, it is supposed to be cd, not cs.&lt;br /&gt;
&lt;br /&gt;
::: *blush* ;) i should read more carefully. --[[User:Dhaumann|Dhaumann]] &lt;br /&gt;
&lt;br /&gt;
==== Notes: ~/install ====&lt;br /&gt;
&lt;br /&gt;
When installing KDE4, I strongly recommend installing all tools (like dbus and cmake) and kde packages into the same place, e.g. ~/install. Qt is the only exception.&lt;br /&gt;
&lt;br /&gt;
The reason for this is because if you install some packages to ~/kde and some to /usr/local and maybe one in /usr then cmake will generate errors like:&lt;br /&gt;
&lt;br /&gt;
-- It is impossible to order the include directories.&lt;br /&gt;
&lt;br /&gt;
This is not a fatal error, so you will still be able to compile, but you will possibly be using the wrong versions of libraries and this will product problems that are very hard to diagnose.&lt;br /&gt;
&lt;br /&gt;
You may not experience any problems when installed like I advise not to, however I have and you might too in some typical situations.&lt;br /&gt;
&lt;br /&gt;
Please see:&lt;br /&gt;
&lt;br /&gt;
http://developer.kde.org/build/trunk.html&lt;br /&gt;
&lt;br /&gt;
==== Install CMake modules local ====&lt;br /&gt;
&lt;br /&gt;
The CMake modules should be installed local into ~/install/cmake/modules or similar.&lt;br /&gt;
When following the current instructions [[ Getting_Started/Build/KDE4#Install_additional_CMake_modules|6.1: Install additional CMake modules]],  it's impossible to do a non-root installation, because &amp;quot;kdelibs/cmake/modules/cmake_install.cmake&amp;quot; wants to install the modules to &amp;quot;/cmake/modules&amp;quot;. (I didn't install CMake local, because my system already provided CMake &amp;gt; 2.4.3).&lt;br /&gt;
&lt;br /&gt;
I've already tried to do this, fiddling around with CMAKE_MODULE_PATH and DATA_INSTALL_DIR but couldn't get it working.&lt;br /&gt;
&lt;br /&gt;
Does anybody know how to do this properly?&lt;br /&gt;
&lt;br /&gt;
--[[User:Eliasp|Eliasp]] 15:44, 4 January 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Fixes needed ====&lt;br /&gt;
* qt-copy: Should we pass the -debug flag?  Doesn't Qt install debug information separately by default anyways?  Or is that just in the snapshot? --[[User:Mpyne|Mpyne]]&lt;br /&gt;
&lt;br /&gt;
: according to ./configure --help, the default is -release in snapshot. --[[User:Aseigo|Aseigo]] 04:33, 14 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
* In the part of the tutorial that describes how to create a new users, shoudn't to have an edit /etc/sudoers to add permitions for kde-devel call sudo? --[[User:SilveiraNeto|SilveiraNeto]] 03:01, 14 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
: no. why would you want them to have sudo access?&lt;br /&gt;
&lt;br /&gt;
==== libungif/giflib ====&lt;br /&gt;
Since the patents expired, why not use giflib?&lt;br /&gt;
&lt;br /&gt;
==== Old gcc and -pch flag ====&lt;br /&gt;
In Qt part I had problems with error like this: [http://www.qtforum.org/thread.php?threadid=19998 QtForum thread]. I had GCC 3.3.X installed. Using -pch flag (as in recipe) get me errors. Someone friendly gave me tip on #kde-devel not to use this flag, although I didn't test it. Instead I've just updated gcc and g++ from debian repositories. Newer version works fine as &amp;quot;Precompiled headers are supported in GCC (3.4 and newer)&amp;quot; [http://en.wikipedia.org/wiki/Precompiled_header Wikipedia pch].&lt;br /&gt;
&lt;br /&gt;
==== Build status ====&lt;br /&gt;
&lt;br /&gt;
You might want to include the [http://developer.kde.org/~dirk/dashboard/ dashboard link] to show which modules currently build and which don't. --[[User:141.35.8.106|141.35.8.106]] 13:28, 20 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== Extra optional software ==&lt;br /&gt;
&lt;br /&gt;
- openldap&lt;br /&gt;
- cyrus&lt;br /&gt;
&lt;br /&gt;
If there was a line at the top like:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libaaa-dev libbbb-dev ...-dev ...&lt;br /&gt;
&lt;br /&gt;
This would be very useful and save hours. Is this something we should do?&lt;br /&gt;
&lt;br /&gt;
== su - kde4 didn't set the variables ==&lt;br /&gt;
&lt;br /&gt;
after running 'su - kde4' and 'export' i saw that no variables in .bashrc were set, instead the old one (of the system) where set. I tried 'su kde4' and it worked fine. Why is that?&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo 2006.1 amd64&lt;br /&gt;
&lt;br /&gt;
== Qt Flags ==&lt;br /&gt;
&lt;br /&gt;
Are &amp;quot;-pch&amp;quot; and &amp;quot;-qdbus&amp;quot; really needed? The configure script shows that they're enabled by default. --[[User:McEnroe|McEnroe]] 16:49, 19 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Amount of space needed? ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to know how much space (roughly, in GB) you need for a setup to build and run the basic things and packages. --[[User:Liquidat|Liquidat]] 03:08, 7 June 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Talk:Installing_third_party_softwares_in_terminal/Build/KDE4</id>
		<title>Talk:Installing third party softwares in terminal/Build/KDE4</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Talk:Installing_third_party_softwares_in_terminal/Build/KDE4"/>
				<updated>2007-06-07T01:08:21Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: Amount of space needed?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== This article is full of errors ====&lt;br /&gt;
&lt;br /&gt;
For example it *is* nessecary to install qt-copy, even if you keep it in the source directory (which leads to 394583069845 error messages on the console during the install). And kdelibs won't build unless something unknown is done with strigi - if it is installed into KDEDIR, it isn't just found.&lt;br /&gt;
&lt;br /&gt;
==== This article is complicated ====&lt;br /&gt;
when I wrote this article, it was lean and simple. It has been improved somewhere, but on most places worsened. An example is the directory structure (to get to qt-copy: cd &amp;amp;&amp;amp; cd qt-copy; to get to kdelibs: cs &amp;amp;&amp;amp; cd kdelibs; to get to kdepim: cs &amp;amp;&amp;amp; cd KDE &amp;amp;&amp;amp; cd kdepim - no one understands this!!!).&lt;br /&gt;
Another example is cs and cb which is quite unnecessary as my initial article shows. But of course, with the complexity as the article has NOW, it IS necessary.&lt;br /&gt;
&lt;br /&gt;
Why do you spoil a simple article so that even I no longer find my own subdirs ?&lt;br /&gt;
--­­­­[[User:Tstaerk|Tstaerk]] 10:25, 28 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
: Where do you see &amp;quot;cs &amp;amp;&amp;amp; cd KDE &amp;amp;&amp;amp; cd kdepim&amp;quot;? Because I don't see that anywhere. In any case it would just be &amp;quot;cs kdepim&amp;quot;. Perhaps that's the bit need explaining a bit better? --[[User:Aseigo|Aseigo]] 02:48, 29 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:To whom are you talking to? ;) There are many contributors and as it's a wiki an article probably &amp;quot;degenerates&amp;quot; automatically if noone has an eye on it. The article certainly has valuable information and simply needs a cleanup. In other words: Fix it! :) --[[User:Dhaumann|Dhaumann]] 12:20, 28 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
::IMHO all of this cs/cb/cmakekde and such is only confusing, users just do copy&amp;amp;paste with no really knowledge of what's going on when they type those commands. This way troubleshooting is quite difficult, and they learn nothing about the '''real''' compiling way. The concept of source/build dirs is barely noted. The ''old'' http://developer.kde.org/build/trunk.html has some more commands to type, but it was quite more understandable and clear about the '''real''' steps to do. --[[user:Pino|pino]] 12:54, 28 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
::: Yes, this article could go back to being more verbose. I suppose what is missing is an explanation of ''why'' the shortcuts are used. They are there for a reason. I also don't get the differentiation between real and not real steps; unless we now consider using the shell for what it was designed for as not real. --[[User:Aseigo|Aseigo]] 02:48, 29 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:::: What's wrong in explicitely telling:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co .../kdelibs&lt;br /&gt;
mkdir build-kdelibs&lt;br /&gt;
cd build-kdelibs&lt;br /&gt;
cmake &amp;lt;options&amp;gt; ../kdelibs&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:::: After all, we did that with the &amp;lt;tt&amp;gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&amp;lt;/tt&amp;gt; sequence in KDE 3 times, and that worked quite fine. I still fail why we have to make our things more complicated. Moreover, these macros force fixed paths -- [[user:Pino|pino]] 23:43, 29 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
==== Q: What is cs and cb? ====&lt;br /&gt;
&lt;br /&gt;
A: '''This is not a typo'''. Read the article about setting up your .bashrc.  Both '''cs''' and '''cb''' are bash functions, used to change to the KDE source directory and KDE build directory respectively.&lt;br /&gt;
&lt;br /&gt;
==== Q: Are there build instructions for other OS? ====&lt;br /&gt;
&lt;br /&gt;
A: Actually '''yes''', for [[Getting Started/Build/KDE4/Mac OS X|Mac OS X]]. There also is [http://www.kdelibs.com kdelibs.com] (see also [[User_talk:Jstaniek#KDElibs.com_and_developernew.kde.org_coexistence|here]]) which will be merged into this wiki in the future.&lt;br /&gt;
&lt;br /&gt;
==== Q: Isn't the install prefix, make and make install missing for modules like kdelibs and kdebase? ====&lt;br /&gt;
A: No. The shell function ''cmakekde'' handels this, have a look at the file [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|.bashrc]].&lt;br /&gt;
&lt;br /&gt;
==== Q: How can I generate API Documentation for other modules? ====&lt;br /&gt;
A: Try the following code, replacing &amp;lt;modulename&amp;gt; with your desired module:&lt;br /&gt;
 cs&lt;br /&gt;
 mkdir -p apidox&lt;br /&gt;
 cs apidox&lt;br /&gt;
 ../kdelibs/doc/api/doxygen.sh ../&amp;lt;modulename&amp;gt;/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I tried that and got the following:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
kdedev@PC1:~/src/KDE/apidox$ ../kdelibs/doc/api/doxygen.sh ../kdepimlibs/&lt;br /&gt;
*** doxygen.sh&lt;br /&gt;
* $DOXDATA does not name a directory ( or is unset ), tried &amp;quot;/media/kdedev/home/src/KDE/kdepimlibs/doc/common&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
What is wrong here? -[[User:TMG|TMG]] 23:55, 28 March 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
==== Q: I changed the first command of the &amp;quot;Set up QT - Recipe&amp;quot; from cd to cs because I think this was a typo. Am I right?? ====&lt;br /&gt;
A: Right --[[User:Dhaumann|Dhaumann]]&lt;br /&gt;
&lt;br /&gt;
:: no, it was perfectly intentional. see the [[/Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc bashrc in the productivity with KDE4 scripts tutorial]]. it has QTDIR set to ~/qt-copy. this makes sense, actually, since building Qt is done rather differently from the rest of KDE and one may not get Qt from KDE's svn in any case. so yes, it is supposed to be cd, not cs.&lt;br /&gt;
&lt;br /&gt;
::: *blush* ;) i should read more carefully. --[[User:Dhaumann|Dhaumann]] &lt;br /&gt;
&lt;br /&gt;
==== Notes: ~/install ====&lt;br /&gt;
&lt;br /&gt;
When installing KDE4, I strongly recommend installing all tools (like dbus and cmake) and kde packages into the same place, e.g. ~/install. Qt is the only exception.&lt;br /&gt;
&lt;br /&gt;
The reason for this is because if you install some packages to ~/kde and some to /usr/local and maybe one in /usr then cmake will generate errors like:&lt;br /&gt;
&lt;br /&gt;
-- It is impossible to order the include directories.&lt;br /&gt;
&lt;br /&gt;
This is not a fatal error, so you will still be able to compile, but you will possibly be using the wrong versions of libraries and this will product problems that are very hard to diagnose.&lt;br /&gt;
&lt;br /&gt;
You may not experience any problems when installed like I advise not to, however I have and you might too in some typical situations.&lt;br /&gt;
&lt;br /&gt;
Please see:&lt;br /&gt;
&lt;br /&gt;
http://developer.kde.org/build/trunk.html&lt;br /&gt;
&lt;br /&gt;
==== Install CMake modules local ====&lt;br /&gt;
&lt;br /&gt;
The CMake modules should be installed local into ~/install/cmake/modules or similar.&lt;br /&gt;
When following the current instructions [[ Getting_Started/Build/KDE4#Install_additional_CMake_modules|6.1: Install additional CMake modules]],  it's impossible to do a non-root installation, because &amp;quot;kdelibs/cmake/modules/cmake_install.cmake&amp;quot; wants to install the modules to &amp;quot;/cmake/modules&amp;quot;. (I didn't install CMake local, because my system already provided CMake &amp;gt; 2.4.3).&lt;br /&gt;
&lt;br /&gt;
I've already tried to do this, fiddling around with CMAKE_MODULE_PATH and DATA_INSTALL_DIR but couldn't get it working.&lt;br /&gt;
&lt;br /&gt;
Does anybody know how to do this properly?&lt;br /&gt;
&lt;br /&gt;
--[[User:Eliasp|Eliasp]] 15:44, 4 January 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Fixes needed ====&lt;br /&gt;
* qt-copy: Should we pass the -debug flag?  Doesn't Qt install debug information separately by default anyways?  Or is that just in the snapshot? --[[User:Mpyne|Mpyne]]&lt;br /&gt;
&lt;br /&gt;
: according to ./configure --help, the default is -release in snapshot. --[[User:Aseigo|Aseigo]] 04:33, 14 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
* In the part of the tutorial that describes how to create a new users, shoudn't to have an edit /etc/sudoers to add permitions for kde-devel call sudo? --[[User:SilveiraNeto|SilveiraNeto]] 03:01, 14 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
: no. why would you want them to have sudo access?&lt;br /&gt;
&lt;br /&gt;
==== libungif/giflib ====&lt;br /&gt;
Since the patents expired, why not use giflib?&lt;br /&gt;
&lt;br /&gt;
==== Old gcc and -pch flag ====&lt;br /&gt;
In Qt part I had problems with error like this: [http://www.qtforum.org/thread.php?threadid=19998 QtForum thread]. I had GCC 3.3.X installed. Using -pch flag (as in recipe) get me errors. Someone friendly gave me tip on #kde-devel not to use this flag, although I didn't test it. Instead I've just updated gcc and g++ from debian repositories. Newer version works fine as &amp;quot;Precompiled headers are supported in GCC (3.4 and newer)&amp;quot; [http://en.wikipedia.org/wiki/Precompiled_header Wikipedia pch].&lt;br /&gt;
&lt;br /&gt;
==== Build status ====&lt;br /&gt;
&lt;br /&gt;
You might want to include the [http://developer.kde.org/~dirk/dashboard/ dashboard link] to show which modules currently build and which don't. --[[User:141.35.8.106|141.35.8.106]] 13:28, 20 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== Extra optional software ==&lt;br /&gt;
&lt;br /&gt;
- openldap&lt;br /&gt;
- cyrus&lt;br /&gt;
&lt;br /&gt;
If there was a line at the top like:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libaaa-dev libbbb-dev ...-dev ...&lt;br /&gt;
&lt;br /&gt;
This would be very useful and save hours. Is this something we should do?&lt;br /&gt;
&lt;br /&gt;
== su - kde4 didn't set the variables ==&lt;br /&gt;
&lt;br /&gt;
after running 'su - kde4' and 'export' i saw that no variables in .bashrc were set, instead the old one (of the system) where set. I tried 'su kde4' and it worked fine. Why is that?&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo 2006.1 amd64&lt;br /&gt;
&lt;br /&gt;
== Qt Flags ==&lt;br /&gt;
&lt;br /&gt;
Are &amp;quot;-pch&amp;quot; and &amp;quot;-qdbus&amp;quot; really needed? The configure script shows that they're enabled by default. --[[User:McEnroe|McEnroe]] 16:49, 19 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Amount of space needed? ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to know how much space (roughly, in GB) you need for a setup to build and run the basic things and packages.&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/User:Liquidat</id>
		<title>User:Liquidat</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/User:Liquidat"/>
				<updated>2007-06-07T01:00:13Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not much to tell, but most people know me through my blog:&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://liquidat.wordpress.com /home/liquidat]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4_(de)</id>
		<title>Getting Started/Build/KDE4 (de)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4_(de)"/>
				<updated>2007-06-05T14:15:56Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: /* Qt */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n_Getting_Started_Build_KDE4}}&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Vorbereitungen|&lt;br /&gt;
&lt;br /&gt;
name=KDE4 aus dem Quellcode bauen|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Übersicht ==&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt einen Weg, KDE auf Linux- und BSD-Systemen&lt;br /&gt;
zu komplieren und auszuführen. Als Grundlage verwenden wir die Shell.&lt;br /&gt;
Wenn Sie sich für die Installation auf anderen Systeme wie etwa Solaris, MacOS oder Microsoft Windows interessieren, besuchen Sie bitte [[../|Build]] und folgen Sie den Links am Ende der Seite.&lt;br /&gt;
&lt;br /&gt;
{{warning|Stellen Sie sich auf verstärkt auftretende Buildprobleme '''an Montagen''' ein, da die Entwickler an diesem Wochentag kritische Änderungen vornehmen. Das [http://developer.kde.org/~dirk/dashboard/ Dashboard] zeigt unerwartete Probleme beim Kompilieren an.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Benötigte Software ==&lt;br /&gt;
&lt;br /&gt;
Folgendes muss installiert sein, um dieses Tutorial erfolgreich durchführen zu können:&lt;br /&gt;
* gcc und g++ vom gcc Projekt, vorzugsweise Version 4.1 oder höher&lt;br /&gt;
* svn, der subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* devel-(Entwicklungs-)Bibliotheken und -header für X11, OpenGL (mesa-common-dev und libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 und libxslt&lt;br /&gt;
* Das &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; Skript, welches Teil von kdesdk ist. Sie können es als Teil von kdesdk (kdesdk-scripts in Debian) installieren oder von hier einzeln herunterladen: [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* das [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info Paket], welches der freedesktop-MIME-Standard ist, den KDE nun nutzt&lt;br /&gt;
* [http://boost.org/ boost], welches von kdebase gebraucht wird. Nach dem Kompilieren und/oder Installieren von boost fügen Sie das boost-Verzeichnis (das, welches das include-Unterverzeichnis enthält) zu CMAKE_INCLUDE_PATH hinzu, oder kreieren Sie eine Umgebungsvariable namens BOOST_ROOT, die zum boost-Verzeichnis verweist, um cmake den Ort von boost mitzuteilen (FindBoost).&lt;br /&gt;
&lt;br /&gt;
Weiterhin ist es zu empfehlen, folgende Software bereits installiert zu haben:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
In Kubuntu 7.04 (Feisty) kann alle zum Bau der Pakete benötigte Software mit folgendem Befehl installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die manuelle Installation von Qt 4.3, CMake 2.4.6 und DBus kann durch die Installation der folgenden Pakete und ihrer Abhängigkeiten vermieden werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Für eine voll funktionstüchtige [[apidox]]-Umgebung wird ebenfalls zusätzliche Software benötigt:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
{{note|&lt;br /&gt;
Der openSUSE build service stellt ebenfalls tagesaktuelle KDE-4-Pakete bereit, die das gesamte auf dieser Seite beschriebene Vorgehen überflüssig machen. Weitere Informationen findet man direkt im openSUSE wiki unter [http://de.opensuse.org/KDE4 KDE4].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In OpenSuse können Pakete mit Hilfe von [http://de.opensuse.org/Zypper Zypper] installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In älteren SUSE-Versionen geht dies nur mit Yast:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die meisten zum Bau von KDE 4 nötigen Pakete sind:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
xorg-x11-devel, libxml2-devel, kdesdk3, clucene-core-devel, libjpeg-devel, liblrdf-devel, libpng-devel, libxslt-devel, Mesa-devel, giflib-devel, subversion, gcc, gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bereits vorkompilierte CMake-Pakete für openSUSE sind direkt verfügbar im  [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
== Ein Benutzer für die KDE-4-Entwicklung ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Einige Menschen ziehen es vor, für KDE 4 einen separaten Nutzer-Account einzurichten, um nicht aus Versehen durch noch bestehende Bugs oder ähnliches Daten zu verlieren. Die Anleitung hier basiert auf der Herangehensweise.&lt;br /&gt;
&lt;br /&gt;
Es ist jedoch deutlich effizienter alles mit einem einzigen Nutzer-Account zu machen. Unter [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]] findet man mehr Details dazu.&lt;br /&gt;
&lt;br /&gt;
In diesem Fall ist die folgende Anleitung noch immer gültig, jedoch sollten die nötigen Umgebungsvariablen nicht in die &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, sondern in eine separate Datei geschrieben werden, die dann bei Bedarf eingelesen wird.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Kommandozeile ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Über KControl ===&lt;br /&gt;
&lt;br /&gt;
Anstatt der oben genannten Befehle kann man auch mit Hilfe des Benutzer-Moduls im KDE-Kontrollzentrum (kcontrol) einen weiteren Benutzer einrichten.&lt;br /&gt;
&lt;br /&gt;
=== Einrichten der Entwicklungsumgebung ===&lt;br /&gt;
&lt;br /&gt;
Kopieren Sie die Datei {{path|~/.bashrc}} von Ihrem normalen Benutzer-Account zu Ihrem neuen kde-devel-Account. Danach fügen Sie den Inhalt der Seite [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] in die Datei {{path|~kde-devel/.bashrc}} ein. Stellen Sie sicher, dass die Zeile &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; auskommentiert ist falls auf Ihrem System das Programm &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; nicht verfügbar ist.&lt;br /&gt;
Die neue {{path|~/.bashrc}} wird mit folgendem Befehl eingelesen:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nun haben Sie Zugriff auf Befehle wie &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;, die in dieser Anleitung genutzt werden. Auch wird so sichergestellt, dass alle wichtigen Umgebungsvariablen (z. B. für die Pfadangaben von Qt, KDE und CMake) richtig gesetzt sind.&lt;br /&gt;
&lt;br /&gt;
Für weitere Informationen lesen Sie bitte [[Getting Started/Increased Productivity in KDE4 with Scripts]].&lt;br /&gt;
&lt;br /&gt;
=== Zum neuen Benutzer wechseln ===&lt;br /&gt;
&lt;br /&gt;
Sie können sich nun als Benutzer kde-devel anmelden (der Bindestrich ist wichtig!):&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Der Rest dieser Anleitung geht davon aus, dass Sie alle Befehle als &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; ausführen.&lt;br /&gt;
&lt;br /&gt;
== Die Shell des Entwicklungsbenutzers ==&lt;br /&gt;
Auf manchen Systemen nutzen neue Benutzer standardmäßig {{path|/bin/sh}}. Wenn dies auf Ihrem System nicht der Fall ist, können Sie diesen Abschnitt überspringen. {{path|/bin/sh}} zu nuzten kann sich als sehr unangenehm erweisen. Daher sollten Sie erwägen, zu {{path|/bin/bash}} oder einer anderen Shell zu wechseln.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Als kde-devel-Benutzer ===&lt;br /&gt;
Wenn Sie keine root-Privilegien haben und Ihr System das Wechseln der eigenen Shell mittels &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; unterstützt, können Sie versuchen, Ihre Shell zu {{path|/bin/bash}} zu wechseln, indem Sie Folgendes eingeben:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Als root-Benutzer ===&lt;br /&gt;
Wenn Ihr System die Anwendung &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; beinhaltet, können Sie den folgenden Befehl als root-Benuzter eingeben: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Eine weitere Möglichkeit ist die Nutzung der Anwendung &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; als root-Benuzter, um auf sichere Art {{path|/etc/passwd}} zu editieren. Machen Sie 'kde-devel' in dieser Datei ausfindig und ändern Sie '{{path|/bin/sh}}' am Zeilenende in '{{path|/bin/bash}}'. Speichern Sie die Änderungen und beenden Sie die Anwendung.&lt;br /&gt;
&lt;br /&gt;
Die neue Shell wird automatisch gestartet wenn Sie sich wieder als kde-devel-Benutzer einloggen.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus und KDE arbeiten mit den D-Bus-Versionen 0.6.2, 0.92 und höher zusammen. Die Versionen 0.60 und 0.61 funktionieren eventuell auch, sind aber ungetestet. Die Versionen 0.90 und 0.91 funktionieren definitiv nicht.&lt;br /&gt;
&lt;br /&gt;
Wir empfehlen, dass Sie eine aktuelle, stabile Version, also größer Version 1.0, benutzen, wenigstens aber Version 0.94.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie eine aktuelle D-Bus-Version auf ihrem System bereits installiert haben oder Ihre D-Bus-Version nicht aktualisieren wollen, können Sie die nächste Sektion überspringen.&lt;br /&gt;
&lt;br /&gt;
Bevor Sie die nächsten Schritte durchgehen sollten Sie sicherstellen, dass die X11-header und -Bibliotheken installiert sind. Das Konfigurationsskript sollte in Zeile 5 Folgendes ausgeben:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Stellen Sie sicher, dass Ihre Umgebung [[Getting_Started/Build/KDE4#Setting_up_the_environment|wie beschrieben]] eingerichtet wurde. Das ist wichtig für das Funktionieren der &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt;- und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt;-Befehle.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' ist eine Bash-Funktion, klicken Sie hier, um mehr darüber zu lernen]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=$KDEDIR/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert === &lt;br /&gt;
Wir wechseln in Zeile 1 in das Quellen-Verzeichnis, laden in Zeile 2 den Quellcode von freedesktop.org herunter und entpacken diesen in Zeile 3.&lt;br /&gt;
In Zeile 4 wechseln wir in das neu erstellte Verzeichnis, und bereiten in Zeile 5 das Kompilieren der Quelldateien vor. Zeile 6 setzt den Kompilier-Vorgang in Gang, Zeile 7 installiert D-Bus, und in Zeile 8 benutzen wir das &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt;-Werkzeug, um eine Maschinen-Identifikation zu installieren. Das erlaubt dem bus, automatisch mit der Desktop-Sitzung zu starten.&lt;br /&gt;
&lt;br /&gt;
Achten Sie darauf, dass Sie Schreibrechte auf {{path|/var}} haben, da Sie sie für die letzten beiden Schritte benötigen. Falls Ihr System kein sudo-Kommando unterstützt, können Sie auch &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; benutzen, z. B. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
&lt;br /&gt;
Falls Sie die Fehlermeldung '''makeobj: command not found''' bekommen fehlt Ihnen &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Überspringen Sie diesen Abschnitt, wenn Sie [http://cmake.org/ CMake] &amp;gt;=2.4.5 installiert haben.&lt;br /&gt;
Es sollte Ihnen möglich sein, die Binärpakete zu installieren, die hier verfügbar sind: [http://www.cmake.org/HTML/Download.html CMake site]. Dort sind ebenfalls distributionsspezifische Pakete zu finden.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' ist eine Bash-Funktion, klicken Sie hier, um mehr zu erfahren]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Zuerst wechseln wir in das Quellverzeichnis des &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt;-Benutzers (Zeile 1), laden den CMake-Quellcode herunter (Zeile 2) und entpacken ihn (Zeile 3). Dann erstellen wir ein Verzeichnis, in dem wir CMake kompilieren (Zeile 4) und wechseln in dieses (Zeile 5). Hier führen wir das CMake-bootstrap-Skript aus (Zeile 6), dann den make-Befehl (Zeile 7) und schließlich die Installation als root-Benuzter (Zeile 8).&lt;br /&gt;
&lt;br /&gt;
Wenn Ihr System den &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt;-Befehl nicht beinhaltet, können Sie stattdessen Folgendes eingeben: &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Als nächstes wird Qt 4 benötigt; es befindet sich im KDE-Quell-Repository. KDE kompiliert garantiert gegen jedes Qt der Version 4.3. Qt 4.2 und früher sind nicht unterstützt und funktionieren nicht. Da Qt 4.3 erst kürzlich veröffentlicht worden ist, finden sich wahrscheinlich noch keine Pakete für Ihre Distribution (bekannte Ausnahmen sind Kubuntu und openSUSE). Sie sollten die Kopie auf den KDE-Subversion-Servern verwenden.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
 # make install: Nur wenn QTDIR nicht das momentane Verzeichnis ist!&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Heimverzeichnis des &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt;-Benutzers (Zeile 1) und laden den Quellcode mittels Subversion (svn) herunter (Zeile 2). Nach dem Wechsel in das daraus resultierende Verzeichnis {{path|qt-copy}} (Zeile 3), führen wir ein Skript aus, das die Patches integriert, die mit &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; kommen (Zeile 4). &lt;br /&gt;
&lt;br /&gt;
Sobald die Patches integriert sind, konfigurieren wir das build mittels des &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt;-Skripts (Zeilen 5-7). Die verschiedenen Kommandozeilenoptionen werden in der Datei {{path|qt-copy/README.qt-copy}} erläutert. Schließlich kompilieren wir die Mininalanforderungen für KDE (Zeile 8) und installieren Qt (Zeilen 9-10). Wenn Sie alle Beispiel- und Demo-Applikationen installieren möchten, können Sie sie entweder einzeln kompilieren oder einfach den Befehl &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; im Verzeichnis {{path|qt-copy}} ausführen.&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass die Installation keine root-Rechte verlangt, da Qt lokal in {{path|$QTDIR}} installiert wird. Die Installation ist ohnehin nur nötig, wenn {{path|$QTDIR}} sich von {{path|$HOME/qt-copy}} unterscheidet, was nicht der Fall ist, wenn Sie die Anweisungen exakt befolgt haben.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
Wenn Sie die Fehlerausgabe &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot; erhalten, installieren Sie das devel-Paket von &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (der Name des Pakets kann in verschiedenen Distributionen abweichen, in (K)Ubuntu z. B. ist er &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
Wenn Sie eine Fehlermeldung im configure-Schritt erhalten, die auf &amp;quot;missing defines&amp;quot; hinweist, prüfen Sie den Wert von &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;. Manche Distributionen lassen die Variable direkt auf das standardmäßig installierte Qt verweisen. Wenn der Befehl &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; das Problem löst, sollten Sie überlegen, ihn zum &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt;-Skript hinzuzufügen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie die Fehlermeldung &amp;quot;.pch/debug-shared/QtCore&amp;quot; erhalten, bedeutet dies, dass Qt-4.3 zwar die vorkompilierten header aktiviert hat (wenn Ihr gcc dies unterstützt), es jedoch nicht funktioniert. Wenn Sie distcc nutzen, konfigurieren Sie Qt mit der Option -no-pch. Wenn Sie icecream nutzen, führen Sie ein Update zur neuesten Version von icecream im svn trunk durch.&lt;br /&gt;
&lt;br /&gt;
Versuchen Sie, irgendeine Qt-Applikation zu starten, beispielsweise {{program|assistant}}. Wenn sie in QSpanData::adjustSpanMethods abstürzt, haben Sie ein Problem mit dem Oxygen style. Versuchen Sie, {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} und {{path|lib/kde4/plugins/styles/oxygen.so}} zu entfernen, wenn sie sich im KDE-Installationspräfix finden.&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Der Code zum Erhalten der Dateimetadaten ist nun von Strigi abhängig. Um Strigi zu installieren, benötigen Sie die Bibliotheken und Header von libz, libbz2, openssl (libcrypto oder libssl), libclucene (=0.9.16; Version 0.9.17 funktioniert '''nicht'''), und entweder libxml2 oder libexpat.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi&lt;br /&gt;
 cd strigi&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode für Strigi mittels Subversion herunter (Zeile 2) und wechseln anschließend in das neue Verzeichnis {{path|~/src/strigi}} (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von Strigi wieder.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
Wenn Sie &lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
erhalten, sollten Sie das devel-Paket für libxml2 installieren.&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Der Code zum Erhalten von kmetadata für Dateien ist von Soprano abhängig. Um Soprano zu installieren benötigen Sie die Bibliotheken und Header von librdf.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano&lt;br /&gt;
 cd soprano&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode für Soprano mittels Subversion herunter (Zeile 2) und wechseln anschließend in das neue Verzeichnis {{path|~/src/soprano}} (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von Soprano wieder.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
Wenn Sie&lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
erhalten, benötigen Sie librdf aus den Redland-Bibliotheken.&lt;br /&gt;
Wenn Ihre Distribution das librdf-Paket nicht zur Verfügung stellt, können Sie dessen Quellcode hier herunterladen [http://download.librdf.org/source/ http://download.librdf.org/source/] und selbst kompilieren. In Gentoo heißt das  Paket 'redland' anstatt librdf.&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
Nachdem wir Qt 4 und Strigi kompiliert haben, können wir nun mit dem Kompilieren  der KDE-Basisbibliotheken fortschreiten. Wenn Sie die oben genannte Anleitung bezüglich [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] nutzen, kommen Ihnen diese neuen Funktionen im Folgenden gelegen. &lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' und 'cb' sind KEINE Tippfehler!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das KDE-Quellverzeichnis (Zeile 1), erstellen ein Verzeichnis names KDE und wechseln in dieses (Zeile 2). Dann laden wir den Quellcode der kdelibs mittels Subversion herunter (Zeile 3), wechseln in das neue Verzeichnis {{path|~/src/KDE/kdelibs}} (Zeile 4) und starten die Kompilierung (Zeile 5). Wir finden uns anschließend im &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;-build-Verzeichnis wieder.&lt;br /&gt;
&lt;br /&gt;
{{tip|Es könnte einige fehlende Anhängigkeiten auf Ihrem System geben! Sie können in der Ausgabe von &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; leicht übersehen werden.&lt;br /&gt;
Sie können vor dem Kompilieren jeglicher KDE-Module (wie kdelibs, kdepimlibs usw.) &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; ausführen.}}&lt;br /&gt;
&lt;br /&gt;
=== Zusätzliche KDE-typische CMake-Module ===&lt;br /&gt;
Es gibt weitere CMake-Module in {{path|kdelibs/cmake/modules/}}, die für die Kompilierung von KDE4-Applikationen nötig sind. Sie werden mit kdelibs installiert (siehe unten).&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
Wenn Sie Schwierigkeiten bei der Kompilierung von kdelibs haben, stellen Sie sicher, dass Sie die Software im obigen Abschnitt [[Getting_Started/Build/KDE4#Required_Software|Required Software]] installiert haben und dass sie funktioniert. Andere mögliche Probleme sind:&lt;br /&gt;
* Wenn der Befehl &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; mit der Ausgabe fehlschlägt, dass CMake ein &amp;quot;out of source&amp;quot; build-Verzeichnis benötigt, entfernen Sie {{path|~/src/KDE/kdelibs/CMakeCache.txt}} und versuchen Sie es erneut.&lt;br /&gt;
&lt;br /&gt;
Wenn &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; dennoch denselben Fehler ausgibt, versuchen Sie Folgendes:&lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot; erhalten, müssen Sie in Ihr build-Verzechnis wechseln bevor Sie cmakekde ausführen. (z. B. &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* Wenn Qt nicht oder in einer falschen Version gefunden wird, stellen Sie sicher, dass das qmake der benötigten Qt-Version an erster Stelle (unter den qmake-Einträgen) im Pfad eingetragen ist.&lt;br /&gt;
* Wenn das Problem nach wie vor vorhanden ist, versuchen Sie die CMake make-Option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Sie benötigen die libungif-Bibliothek, ansonsten erhalten Sie eine Fehlerausgabe ähnlich &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3-Upgrade: Wenn Sie einen Verknüpfnugsfehler in kjsembed erhalten, der auf die QScriptEngine bezogen ist, editieren Sie CMakeCache.txt in kdelibs und entfernen Sie die Zeilen, die sich auf QT_QTUITOOLS_LIBRARY beziehen, und führen Sie den make-Befehl erneut aus (diese statische Bibliothek hat eine neue Abhängigkeit und der cmake-Code, der diese hinzufügt, benötigt sie, um ausgeführt zu werden).&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&amp;lt;/code&amp;gt; erhalten, installieren Sie openssl-devel, und rekompilieren Sie Qt.&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
Sie müssen ''kdepimlibs'' nach &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, aber vor ''kdebase'' installieren.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das KDE-Quellverzeichnis (Zeile 1), laden den Quellcode für kdepimlibs mittels Subversion herunter (Zeile 2) und wechseln anschließend in das neue Verzeichnis {{path|~/src/KDE/kdepimlibs}} (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; wieder.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
Für manche kioslaves könnte kdebase benötigt werden.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Schwierigkeiten beim Kompilieren von kdebase haben:&lt;br /&gt;
* Stellen Sie sicher, dass die &amp;lt;tt&amp;gt;libxss-Header&amp;lt;/tt&amp;gt; installiert sind. (Sollten diese nicht installiert sein, erhalten Sie in der Regel undefinierte Verweise auf xscreensaver-Objekte.)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; muss {{path|/home/kde-devel/kde/bin/meinproc}} ausgeben.&lt;br /&gt;
* Wenn cmakekde das kdepimlibs-Verzeichnis nicht finden kann, editieren Sie die Datei {{path|$KDE_BUILD/kdebase/CMakeCache.txt}} und definieren Sie &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt; manuell.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot; erhalten, installieren Sie das devel-Paket von &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. Auf manchen Systemen ist es separat von &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; gepackt und heißt &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; oder &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt;. Sie müssen eventuell außerdem nach der Installation dieses Paketes die Datei CMakeCache.txt im build Verzeichnis löschen.&lt;br /&gt;
* Dasselbe gilt für die analoge Fehlerausgabe betreffend der Variable &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot;: Sie benötigen das devel-Paket für &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot; erhalten, müssen Sie die libfontconfig-Header installieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot; erhalten, müssen Sie soprano aus kdesupport installieren und dann kdelibs neu kompilieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;‘XserverRegion’ does not name a type&amp;quot; erhalten, stellen Sie sicher, dass Sie die libxcomposite header installiert haben. (In Ubuntu heißen diese &amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
== Lokale API-Dokumentation erstellen ==&lt;br /&gt;
&lt;br /&gt;
Obwohl die API-Dokumentation für KDE online unter [http://api.kde.org api.kde.org] verfügbar ist, kann es hilfreich sein, sie offline verfügbar zu haben, zum Beispiel wenn Sie [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] zum Durchsuchen der Dokumentation nutzen oder wenn Sie nicht ständig online sein können.&lt;br /&gt;
&lt;br /&gt;
Seien Sie sich bewusst, dass das Generieren der API-Dokumentation mehrere Stunden in Anspruch nehmen kann und knapp ein halbes Gigabyte an Speicherplatz benötigt.&lt;br /&gt;
Das Generieren wird von einem Skript in {{path|kdelibs/doc/api}} ausgeführt; Sie benötigen &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt;, um es ausführen zu können.&lt;br /&gt;
&lt;br /&gt;
Um die API-Dokumentation für kdelibs zu generieren, geben Sie Folgendes ein:&lt;br /&gt;
&amp;lt;!--'cs' und 'cb' sind KEINE Tippfehler!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs ist KEIN Tippfehler]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Wiederholen Sie dies nach Bedarf für andere Module.&lt;br /&gt;
&lt;br /&gt;
== Allgemeine Fehlerbehebung ==&lt;br /&gt;
&lt;br /&gt;
Es kann im Laufe der Zeit nach mehrmaligem Ausführen von &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; vorkommen, dass sich das Ausgabeformat einiger Werkzeuge, die in der KDE-Werkzeugkette benutzt werden, ändert. Zum Beispiel werden &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; Dateien vom &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; gelesen, um die Konfigurationsdialoge zu generieren. Da CMake diese Veränderungen nicht erkennt, kann das Kompilieren fehlschlagen. Eine provisorische Lösung ist, die Regenerierung all dieser Dateien zu erzwingen:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
Dasselbe gilt für &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; Dateien wie solche, die mit Qt Designer generiert werden.&lt;br /&gt;
&lt;br /&gt;
== Das war's! ==&lt;br /&gt;
&lt;br /&gt;
Sie sind nun bereit, andere svn-Module in derselben Weise wie kdebase zu kompilieren, KDE 4 zu benutzen und zu testen, sowie Ihre eigenen Patches und Anwendungen zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Siehe auch die Anleitung [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] um Hilfe beim Starten von KDE-4-Anwendungen sowie zur Benutzung von KDevelop zu erhalten.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4_(de)</id>
		<title>Getting Started/Build/KDE4 (de)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4_(de)"/>
				<updated>2007-06-05T01:15:30Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: /* D-Bus */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n_Getting_Started_Build_KDE4}}&lt;br /&gt;
&lt;br /&gt;
(Diese Anleitung befindet sich noch im Aufbau und ist eine Kopie des [[Getting_Started/Build/KDE4|englischen Orginals]]. Hilf mit, es zu übersetzen und es auf dem aktuellen Stand zu halten!)&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Vorbereitungen|&lt;br /&gt;
&lt;br /&gt;
name=KDE4 aus dem Quellcode bauen|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Übersicht ==&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt einen Weg, um KDE auf Linux und BSD-Systemen&lt;br /&gt;
zu komplieren und laufen zu lassen. Als Grundlage verwenden wir die Shell.&lt;br /&gt;
Wenn Sie sich für andere Systeme wie etwa Solaris, MacOS oder Microsoft Windows ersetzen, besuchen Sie bitte [[../|Build]] und folgen Sie den&lt;br /&gt;
Links am Ende der Seite.&lt;br /&gt;
&lt;br /&gt;
{{warning|Stellen Sie sich auf verstärkt auftretende Buildprobleme '''an Montagen''' ein, da die Entwickler an diesem Wochentag kritische Änderungen vornehmen. Das [http://developer.kde.org/~dirk/dashboard/ Dashboard] zeigt unerwartete Probleme beim Kompilieren an.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Benötigte Software ==&lt;br /&gt;
&lt;br /&gt;
Folgendes muss installiert sein, um dieses Tutorial erfolgreich durchführen zu können:&lt;br /&gt;
* gcc and g++ from the gcc project, preferably version 4.1 or higher&lt;br /&gt;
* svn, the subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* development libraries and headers for X11, OpenGL (mesa-common-dev and libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 and libxslt&lt;br /&gt;
* the &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; script, which is part of kdesdk. You can install it as part of kdesdk (kdesdk-scripts on Debian) or similar package, or just download it itself from [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* the [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info package], which is the freedesktop MIME standard KDE is using now&lt;br /&gt;
* [http://boost.org/ boost], needed by kdebase; after compiling and/or installing boost, in order to make cmake aware about its location (FindBoost),  add boost directory (the one containing include subdirectory) to CMAKE_INCLUDE_PATH or set an environment variable called BOOST_ROOT pointing to boost directory.&lt;br /&gt;
&lt;br /&gt;
Weiterhin ist es zu empfehlen, folgende Software bereits installiert zu haben:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
In Kubuntu 7.04 (Feisty) kann alle zum Bau der Pakete benötigte Software mit folgendem Befehl installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die manuelle Installation von Qt 4.3, CMake 2.4.6 und DBus kann durch die Installation der folgenden Pakete und ihrer Abhängigkeiten vermieden werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Für eine voll funktionstüchtige [[apidox]] Umgebung wird ebenfalls zusätzliche Software benötigt:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
{{note|&lt;br /&gt;
Der openSUSE build service stellt ebenfalls tagesaktuelle KDE-4-Pakete bereit, die das gesamte auf dieser Seite beschriebene Vorgehen überflüssig machen. Weitere Informationen findet man direkt im openSUSE wiki unter [http://de.opensuse.org/KDE4 KDE4].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In OpenSuse können Pakete mit Hilfe von [http://de.opensuse.org/Zypper Zypper] installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In älteren SUSE-Versionen geht dies nur mit Yast:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die meisten zum Bau von KDE 4 nötigen Pakete sind:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
xorg-x11-devel, libxml2-devel, kdesdk3, clucene-core-devel, libjpeg-devel, liblrdf-devel, libpng-devel, libxslt-devel, Mesa-devel, giflib-devel, subversion, gcc, gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bereits vorkompilierte CMake-Pakete für openSUSE sind direkt verfügbar im  [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
== Ein Benutzer für die KDE 4 Entwicklung ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Einige Menschen ziehen es vor, für KDE 4 einen separaten Nutzer-Account einzurichten, um nicht aus Versehen durch noch bestehende Bugs oder ähnliches Daten zu verlieren. Die Anleitung hier basiert auf der Herangehensweise.&lt;br /&gt;
&lt;br /&gt;
Es ist jedoch deutlich effizienter alles mit einem einzigen Nutzer-Account zu machen. Unter [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]] findet man mehr Details dazu.&lt;br /&gt;
&lt;br /&gt;
In diesem Fall ist die folgende Anleitung noch immer gültig, jedoch sollten die nötigen Umgebungsvariablen nicht in die &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, sondern in eine separate Datei geschrieben werden, die dann bei Bedarf eingelesen wird.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Kommandozeile ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Über KControl ===&lt;br /&gt;
&lt;br /&gt;
Anstatt der oben genannten Befehle kann man auch mit Hilfe des Nutzer-Moduls des KDE Control Centers (kcontrol) einen weiteren Nutzer einrichten.&lt;br /&gt;
&lt;br /&gt;
=== Einrichten der Entwicklungsumgebung ===&lt;br /&gt;
&lt;br /&gt;
Kopieren Sie die Datei {{path|~/.bashrc}} von Ihrem normalen Nutzer-Account zu Ihrem neuen kde-devel-Account. Danach fügen Sie den Inhalt der Seite [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] in die Datei {{path|~kde-devel/.bashrc}} ein. Stellen Sie sicher, dass die Zeile &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; auskommentiert ist falls auf Ihrem System das Programm &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; nicht verfügbar ist.&lt;br /&gt;
Die neue {{path|~/.bashrc}} wird mit folgendem Befehl eingelesen:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nun haben Sie Zugriff auf Befehle wie &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;, die in dieser Anleitung genutzt werden. Auch wird so sichergestellt, dass alle wichtigen Umgebungsvariablen (z.B. für die Pfadangaben von Qt, KDE und CMake) richtig gesetzt sind.&lt;br /&gt;
&lt;br /&gt;
Für weitere Informationen lesen Sie bitte [[Getting Started/Increased Productivity in KDE4 with Scripts]].&lt;br /&gt;
&lt;br /&gt;
=== Zum neuen Benutzer wechseln ===&lt;br /&gt;
&lt;br /&gt;
Sie können sich nun als Benutzer kde-devel anmelden (der Bindestrich ist wichtig!):&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Der Rest dieser Anleitung geht davon aus, dass Sie alle Befehle als &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; ausführen.&lt;br /&gt;
&lt;br /&gt;
== Die Shell des Entwicklungsbenutzers ==&lt;br /&gt;
Auf manchen Systemen nutzen neue Benutzer standardmäßig {{path|/bin/sh}}. Wenn dies auf Ihrem System nicht der Fall ist, können Sie diesen Abschnitt überspringen. {{path|/bin/sh}} zu nuzten kann sich als sehr unangenehm erweisen. Daher sollten Sie erwägen, zu {{path|/bin/bash}} oder einer anderen Shell zu wechseln.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Als kde-devel-Benutzer ===&lt;br /&gt;
Wenn Sie keine root-Privilegien haben und Ihr System das Wechseln der eigenen Shell mittels &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; unterstützt, können Sie versuchen, Ihre Shell zu {{path|/bin/bash}} zu wechseln, indem Sie Folgendes eingeben:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Als root-Benutzer ===&lt;br /&gt;
Wenn Ihr System die Anwendung &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; beinhaltet, können Sie den folgenden Befehl als root-Benuzter eingeben: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Eine weitere Möglichkeit ist die Nutzung der Anwendung &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; als root-Benuzter, um auf sichere Art {{path|/etc/passwd}} zu editieren. Machen Sie 'kde-devel' in dieser Datei ausfindig und ändern Sie '{{path|/bin/sh}}' am Zeilenende in '{{path|/bin/bash}}'. Speichern Sie die Änderungen und beenden Sie die Anwendung.&lt;br /&gt;
&lt;br /&gt;
Die neue Shell wird automatisch gestartet wenn Sie sich wieder als kde-devel-Benutzer einloggen.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus und KDE arbeiten mit den D-Bus-Versionen 0.6.2, 0.92 und höher zusammen. Die Versionen 0.60 und 0.61 funktionieren eventuell auch, sind aber ungetestet. Die Versionen 0.90 und 0.91 funktionieren definitiv nicht.&lt;br /&gt;
&lt;br /&gt;
Wir empfehlen, dass sie eine aktuelle, stabile Version, also größer Version 1.0, benutzen, wenigstens aber Version 0.94.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie eine aktuelle D-Bus-Version auf ihrem System bereits installiert haben oder Ihre D-Bus-Version nicht aktualisieren wollen, können Sie die nächste Sektion überspringen.&lt;br /&gt;
&lt;br /&gt;
Bevor Sie die nächsten Schritte durchgehen sollten Sie sicherstellen, dass die X11-header und -Bibliotheken installiert sind. Das Konfigurations-Skript sollte folgende Ausgabe ergeben:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Stellen Sie sicher, dass Ihre Umgebung [[Getting_Started/Build/KDE4#Setting_up_the_environment|wie beschrieben]] eingerichtet wurde. Das ist wichtig für das Funktionieren der &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt;- und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt;-Befehle.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' ist eine Bash-Funktion, klicken Sie hier, um mehr darüber zu lernen]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=$KDEDIR/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert === &lt;br /&gt;
Wir wechseln in Zeile 1 in das Quellen-Verzeichnis, laden in Zeile 2 den Quellcode von freedesktop.org herunter und entpacken den in Zeile 3.&lt;br /&gt;
In Zeile 4 wechseln wir in das neu erschaffene Verzeichnis, und bereiten in Zeile 5 das Kompilieren der Quelldateien vor. Zeile 6 setzt den Kompilier-Vorgang in Gang, Zeile 7 installiert D-Bus, und in Zeile 8 benutzen wir das &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt;-Werkzeug, um eine Maschinen-Identifikation zu installieren. Das erlaubt dem bus, atuomatisch mit der Desktop-Sitzung zu starten.&lt;br /&gt;
&lt;br /&gt;
Achten Sie darauf, dass Sie Schreibrechte auf {{path|/var}} haben, da Sie die benötigen für die letzten beiden Schritte. Falls Ihr System kein Sudo-Kommando unterstützt, können Sie auch &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; benutzen, z.B. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
&lt;br /&gt;
Falls Sie die Fehlermeldung '''makeobj: command not found''' bekommen fehlt Ihnen &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Skip this if you have [http://cmake.org/ CMake] &amp;gt;=2.4.5 installed. &lt;br /&gt;
You should be able to directly use the binary packages available on the [http://www.cmake.org/HTML/Download.html CMake site]. There are also distribution specific packages available.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click Here to learn more]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
First, we go back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's source directory (line 1), get the CMake sources (line 2) and unpack them (line 3). We create a directory to build CMake in (line 4) and go into it (line 5). We then run the CMake bootstrap script to set up the CMake build (line 6), then make (line 7) and install it (line 8) using the root user.&lt;br /&gt;
&lt;br /&gt;
If your system does not have the &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt; command, you can instead do &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Next we need to get the Qt4 that is in KDE's source repository. KDE is guaranteed to build against any Qt 4.3. Qt 4.2 and earlier are not supported and will not work. Qt 4.3 has been released only recently, so your distribution probably doesn't have packages for it yet (known exceptions: Kubuntu, openSUSE). You should use the copy in the KDE Subversion servers.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
 # make install: only if QTDIR is not the current directory!&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We switch back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's home directory (line 1) and download the source code using subversion (svn) from KDE's repository (line 2). After changing into the resulting {{path|qt-copy}} directory (line 3), we run a script that manages the patches that come with &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; (line 4). &lt;br /&gt;
&lt;br /&gt;
Once the patches have been applied, we then set up the build using the &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt; script (line 5-7). The various command line options used are explained in the {{path|qt-copy/README.qt-copy}} file. Finally, we build the minimal requirements for KDE (line 8) and install (line 9-10) Qt. If you want all the example and demo applications, you can either build them individually or simply do a &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; from the {{path|qt-copy}} directory. &lt;br /&gt;
&lt;br /&gt;
Note that the installation does not require root as it installs Qt locally into {{path|$QTDIR}}. Anyway, installation is only needed if {{path|$QTDIR}} differs from {{path|$HOME/qt-copy}}, which is not the case if you have exactly followed the instructions.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you get &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (the actual name may vary between operating systems, for example it is &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt; on Ubuntu based systems such as Kubuntu). &lt;br /&gt;
&lt;br /&gt;
If you get an error in the configure step about missing defines, check the value of &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;.  Some distributions set this to point directly to the system-installed Qt.  If &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; solves the problem, you probably want to add it to the &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt; script.&lt;br /&gt;
&lt;br /&gt;
If you get an error &amp;quot;.pch/debug-shared/QtCore&amp;quot;, this is because Qt-4.3 enables precompiled headers if your gcc supports it, but for some reason it doesn't work for you. If you use distcc, configure qt with -no-pch. If you use icecream, update to the latest icecream from svn trunk.&lt;br /&gt;
&lt;br /&gt;
Try running any Qt program, like {{program|assistant}}. If it crashes in QSpanData::adjustSpanMethods, then your problem is the oxygen style. Try removing {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} and {{path|lib/kde4/plugins/styles/oxygen.so}} if they exist in the KDE install prefix.&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Der Code zum Erhalten der Dateimetadaten ist nun von Strigi abhängig. Um Strigi zu installieren, benötigen Sie die Bibliotheken und header von libz, libbz2, openssl (libcrypto oder libssl), libclucene (=0.9.16; Version 0.9.17 funktioniert '''nicht'''), und entweder libxml2 oder libexpat.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi&lt;br /&gt;
 cd strigi&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode für Strigi mittels subversion herunter (Zeile 2) und wechseln anschließend in das neue {{path|~/src/strigi}} Verzeichnis (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von Strigi wieder.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
Wenn Sie &lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
erhalten, sollten Sie das devel-Paket für libxml2 installieren.&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Der Code zum Erhalten von kmetadata für Dateien ist von Soprano abhängig. Um Soprano zu installieren benötigen Sie die Bibliotheken und header von librdf.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano&lt;br /&gt;
 cd soprano&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode für Soprano mittels subversion herunter (Zeile 2) und wechseln anschließend in das neue {{path|~/src/soprano}} Verzeichnis (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von Soprano wieder.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
Wenn Sie&lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
erhalten, benötigen Sie librdf aus den Redland-Bibliotheken.&lt;br /&gt;
Wenn Ihre Distribution das librdf Paket nicht zur Verfügung stellt, können Sie dessen Quellcode hier herunterladen [http://download.librdf.org/source/ http://download.librdf.org/source/] und selbst kompilieren. In Gentoo wird das Paket 'redland' anstatt librdf genannt.&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
&lt;br /&gt;
With Qt4 and Strigi built, we can now move on to building KDE's base libraries. If you use the aforementioned [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] this is where those new functions come in handy. &lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1) then make and go into the KDE directory (line 2). We download the sources for kdelibs using subversion (line 3), go into the new {{path|~/src/KDE/kdelibs}} directory (line 4), and commence the build (line 5). This will leave us in the &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
{{tip|There might be missing dependencies on your system! They are easily overlooked in the output of &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;.&lt;br /&gt;
You might want to do a &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; prior to compiling any kde modules (like kdelibs, kdepimlibs etc.)}}&lt;br /&gt;
&lt;br /&gt;
=== Additional KDE-specific CMake modules ===&lt;br /&gt;
There are additional CMake modules in {{path|kdelibs/cmake/modules/}} that are necessary for building KDE4 applications. These will be installed for you when  kdelibs itself is installed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you have problems compiling kdelibs, first make sure the software in the [[Getting_Started/Build/KDE4#Required_Software|Required Software]] section above is installed and works. Other possible hints include:&lt;br /&gt;
* If the &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; command fails stating that CMake requires an out of source build directory, remove {{path|~/src/KDE/kdelibs/CMakeCache.txt}}, and try again.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; still gives the same error then try this &lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* If you received an error stating &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot;, then you need to change to your build directory before running cmakekde. (e.g &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* If Qt wasn't found or the wrong version of Qt was found, make sure that the qmake from the Qt you need is the first qmake in the path.&lt;br /&gt;
* If the problems persist, try the CMake make-option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Here you need the libungif library, otherwise you will get an error message like &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3 upgrade: if you get a link error in kjsembed talking about QScriptEngine, edit CMakeCache.txt in kdelibs and remove the lines that talk about QT_QTUITOOLS_LIBRARY, then type make again (that static library has a new dependency, and the cmake code that adds it needs to run).&lt;br /&gt;
* if you get &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&lt;br /&gt;
&amp;lt;/code&amp;gt;, install openssl-devel, and re-compile QT.&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
Sie müssen ''kdepimlibs'' nach &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, aber vor ''kdebase'' installieren.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das KDE Quellverzeichnis (Zeile 1), laden den Quellcode für kdepimlibs mittels subversion herunter (Zeile 2) und wechseln anschließend in das neue {{path|~/src/KDE/kdepimlibs}} Verzeichnis (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; wieder.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
Für manche kioslaves mag kdebase benötigt werden.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Schwierigkeiten beim Kompilieren von kdebase haben:&lt;br /&gt;
* Stellen Sie sicher, dass die &amp;lt;tt&amp;gt;libxss header&amp;lt;/tt&amp;gt; installiert sind. (Sollten diese header nicht installiert sein, erhalten Sie in der Regel undefinierte Verweise auf xscreensaver Objekte.)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; muss {{path|/home/kde-devel/kde/bin/meinproc}} ausgeben.&lt;br /&gt;
* Wenn cmakekde das kdepimlibs-Verzeichnis nicht finden kann, editieren Sie die Datei {{path|$KDE_BUILD/kdebase/CMakeCache.txt}} und definieren Sie &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt; manuell.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot; erhalten, installieren Sie das devel Paket von &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. Auf manchen Systemen ist es separat von &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; gepackt und &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; oder &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt; benannt. Sie müssen eventuell außerdem nach der Installation dieses Paketes die Datei CMakeCache.txt im build Verzeichnis löschen.&lt;br /&gt;
* Dasselbe gilt für die analoge Fehlerausgabe betreffend der Variable &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot;: Sie benötigen das devel Paket für &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot; erhalten, müssen Sie die libfontconfig header installieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot; erhalten, müssen Sie soprano aus kdesupport installieren und dann kdelibs neu kompilieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;‘XserverRegion’ does not name a type&amp;quot; erhalten, stellen Sie sicher, dass Sie die libxcomposite header installiert haben. (In Ubuntu werden sie &amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt; genannt.)&lt;br /&gt;
&lt;br /&gt;
== Lokale API-Dokumentation erstellen ==&lt;br /&gt;
&lt;br /&gt;
Obwohl die API-Dokumentation für KDE online unter [http://api.kde.org api.kde.org] verfügbar ist, kann es hilfreich sein, sie offline verfügbar zu haben, zum Beispiel wenn Sie [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] zum Durchsuchen der Dokumentation nutzen oder wenn Sie nicht ständig online sein können.&lt;br /&gt;
&lt;br /&gt;
Seien Sie sich bewusst, dass das Generieren der API-Dokumentation mehrere Stunden in Anspruch nehmen kann und knapp einen halben Gigabyte an Speicherplatz benötigt.&lt;br /&gt;
Das Generieren wird von einem Skript in {{path|kdelibs/doc/api}} ausgeführt; Sie benötigen &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt;, um es ausführen zu können.&lt;br /&gt;
&lt;br /&gt;
Um die API-Dokumentation für kdelibs zu generieren, geben Sie Folgendes ein:&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Wiederholen Sie dies nach Bedarf für andere Module.&lt;br /&gt;
&lt;br /&gt;
== Allgemeine Fehlerbehebung ==&lt;br /&gt;
&lt;br /&gt;
Es kann im Laufe der Zeit nach mehrmaligem Ausführen von &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; vorkommen, dass sich das Ausgabeformat einiger Werkzeuge, die in der KDE Werkzeugkette benutzt werden, ändert. Zum Beispiel werden &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; Dateien vom &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; gelesen, um die Konfigurationsdialoge zu generieren. Da CMake diese Veränderungen nicht erkennen kann, kann das Kompilieren fehlschlagen. Eine provisorische Lösung ist, die Regenerierung all dieser Dateien zu erzwingen:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
Dasselbe gilt für &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; Dateien wie solche, die vom Qt designer generiert werden.&lt;br /&gt;
&lt;br /&gt;
== Das wars! ==&lt;br /&gt;
&lt;br /&gt;
Sie sind nun bereit, andere svn Module in derselben Weise wie kdebase zu kompilieren, KDE4 zu benutzen und zu testen, sowie Ihre eigenen Patches und Anwendungen zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Siehe auch die Anleitung [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] um Hilfe beim Starten von KDE4 Anwendungen sowie zur Nutzung von KDevelop zu erhalten.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4_(de)</id>
		<title>Getting Started/Build/KDE4 (de)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4_(de)"/>
				<updated>2007-06-05T01:07:15Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: Frage: Wie ist &amp;quot;run on line 5&amp;quot; gemeint?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n_Getting_Started_Build_KDE4}}&lt;br /&gt;
&lt;br /&gt;
(Diese Anleitung befindet sich noch im Aufbau und ist eine Kopie des [[Getting_Started/Build/KDE4|englischen Orginals]]. Hilf mit, es zu übersetzen und es auf dem aktuellen Stand zu halten!)&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Vorbereitungen|&lt;br /&gt;
&lt;br /&gt;
name=KDE4 aus dem Quellcode bauen|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Übersicht ==&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt einen Weg, um KDE auf Linux und BSD-Systemen&lt;br /&gt;
zu komplieren und laufen zu lassen. Als Grundlage verwenden wir die Shell.&lt;br /&gt;
Wenn Sie sich für andere Systeme wie etwa Solaris, MacOS oder Microsoft Windows ersetzen, besuchen Sie bitte [[../|Build]] und folgen Sie den&lt;br /&gt;
Links am Ende der Seite.&lt;br /&gt;
&lt;br /&gt;
{{warning|Stellen Sie sich auf verstärkt auftretende Buildprobleme '''an Montagen''' ein, da die Entwickler an diesem Wochentag kritische Änderungen vornehmen. Das [http://developer.kde.org/~dirk/dashboard/ Dashboard] zeigt unerwartete Probleme beim Kompilieren an.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Benötigte Software ==&lt;br /&gt;
&lt;br /&gt;
Folgendes muss installiert sein, um dieses Tutorial erfolgreich durchführen zu können:&lt;br /&gt;
* gcc and g++ from the gcc project, preferably version 4.1 or higher&lt;br /&gt;
* svn, the subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* development libraries and headers for X11, OpenGL (mesa-common-dev and libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 and libxslt&lt;br /&gt;
* the &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; script, which is part of kdesdk. You can install it as part of kdesdk (kdesdk-scripts on Debian) or similar package, or just download it itself from [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* the [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info package], which is the freedesktop MIME standard KDE is using now&lt;br /&gt;
* [http://boost.org/ boost], needed by kdebase; after compiling and/or installing boost, in order to make cmake aware about its location (FindBoost),  add boost directory (the one containing include subdirectory) to CMAKE_INCLUDE_PATH or set an environment variable called BOOST_ROOT pointing to boost directory.&lt;br /&gt;
&lt;br /&gt;
Weiterhin ist es zu empfehlen, folgende Software bereits installiert zu haben:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
In Kubuntu 7.04 (Feisty) kann alle zum Bau der Pakete benötigte Software mit folgendem Befehl installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die manuelle Installation von Qt 4.3, CMake 2.4.6 und DBus kann durch die Installation der folgenden Pakete und ihrer Abhängigkeiten vermieden werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Für eine voll funktionstüchtige [[apidox]] Umgebung wird ebenfalls zusätzliche Software benötigt:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
{{note|&lt;br /&gt;
Der openSUSE build service stellt ebenfalls tagesaktuelle KDE-4-Pakete bereit, die das gesamte auf dieser Seite beschriebene Vorgehen überflüssig machen. Weitere Informationen findet man direkt im openSUSE wiki unter [http://de.opensuse.org/KDE4 KDE4].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In OpenSuse können Pakete mit Hilfe von [http://de.opensuse.org/Zypper Zypper] installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In älteren SUSE-Versionen geht dies nur mit Yast:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die meisten zum Bau von KDE 4 nötigen Pakete sind:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
xorg-x11-devel, libxml2-devel, kdesdk3, clucene-core-devel, libjpeg-devel, liblrdf-devel, libpng-devel, libxslt-devel, Mesa-devel, giflib-devel, subversion, gcc, gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bereits vorkompilierte CMake-Pakete für openSUSE sind direkt verfügbar im  [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
== Ein Benutzer für die KDE 4 Entwicklung ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Einige Menschen ziehen es vor, für KDE 4 einen separaten Nutzer-Account einzurichten, um nicht aus Versehen durch noch bestehende Bugs oder ähnliches Daten zu verlieren. Die Anleitung hier basiert auf der Herangehensweise.&lt;br /&gt;
&lt;br /&gt;
Es ist jedoch deutlich effizienter alles mit einem einzigen Nutzer-Account zu machen. Unter [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]] findet man mehr Details dazu.&lt;br /&gt;
&lt;br /&gt;
In diesem Fall ist die folgende Anleitung noch immer gültig, jedoch sollten die nötigen Umgebungsvariablen nicht in die &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, sondern in eine separate Datei geschrieben werden, die dann bei Bedarf eingelesen wird.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Kommandozeile ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Über KControl ===&lt;br /&gt;
&lt;br /&gt;
Anstatt der oben genannten Befehle kann man auch mit Hilfe des Nutzer-Moduls des KDE Control Centers (kcontrol) einen weiteren Nutzer einrichten.&lt;br /&gt;
&lt;br /&gt;
=== Einrichten der Entwicklungsumgebung ===&lt;br /&gt;
&lt;br /&gt;
Kopieren Sie die Datei {{path|~/.bashrc}} von Ihrem normalen Nutzer-Account zu Ihrem neuen kde-devel-Account. Danach fügen Sie den Inhalt der Seite [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] in die Datei {{path|~kde-devel/.bashrc}} ein. Stellen Sie sicher, dass die Zeile &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; auskommentiert ist falls auf Ihrem System das Programm &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; nicht verfügbar ist.&lt;br /&gt;
Die neue {{path|~/.bashrc}} wird mit folgendem Befehl eingelesen:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nun haben Sie Zugriff auf Befehle wie &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;, die in dieser Anleitung genutzt werden. Auch wird so sichergestellt, dass alle wichtigen Umgebungsvariablen (z.B. für die Pfadangaben von Qt, KDE und CMake) richtig gesetzt sind.&lt;br /&gt;
&lt;br /&gt;
Für weitere Informationen lesen Sie bitte [[Getting Started/Increased Productivity in KDE4 with Scripts]].&lt;br /&gt;
&lt;br /&gt;
=== Zum neuen Benutzer wechseln ===&lt;br /&gt;
&lt;br /&gt;
Sie können sich nun als Benutzer kde-devel anmelden (der Bindestrich ist wichtig!):&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Der Rest dieser Anleitung geht davon aus, dass Sie alle Befehle als &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; ausführen.&lt;br /&gt;
&lt;br /&gt;
== Die Shell des Entwicklungsbenutzers ==&lt;br /&gt;
Auf manchen Systemen nutzen neue Benutzer standardmäßig {{path|/bin/sh}}. Wenn dies auf Ihrem System nicht der Fall ist, können Sie diesen Abschnitt überspringen. {{path|/bin/sh}} zu nuzten kann sich als sehr unangenehm erweisen. Daher sollten Sie erwägen, zu {{path|/bin/bash}} oder einer anderen Shell zu wechseln.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Als kde-devel-Benutzer ===&lt;br /&gt;
Wenn Sie keine root-Privilegien haben und Ihr System das Wechseln der eigenen Shell mittels &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; unterstützt, können Sie versuchen, Ihre Shell zu {{path|/bin/bash}} zu wechseln, indem Sie Folgendes eingeben:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Als root-Benutzer ===&lt;br /&gt;
Wenn Ihr System die Anwendung &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; beinhaltet, können Sie den folgenden Befehl als root-Benuzter eingeben: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Eine weitere Möglichkeit ist die Nutzung der Anwendung &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; als root-Benuzter, um auf sichere Art {{path|/etc/passwd}} zu editieren. Machen Sie 'kde-devel' in dieser Datei ausfindig und ändern Sie '{{path|/bin/sh}}' am Zeilenende in '{{path|/bin/bash}}'. Speichern Sie die Änderungen und beenden Sie die Anwendung.&lt;br /&gt;
&lt;br /&gt;
Die neue Shell wird automatisch gestartet wenn Sie sich wieder als kde-devel-Benutzer einloggen.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus und KDE arbeiten mit den D-Bus-Versionen 0.6.2, 0.92 und höher zusammen. Die Versionen 0.60 und 0.61 funktionieren eventuell auch, sind aber ungetestet. Die Versionen 0.90 und 0.91 funktionieren definitiv nicht.&lt;br /&gt;
&lt;br /&gt;
Wir empfehlen, dass sie eine aktuelle, stabile Version, also größer Version 1.0, benutzen, wenigstens aber Version 0.94.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie eine aktuelle D-Bus-Version auf ihrem System bereits installiert haben oder Ihre D-Bus-Version nicht aktualisieren wollen, können Sie die nächste Sektion überspringen.&lt;br /&gt;
&lt;br /&gt;
Bevor Sie die nächsten Schritte durchgehen sollten Sie sicherstellen, dass die X11-header und -Bibliotheken installiert sind. Das Konfigurations-Skript sollte folgende Ausgabe ergeben:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Make sure you did set up your environment correctly as described [[Getting_Started/Build/KDE4#Setting_up_the_environment|above]]. This is necessary for the &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; functions to work.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click here to learn more]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=$KDEDIR/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert === &lt;br /&gt;
After changing into the source directory (line 1), D-Bus source code is downloaded from freedesktop.org (line 2) and unpacked (line 3). After going into the newly created D-Bus directory (line 4), the build is set up using the supplied {{path|configure}} script (line 5). After building (line 6) and installing (line 7) D-Bus, we use the &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt; tool to install a machine identification file that allows the bus to start automatically when the desktop session starts (line 8).&lt;br /&gt;
&lt;br /&gt;
Note that you need write access to {{path|/var}} for the last two steps. If your system does not have the sudo command, you can use the &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; command instead, e.g. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
&lt;br /&gt;
If you get the error '''makeobj: command not found''' you are lacking the command &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Skip this if you have [http://cmake.org/ CMake] &amp;gt;=2.4.5 installed. &lt;br /&gt;
You should be able to directly use the binary packages available on the [http://www.cmake.org/HTML/Download.html CMake site]. There are also distribution specific packages available.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click Here to learn more]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
First, we go back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's source directory (line 1), get the CMake sources (line 2) and unpack them (line 3). We create a directory to build CMake in (line 4) and go into it (line 5). We then run the CMake bootstrap script to set up the CMake build (line 6), then make (line 7) and install it (line 8) using the root user.&lt;br /&gt;
&lt;br /&gt;
If your system does not have the &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt; command, you can instead do &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Next we need to get the Qt4 that is in KDE's source repository. KDE is guaranteed to build against any Qt 4.3. Qt 4.2 and earlier are not supported and will not work. Qt 4.3 has been released only recently, so your distribution probably doesn't have packages for it yet (known exceptions: Kubuntu, openSUSE). You should use the copy in the KDE Subversion servers.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
 # make install: only if QTDIR is not the current directory!&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We switch back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's home directory (line 1) and download the source code using subversion (svn) from KDE's repository (line 2). After changing into the resulting {{path|qt-copy}} directory (line 3), we run a script that manages the patches that come with &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; (line 4). &lt;br /&gt;
&lt;br /&gt;
Once the patches have been applied, we then set up the build using the &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt; script (line 5-7). The various command line options used are explained in the {{path|qt-copy/README.qt-copy}} file. Finally, we build the minimal requirements for KDE (line 8) and install (line 9-10) Qt. If you want all the example and demo applications, you can either build them individually or simply do a &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; from the {{path|qt-copy}} directory. &lt;br /&gt;
&lt;br /&gt;
Note that the installation does not require root as it installs Qt locally into {{path|$QTDIR}}. Anyway, installation is only needed if {{path|$QTDIR}} differs from {{path|$HOME/qt-copy}}, which is not the case if you have exactly followed the instructions.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you get &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (the actual name may vary between operating systems, for example it is &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt; on Ubuntu based systems such as Kubuntu). &lt;br /&gt;
&lt;br /&gt;
If you get an error in the configure step about missing defines, check the value of &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;.  Some distributions set this to point directly to the system-installed Qt.  If &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; solves the problem, you probably want to add it to the &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt; script.&lt;br /&gt;
&lt;br /&gt;
If you get an error &amp;quot;.pch/debug-shared/QtCore&amp;quot;, this is because Qt-4.3 enables precompiled headers if your gcc supports it, but for some reason it doesn't work for you. If you use distcc, configure qt with -no-pch. If you use icecream, update to the latest icecream from svn trunk.&lt;br /&gt;
&lt;br /&gt;
Try running any Qt program, like {{program|assistant}}. If it crashes in QSpanData::adjustSpanMethods, then your problem is the oxygen style. Try removing {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} and {{path|lib/kde4/plugins/styles/oxygen.so}} if they exist in the KDE install prefix.&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Der Code zum Erhalten der Dateimetadaten ist nun von Strigi abhängig. Um Strigi zu installieren, benötigen Sie die Bibliotheken und header von libz, libbz2, openssl (libcrypto oder libssl), libclucene (=0.9.16; Version 0.9.17 funktioniert '''nicht'''), und entweder libxml2 oder libexpat.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi&lt;br /&gt;
 cd strigi&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode für Strigi mittels subversion herunter (Zeile 2) und wechseln anschließend in das neue {{path|~/src/strigi}} Verzeichnis (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von Strigi wieder.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
Wenn Sie &lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
erhalten, sollten Sie das devel-Paket für libxml2 installieren.&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
{{warning|Wenn Sie diesen Abschnitt erreicht haben, ohne [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]] zu lesen, '''werden die hier angebotenen Rezepte nicht funktionieren'''. Diese Rezepte sind nicht defekt; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; und &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; sind keine Tippfehler. Ihre Umgebung '''muss''' korrekt eingerichtet sein, damit diese Instruktionen funktionieren.}}&lt;br /&gt;
&lt;br /&gt;
Der Code zum Erhalten von kmetadata für Dateien ist von Soprano abhängig. Um Soprano zu installieren benötigen Sie die Bibliotheken und header von librdf.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano&lt;br /&gt;
 cd soprano&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das Quellverzeichnis (Zeile 1), laden den Quellcode für Soprano mittels subversion herunter (Zeile 2) und wechseln anschließend in das neue {{path|~/src/soprano}} Verzeichnis (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von Soprano wieder.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
Wenn Sie&lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
erhalten, benötigen Sie librdf aus den Redland-Bibliotheken.&lt;br /&gt;
Wenn Ihre Distribution das librdf Paket nicht zur Verfügung stellt, können Sie dessen Quellcode hier herunterladen [http://download.librdf.org/source/ http://download.librdf.org/source/] und selbst kompilieren. In Gentoo wird das Paket 'redland' anstatt librdf genannt.&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
&lt;br /&gt;
With Qt4 and Strigi built, we can now move on to building KDE's base libraries. If you use the aforementioned [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] this is where those new functions come in handy. &lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1) then make and go into the KDE directory (line 2). We download the sources for kdelibs using subversion (line 3), go into the new {{path|~/src/KDE/kdelibs}} directory (line 4), and commence the build (line 5). This will leave us in the &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
{{tip|There might be missing dependencies on your system! They are easily overlooked in the output of &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;.&lt;br /&gt;
You might want to do a &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; prior to compiling any kde modules (like kdelibs, kdepimlibs etc.)}}&lt;br /&gt;
&lt;br /&gt;
=== Additional KDE-specific CMake modules ===&lt;br /&gt;
There are additional CMake modules in {{path|kdelibs/cmake/modules/}} that are necessary for building KDE4 applications. These will be installed for you when  kdelibs itself is installed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you have problems compiling kdelibs, first make sure the software in the [[Getting_Started/Build/KDE4#Required_Software|Required Software]] section above is installed and works. Other possible hints include:&lt;br /&gt;
* If the &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; command fails stating that CMake requires an out of source build directory, remove {{path|~/src/KDE/kdelibs/CMakeCache.txt}}, and try again.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; still gives the same error then try this &lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* If you received an error stating &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot;, then you need to change to your build directory before running cmakekde. (e.g &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* If Qt wasn't found or the wrong version of Qt was found, make sure that the qmake from the Qt you need is the first qmake in the path.&lt;br /&gt;
* If the problems persist, try the CMake make-option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Here you need the libungif library, otherwise you will get an error message like &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3 upgrade: if you get a link error in kjsembed talking about QScriptEngine, edit CMakeCache.txt in kdelibs and remove the lines that talk about QT_QTUITOOLS_LIBRARY, then type make again (that static library has a new dependency, and the cmake code that adds it needs to run).&lt;br /&gt;
* if you get &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&lt;br /&gt;
&amp;lt;/code&amp;gt;, install openssl-devel, and re-compile QT.&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
Sie müssen ''kdepimlibs'' nach &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, aber vor ''kdebase'' installieren.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
Wir wechseln in das KDE Quellverzeichnis (Zeile 1), laden den Quellcode für kdepimlibs mittels subversion herunter (Zeile 2) und wechseln anschließend in das neue {{path|~/src/KDE/kdepimlibs}} Verzeichnis (Zeile 3). Dann starten wir die Kompilierung (Zeile 4). Wir finden uns im Anschluss an die Kompilierung im build-Verzeichnis von &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; wieder.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
Für manche kioslaves mag kdebase benötigt werden.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Schwierigkeiten beim Kompilieren von kdebase haben:&lt;br /&gt;
* Stellen Sie sicher, dass die &amp;lt;tt&amp;gt;libxss header&amp;lt;/tt&amp;gt; installiert sind. (Sollten diese header nicht installiert sein, erhalten Sie in der Regel undefinierte Verweise auf xscreensaver Objekte.)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; muss {{path|/home/kde-devel/kde/bin/meinproc}} ausgeben.&lt;br /&gt;
* Wenn cmakekde das kdepimlibs-Verzeichnis nicht finden kann, editieren Sie die Datei {{path|$KDE_BUILD/kdebase/CMakeCache.txt}} und definieren Sie &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt; manuell.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot; erhalten, installieren Sie das devel Paket von &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. Auf manchen Systemen ist es separat von &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; gepackt und &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; oder &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt; benannt. Sie müssen eventuell außerdem nach der Installation dieses Paketes die Datei CMakeCache.txt im build Verzeichnis löschen.&lt;br /&gt;
* Dasselbe gilt für die analoge Fehlerausgabe betreffend der Variable &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot;: Sie benötigen das devel Paket für &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot; erhalten, müssen Sie die libfontconfig header installieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot; erhalten, müssen Sie soprano aus kdesupport installieren und dann kdelibs neu kompilieren.&lt;br /&gt;
* Wenn Sie die Fehlerausgabe &amp;quot;‘XserverRegion’ does not name a type&amp;quot; erhalten, stellen Sie sicher, dass Sie die libxcomposite header installiert haben. (In Ubuntu werden sie &amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt; genannt.)&lt;br /&gt;
&lt;br /&gt;
== Lokale API-Dokumentation erstellen ==&lt;br /&gt;
&lt;br /&gt;
Obwohl die API-Dokumentation für KDE online unter [http://api.kde.org api.kde.org] verfügbar ist, kann es hilfreich sein, sie offline verfügbar zu haben, zum Beispiel wenn Sie [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] zum Durchsuchen der Dokumentation nutzen oder wenn Sie nicht ständig online sein können.&lt;br /&gt;
&lt;br /&gt;
Seien Sie sich bewusst, dass das Generieren der API-Dokumentation mehrere Stunden in Anspruch nehmen kann und knapp einen halben Gigabyte an Speicherplatz benötigt.&lt;br /&gt;
Das Generieren wird von einem Skript in {{path|kdelibs/doc/api}} ausgeführt; Sie benötigen &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt;, um es ausführen zu können.&lt;br /&gt;
&lt;br /&gt;
Um die API-Dokumentation für kdelibs zu generieren, geben Sie Folgendes ein:&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Wiederholen Sie dies nach Bedarf für andere Module.&lt;br /&gt;
&lt;br /&gt;
== Allgemeine Fehlerbehebung ==&lt;br /&gt;
&lt;br /&gt;
Es kann im Laufe der Zeit nach mehrmaligem Ausführen von &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; vorkommen, dass sich das Ausgabeformat einiger Werkzeuge, die in der KDE Werkzeugkette benutzt werden, ändert. Zum Beispiel werden &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; Dateien vom &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; gelesen, um die Konfigurationsdialoge zu generieren. Da CMake diese Veränderungen nicht erkennen kann, kann das Kompilieren fehlschlagen. Eine provisorische Lösung ist, die Regenerierung all dieser Dateien zu erzwingen:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
Dasselbe gilt für &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; Dateien wie solche, die vom Qt designer generiert werden.&lt;br /&gt;
&lt;br /&gt;
== Das wars! ==&lt;br /&gt;
&lt;br /&gt;
Sie sind nun bereit, andere svn Module in derselben Weise wie kdebase zu kompilieren, KDE4 zu benutzen und zu testen, sowie Ihre eigenen Patches und Anwendungen zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Siehe auch die Anleitung [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] um Hilfe beim Starten von KDE4 Anwendungen sowie zur Nutzung von KDevelop zu erhalten.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4_(de)</id>
		<title>Getting Started/Build/KDE4 (de)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4_(de)"/>
				<updated>2007-06-04T23:24:57Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: /* Ein Benutzer für die KDE 4 Entwicklung */ Wenn es eins gibt, was ich bei solchen Übersetzungen hasse, dann ist es die Übersetzung in die &amp;quot;Sie&amp;quot;-Form statt in die &amp;quot;Du&amp;quot;-Form :(&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n_Getting_Started_Build_KDE4}}&lt;br /&gt;
&lt;br /&gt;
(Diese Anleitung befindet sich noch im Aufbau und ist eine Kopie des [[Getting_Started/Build/KDE4|englischen Orginals]]. Hilf mit, es zu übersetzen und es auf dem aktuellen Stand zu halten!)&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Vorbereitungen|&lt;br /&gt;
&lt;br /&gt;
name=KDE4 aus dem Quellcode bauen|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Übersicht ==&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt einen Weg, um KDE auf Linux und BSD-Systemen&lt;br /&gt;
zu komplieren und laufen zu lassen. Als Grundlage verwenden wir die Shell.&lt;br /&gt;
Wenn Sie sich für andere Systeme wie etwa Solaris, MacOS oder Microsoft Windows ersetzen, besuchen Sie bitte [[../|Build]] und folgen Sie den&lt;br /&gt;
Links am Ende der Seite.&lt;br /&gt;
&lt;br /&gt;
{{warning|Stellen Sie sich auf verstärkt auftretende Buildprobleme '''an Montagen''' ein, da die Entwickler an diesem Wochentag kritische Änderungen vornehmen. Das [http://developer.kde.org/~dirk/dashboard/ Dashboard] zeigt unerwartete Probleme beim Kompilieren an.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Benötigte Software ==&lt;br /&gt;
&lt;br /&gt;
Folgendes muss installiert sein, um dieses Tutorial erfolgreich durchführen zu können:&lt;br /&gt;
* gcc and g++ from the gcc project, preferably version 4.1 or higher&lt;br /&gt;
* svn, the subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* development libraries and headers for X11, OpenGL (mesa-common-dev and libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 and libxslt&lt;br /&gt;
* the &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; script, which is part of kdesdk. You can install it as part of kdesdk (kdesdk-scripts on Debian) or similar package, or just download it itself from [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* the [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info package], which is the freedesktop MIME standard KDE is using now&lt;br /&gt;
* [http://boost.org/ boost], needed by kdebase; after compiling and/or installing boost, in order to make cmake aware about its location (FindBoost),  add boost directory (the one containing include subdirectory) to CMAKE_INCLUDE_PATH or set an environment variable called BOOST_ROOT pointing to boost directory.&lt;br /&gt;
&lt;br /&gt;
Weiterhin ist es zu empfehlen, folgende Software bereits installiert zu haben:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
I Kubuntu 7.04 (Feisty) kann alle zum Bau der Pakete benötigte Software mit folgendem Befehl installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die manuelle Installation von Qt 4.3, CMake 2.4.6 und DBus kann durch die Installation der folgenden Pakete und ihrer Abhängigkeiten vermieden werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Für eine voll funktionstüchtige [[apidox]] Umgebung wird ebenfalls zusätzliche Software benötigt:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
{{note||Der openSUSE build service stellt ebenfalls tagesaktuelle KDE-4-Pakete bereit, die das gesamte auf dieser Seite beschriebene Vorgehen überflüssig machen. Weitere Informationen findet man direkt im openSUSE wiki unter [http://de.opensuse.org/KDE4 KDE4].}}&lt;br /&gt;
&lt;br /&gt;
In OpenSuse können Pakete mit Hilfe von [http://de.opensuse.org/Zypper Zypper] installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In älteren SUSE-Versionen geht dies nur mit Yast:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die meisten zum Bau von KDE 4 nötigen Pakete sind:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
xorg-x11-devel, libxml2-devel, kdesdk3, clucene-core-devel, libjpeg-devel, liblrdf-devel, libpng-devel, libxslt-devel, Mesa-devel, giflib-devel, subversion, gcc, gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bereits vorkompilierte CMake-Pakete für openSUSE sind direkt verfügbar im  [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
== Ein Benutzer für die KDE 4 Entwicklung ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Einige Menschen ziehen es vor, für KDE 4 einen separaten Nutzer-Account einzurichten, um nicht aus Versehen durch noch bestehende Bugs oder ähnliches Daten zu verlieren. Die Anleitung hier basiert auf der Herangehensweise.&lt;br /&gt;
&lt;br /&gt;
Es ist jedoch deutlich effizienter alles mit einem einzigen Nutzer-Account zu machen. Unter [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]] findet man mehr Details dazu.&lt;br /&gt;
&lt;br /&gt;
In diesem Fall ist die folgende Anleitung noch immer gültig, jedoch sollten die nötigen Umgebungsvariablen nicht in die &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, sondern in eine separate Datei geschrieben werden, die dann bei Bedarf eingelesen wird.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Kommandozeile ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Über KControl ===&lt;br /&gt;
&lt;br /&gt;
Anstatt der oben genannten Befehle kann man auch mit Hilfe des Nutzer-Moduls des KDE Control Centers (kcontrol) einen weiteren Nutzer einrichten.&lt;br /&gt;
&lt;br /&gt;
=== Einrichten der Entwicklungsumgebung ===&lt;br /&gt;
&lt;br /&gt;
Kopieren Sie die Datei {{path|~/.bashrc}} von Ihrem normalen Nutzer-Account zu Ihrem neuen kde-devel-Account. Danach fügen Sie den Inhalt der Seite [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] in die Datei {{path|~kde-devel/.bashrc}} ein. Stellen Sie sicher, dass die Zeile &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; auskommentiert ist falls auf Ihrem System das Programm &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; nicht verfügbar ist.&lt;br /&gt;
Die neue {{path|~/.bashrc}} wird mit folgendem Befehl eingelesen:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nun haben Sie Zugriff auf Befehle wie &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;, die in dieser Anleitung genutzt werden. Auch wird so sichergestellt, dass alle wichtigen Umgebungsvariablen (z.B. für die Pfadangaben von Qt, KDE und CMake) richtig gesetzt sind.&lt;br /&gt;
&lt;br /&gt;
Für weitere Informationen lesen Sie bitte [[Getting Started/Increased Productivity in KDE4 with Scripts]].&lt;br /&gt;
&lt;br /&gt;
=== Zum neuen Benutzer wechseln ===&lt;br /&gt;
&lt;br /&gt;
Sie können sich nun als Benutzer kde-devel anmelden (der Bindestrich ist wichtig!):&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Der Rest dieser Anleitung geht davon aus, dass Sie alle Befehle als &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; ausführen.&lt;br /&gt;
&lt;br /&gt;
== Die Shell des Entwicklungsbenutzers ==&lt;br /&gt;
&lt;br /&gt;
On some systems a new user is configured by default to use {{path|/bin/sh}}. If this is not the case on your system, you can skip this section. Using {{path|/bin/sh}} can be very inconvenient to work with and you may want to change it to {{path|/bin/bash}} or another shell.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Als kde-devel-Benutzer ===&lt;br /&gt;
&lt;br /&gt;
If you don't have root privileges and your system supports the changing of your own shell with the &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; application, then you could try to change your shell to {{path|/bin/bash}} by using:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Als root-Benutzer ===&lt;br /&gt;
&lt;br /&gt;
If your system comes with the &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; application you can run the following command as root: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another option is to use the &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; application as root to safely edit your {{path|/etc/passwd}}. Locate 'kde-devel' in the the file. Change '{{path|/bin/sh}}' at the end of the line to read '{{path|/bin/bash}}', save your changes and exit.&lt;br /&gt;
&lt;br /&gt;
The new shell will be started automatically when you log in as the kde-devel user again.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus and KDE are known to work with D-Bus versions 0.62, as well as 0.92 and upwards. Versions 0.60 and 0.61 may work too but are not tested. Versions 0.90 and 0.91 are known not to work. We recommend using post-1.0 release versions (at least 0.94), so consider upgrading if you haven't done so.&lt;br /&gt;
&lt;br /&gt;
You may skip this section if you have a recent D-Bus version or if you don't want to upgrade.&lt;br /&gt;
&lt;br /&gt;
Before running these steps in the recipe, make sure your X11 headers and libraries are available. The configure script run on line 5 should output:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Make sure you did set up your environment correctly as described [[Getting_Started/Build/KDE4#Setting_up_the_environment|above]]. This is necessary for the &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; functions to work.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click here to learn more]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=$KDEDIR/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert === &lt;br /&gt;
After changing into the source directory (line 1), D-Bus source code is downloaded from freedesktop.org (line 2) and unpacked (line 3). After going into the newly created D-Bus directory (line 4), the build is set up using the supplied {{path|configure}} script (line 5). After building (line 6) and installing (line 7) D-Bus, we use the &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt; tool to install a machine identification file that allows the bus to start automatically when the desktop session starts (line 8).&lt;br /&gt;
&lt;br /&gt;
Note that you need write access to {{path|/var}} for the last two steps. If your system does not have the sudo command, you can use the &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; command instead, e.g. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
&lt;br /&gt;
If you get the error '''makeobj: command not found''' you are lacking the command &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Skip this if you have [http://cmake.org/ CMake] &amp;gt;=2.4.5 installed. &lt;br /&gt;
You should be able to directly use the binary packages available on the [http://www.cmake.org/HTML/Download.html CMake site]. There are also distribution specific packages available.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click Here to learn more]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
First, we go back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's source directory (line 1), get the CMake sources (line 2) and unpack them (line 3). We create a directory to build CMake in (line 4) and go into it (line 5). We then run the CMake bootstrap script to set up the CMake build (line 6), then make (line 7) and install it (line 8) using the root user.&lt;br /&gt;
&lt;br /&gt;
If your system does not have the &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt; command, you can instead do &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Next we need to get the Qt4 that is in KDE's source repository. KDE is guaranteed to build against any Qt 4.3. Qt 4.2 and earlier are not supported and will not work. Qt 4.3 has been released only recently, so your distribution probably doesn't have packages for it yet (known exceptions: Kubuntu, openSUSE). You should use the copy in the KDE Subversion servers.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
 # make install: only if QTDIR is not the current directory!&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We switch back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's home directory (line 1) and download the source code using subversion (svn) from KDE's repository (line 2). After changing into the resulting {{path|qt-copy}} directory (line 3), we run a script that manages the patches that come with &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; (line 4). &lt;br /&gt;
&lt;br /&gt;
Once the patches have been applied, we then set up the build using the &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt; script (line 5-7). The various command line options used are explained in the {{path|qt-copy/README.qt-copy}} file. Finally, we build the minimal requirements for KDE (line 8) and install (line 9-10) Qt. If you want all the example and demo applications, you can either build them individually or simply do a &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; from the {{path|qt-copy}} directory. &lt;br /&gt;
&lt;br /&gt;
Note that the installation does not require root as it installs Qt locally into {{path|$QTDIR}}. Anyway, installation is only needed if {{path|$QTDIR}} differs from {{path|$HOME/qt-copy}}, which is not the case if you have exactly followed the instructions.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you get &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (the actual name may vary between operating systems, for example it is &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt; on Ubuntu based systems such as Kubuntu). &lt;br /&gt;
&lt;br /&gt;
If you get an error in the configure step about missing defines, check the value of &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;.  Some distributions set this to point directly to the system-installed Qt.  If &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; solves the problem, you probably want to add it to the &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt; script.&lt;br /&gt;
&lt;br /&gt;
If you get an error &amp;quot;.pch/debug-shared/QtCore&amp;quot;, this is because Qt-4.3 enables precompiled headers if your gcc supports it, but for some reason it doesn't work for you. If you use distcc, configure qt with -no-pch. If you use icecream, update to the latest icecream from svn trunk.&lt;br /&gt;
&lt;br /&gt;
Try running any Qt program, like {{program|assistant}}. If it crashes in QSpanData::adjustSpanMethods, then your problem is the oxygen style. Try removing {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} and {{path|lib/kde4/plugins/styles/oxygen.so}} if they exist in the KDE install prefix.&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
{{warning|If you have jumped to this section without reading [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]], '''the recipes provided will not work'''. &lt;br /&gt;
&lt;br /&gt;
The recipes are not in error; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; are not typos. Your environment '''needs''' to be set up correctly for these instructions to work for you.}}&lt;br /&gt;
&lt;br /&gt;
The code for getting file metadata now relies on Strigi. To install Strigi you need the libraries and headers for libz, libbz2, openssl (libcrypto or libssl), libclucene (=0.9.16; version 0.9.17 does '''not''' work), and either libxml2 or libexpat.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi&lt;br /&gt;
 cd strigi&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1). We download the sources for Strigi using subversion (line 2), go into the new {{path|~/src/strigi}} directory (line 3), and commence the build (line 4). This will leave us in the strigi build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
If you get &lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
you should install the development package for libxml2.&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
{{warning|If you have jumped to this section without reading [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]], '''the recipes provided will not work'''. &lt;br /&gt;
&lt;br /&gt;
The recipes are not in error; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; are not typos. Your environment '''needs''' to be set up correctly for these instructions to work for you.}}&lt;br /&gt;
&lt;br /&gt;
The code for getting file kmetadata relies on Soprano. To install Soprano you need the libraries and headers for librdf.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano&lt;br /&gt;
 cd soprano&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1). We download the sources for Soprano using subversion (line 2), go into the new {{path|~/src/soprano}} directory (line 3), and commence the build (line 4). This will leave us in the soprano build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
=&lt;br /&gt;
If you get &lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
then you need librdf from the Redland.&lt;br /&gt;
If your distribution does not provide the librdf package, you can download the source there: [http://download.librdf.org/source/ http://download.librdf.org/source/] and build it. On Gentoo the package is called 'redland', instead of librdf.&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
&lt;br /&gt;
With Qt4 and Strigi built, we can now move on to building KDE's base libraries. If you use the aforementioned [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] this is where those new functions come in handy. &lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1) then make and go into the KDE directory (line 2). We download the sources for kdelibs using subversion (line 3), go into the new {{path|~/src/KDE/kdelibs}} directory (line 4), and commence the build (line 5). This will leave us in the &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
{{tip|There might be missing dependencies on your system! They are easily overlooked in the output of &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;.&lt;br /&gt;
You might want to do a &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; prior to compiling any kde modules (like kdelibs, kdepimlibs etc.)}}&lt;br /&gt;
&lt;br /&gt;
=== Additional KDE-specific CMake modules ===&lt;br /&gt;
There are additional CMake modules in {{path|kdelibs/cmake/modules/}} that are necessary for building KDE4 applications. These will be installed for you when  kdelibs itself is installed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you have problems compiling kdelibs, first make sure the software in the [[Getting_Started/Build/KDE4#Required_Software|Required Software]] section above is installed and works. Other possible hints include:&lt;br /&gt;
* If the &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; command fails stating that CMake requires an out of source build directory, remove {{path|~/src/KDE/kdelibs/CMakeCache.txt}}, and try again.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; still gives the same error then try this &lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* If you received an error stating &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot;, then you need to change to your build directory before running cmakekde. (e.g &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* If Qt wasn't found or the wrong version of Qt was found, make sure that the qmake from the Qt you need is the first qmake in the path.&lt;br /&gt;
* If the problems persist, try the CMake make-option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Here you need the libungif library, otherwise you will get an error message like &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3 upgrade: if you get a link error in kjsembed talking about QScriptEngine, edit CMakeCache.txt in kdelibs and remove the lines that talk about QT_QTUITOOLS_LIBRARY, then type make again (that static library has a new dependency, and the cmake code that adds it needs to run).&lt;br /&gt;
* if you get &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&lt;br /&gt;
&amp;lt;/code&amp;gt;, install openssl-devel, and re-compile QT.&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
After &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, but before ''kdebase'', you need to build and install ''kdepimlibs''.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We go into the KDE source directory (line 1), download the source code for kdepimlibs using subversion (line 2) and then go into the new {{path|~/src/KDE/kdepimlibs}} directory (line 3). We then commence the build (line 4). This will leave us in the &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
You may need kdebase for some kioslaves.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you have troubles compiling kdebase:&lt;br /&gt;
* Make sure you have the &amp;lt;tt&amp;gt;libxss headers&amp;lt;/tt&amp;gt; installed. (Usually you got undefined references on xscreensaver objects if you haven't those headers)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; has to deliver {{path|/home/kde-devel/kde/bin/meinproc}}&lt;br /&gt;
* if cmakekde can not find the path of kdepimlibs, edit the file {{path|$KDE_BUILD/kdebase/CMakeCache.txt}} and manually set &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt;&lt;br /&gt;
* if you get an error saying &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. On some systems, this is packaged separately from &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; and called &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt;. You may also need to remove the CMakeCache.txt file in the build dir after installing the package.&lt;br /&gt;
* the same for &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot; where you will need the devel package for &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* if you get the error &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot;, then you need to install  the libfontconfig headers&lt;br /&gt;
* if you get the error &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot;, you need to install soprano from kdesupport and to rebuild kdelibs&lt;br /&gt;
* if you get the error &amp;quot;‘XserverRegion’ does not name a type&amp;quot; make sure you have libxcomposite headers installed (&amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt; in ubuntu)&lt;br /&gt;
&lt;br /&gt;
== Lokale API-Dokumentation erstellen ==&lt;br /&gt;
Although the API documentation for KDE is available online at [http://api.kde.org api.kde.org], it is sometimes useful to have it on your own disk, for example when you want to use [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] for browsing the documentation or when you are not able to be online all the time.&lt;br /&gt;
&lt;br /&gt;
Be aware that generating the API documentation can take several hours and takes almost half a gigabyte of diskspace.&lt;br /&gt;
The generation is handled by a script in {{path|kdelibs/doc/api}}, you need &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt; to be able to run it. &lt;br /&gt;
&lt;br /&gt;
To build the API documentation for kdelibs, type the following:&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Repeat for other modules as desired.&lt;br /&gt;
&lt;br /&gt;
== Allgemeine Fehlerbehebung ==&lt;br /&gt;
&lt;br /&gt;
Es kann im Laufe der Zeit nach mehrmaligem Ausführen von &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; vorkommen, dass sich das Ausgabeformat einiger Werkzeuge, die in der KDE Werkzeugkette benutzt werden, ändert. Zum Beispiel werden &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; Dateien vom &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; gelesen, um die Konfigurationsdialoge zu generieren. Da CMake diese Veränderungen nicht erkennen kann, kann das Kompilieren fehlschlagen. Eine provisorische Lösung ist, die Regenerierung all dieser Dateien zu erzwingen:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
Dasselbe gilt für &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; Dateien wie solche, die vom Qt designer generiert werden.&lt;br /&gt;
&lt;br /&gt;
== Das wars! ==&lt;br /&gt;
&lt;br /&gt;
Sie sind nun bereit, andere svn Module in derselben Weise wie kdebase zu kompilieren, KDE4 zu benutzen und zu testen, sowie Ihre eigenen Patches und Anwendungen zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Siehe auch die Anleitung [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] um Hilfe beim Starten von KDE4 Anwendungen sowie zur Nutzung von KDevelop zu erhalten.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE4_(de)</id>
		<title>Getting Started/Build/KDE4 (de)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE4_(de)"/>
				<updated>2007-06-04T23:14:07Z</updated>
		
		<summary type="html">&lt;p&gt;Liquidat: Suse und Kubuntu übersetzt&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n_Getting_Started_Build_KDE4}}&lt;br /&gt;
&lt;br /&gt;
(Diese Anleitung befindet sich noch im Aufbau und ist eine Kopie des [[Getting_Started/Build/KDE4|englischen Orginals]]. Hilf mit, es zu übersetzen und es auf dem aktuellen Stand zu halten!)&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
&lt;br /&gt;
series=Vorbereitungen|&lt;br /&gt;
&lt;br /&gt;
name=KDE4 aus dem Quellcode bauen|&lt;br /&gt;
&lt;br /&gt;
pre=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]|&lt;br /&gt;
&lt;br /&gt;
next=[[../../Set_up_KDE_4_for_development|Set up KDE 4 for development]]|&lt;br /&gt;
&lt;br /&gt;
reading=[http://kdesvn-build.kde.org/ kdesvn-build: The KDE From Subversion Build Tool]&amp;lt;br&amp;gt;[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&amp;lt;br&amp;gt;[[Development/Tutorials/CMake |Introduction to CMake]]&amp;lt;br&amp;gt;[[../KDE4/FreeBSD|FreeBSD notes]]&amp;lt;br&amp;gt;[[../KDE4/Mac OS X|Instructions for Mac OS X]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Übersicht ==&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt einen Weg, um KDE auf Linux und BSD-Systemen&lt;br /&gt;
zu komplieren und laufen zu lassen. Als Grundlage verwenden wir die Shell.&lt;br /&gt;
Wenn Sie sich für andere Systeme wie etwa Solaris, MacOS oder Microsoft Windows ersetzen, besuchen Sie bitte [[../|Build]] und folgen Sie den&lt;br /&gt;
Links am Ende der Seite.&lt;br /&gt;
&lt;br /&gt;
{{warning|Stellen Sie sich auf verstärkt auftretende Buildprobleme '''an Montagen''' ein, da die Entwickler an diesem Wochentag kritische Änderungen vornehmen. Das [http://developer.kde.org/~dirk/dashboard/ Dashboard] zeigt unerwartete Probleme beim Kompilieren an.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Benötigte Software ==&lt;br /&gt;
&lt;br /&gt;
Folgendes muss installiert sein, um dieses Tutorial erfolgreich durchführen zu können:&lt;br /&gt;
* gcc and g++ from the gcc project, preferably version 4.1 or higher&lt;br /&gt;
* svn, the subversion revision control client&lt;br /&gt;
* pkg-config&lt;br /&gt;
* development libraries and headers for X11, OpenGL (mesa-common-dev and libglu1-mesa-dev), libjpeg, libpng, libungif, [http://clucene.sourceforge.net/index.php/Downloads libclucene], [http://download.librdf.org/source/ librdf], libxml2 and libxslt&lt;br /&gt;
* the &amp;lt;tt&amp;gt;makeobj&amp;lt;/tt&amp;gt; script, which is part of kdesdk. You can install it as part of kdesdk (kdesdk-scripts on Debian) or similar package, or just download it itself from [http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/makeobj WebSVN]&lt;br /&gt;
* the [http://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info package], which is the freedesktop MIME standard KDE is using now&lt;br /&gt;
* [http://boost.org/ boost], needed by kdebase; after compiling and/or installing boost, in order to make cmake aware about its location (FindBoost),  add boost directory (the one containing include subdirectory) to CMAKE_INCLUDE_PATH or set an environment variable called BOOST_ROOT pointing to boost directory.&lt;br /&gt;
&lt;br /&gt;
Weiterhin ist es zu empfehlen, folgende Software bereits installiert zu haben:&lt;br /&gt;
* bash&lt;br /&gt;
&lt;br /&gt;
=== Kubuntu ===&lt;br /&gt;
&lt;br /&gt;
I Kubuntu 7.04 (Feisty) kann alle zum Bau der Pakete benötigte Software mit folgendem Befehl installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install build-essential cdbs debhelper cmake libungif4-dev \&lt;br /&gt;
libxml2-dev libxslt1-dev libbz2-dev libclucene-dev librdf-dev \&lt;br /&gt;
shared-mime-info libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \&lt;br /&gt;
libxext-dev libjpeg-dev libpng-dev libsm-dev libxinerama-dev \&lt;br /&gt;
libxrender-dev libfontconfig-dev libboost-dev libxcursor-dev doxygen&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die manuelle Installation von Qt 4.3, CMake 2.4.6 und DBus kann durch die Installation der folgenden Pakete und ihrer Abhängigkeiten vermieden werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install libqt4-dev-kdecopy libdbus-1-dev cmake&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Für eine voll funktionstüchtige [[apidox]] Umgebung wird ebenfalls zusätzliche Software benötigt:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo aptitude install graphviz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
{{note||Der openSUSE build service stellt ebenfalls tagesaktuelle KDE-4-Pakete bereit, die das gesamte auf dieser Seite beschriebene Vorgehen überflüssig machen. Weitere Informationen findet man direkt im openSUSE wiki unter [http://de.opensuse.org/KDE4 KDE4].}}&lt;br /&gt;
&lt;br /&gt;
In OpenSuse können Pakete mit Hilfe von [http://de.opensuse.org/Zypper Zypper] installiert werden:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
sudo zypper install &amp;lt;package-name&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In älteren SUSE-Versionen geht dies nur mit Yast:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
yast2 -i &amp;lt;packagename&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die meisten zum Bau von KDE 4 nötigen Pakete sind:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
xorg-x11-devel, libxml2-devel, kdesdk3, clucene-core-devel, libjpeg-devel, liblrdf-devel, libpng-devel, libxslt-devel, Mesa-devel, giflib-devel, subversion, gcc, gcc-c++&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bereits vorkompilierte CMake-Pakete für openSUSE sind direkt verfügbar im  [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].&lt;br /&gt;
&lt;br /&gt;
== Ein Benutzer für die KDE 4 Entwicklung ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
Some people like to have a separate user account for KDE 4 (for instance an old bug deleted files by mistake), and the instructions below were written with that approach.&lt;br /&gt;
&lt;br /&gt;
However it is much more efficient to do everything with a single user account, see [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]&lt;br /&gt;
for more details. &lt;br /&gt;
&lt;br /&gt;
You can still follow the instructions below, but don't put the environment variables in your &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt;, put them in a separate file that you source to switch to the KDE 4 environment.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Kommandozeile ===&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
useradd -m kde-devel&lt;br /&gt;
passwd kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Über KControl ===&lt;br /&gt;
&lt;br /&gt;
Instead of using the commands above, you can also use the User module in the KDE Control Center if you already have KDE3 installed.&lt;br /&gt;
&lt;br /&gt;
=== Einrichten der Entwicklungsumgebung ===&lt;br /&gt;
&lt;br /&gt;
Copy the {{path|~/.bashrc}} from your normal user account to the new kde-devel account. Next, copy and paste the contents of the [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|example .bashrc]] into {{path|~kde-devel/.bashrc}}. Be sure to comment out the line &amp;lt;tt&amp;gt;alias make=makeobj&amp;lt;/tt&amp;gt; if you do not have the &amp;lt;tt&amp;gt;[[Getting Started/Build/KDE4#Required Software|makeobj]]&amp;lt;/tt&amp;gt; command available. To make it run, you have to open a new bash or to execute &lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will provide access to commands such as &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; that are used in this tutorial as well as ensure that the proper paths are in place for Qt, KDE and CMake binaries.&lt;br /&gt;
&lt;br /&gt;
For more information, please read the [[Getting Started/Increased Productivity in KDE4 with Scripts]] tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Zum neuen Benutzer wechseln ===&lt;br /&gt;
Switch to the user kde-devel: (don't forget the dash)&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
su - kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this tutorial assumes you are running as the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user.&lt;br /&gt;
&lt;br /&gt;
== Die Shell des Entwicklungsbenutzers ==&lt;br /&gt;
&lt;br /&gt;
On some systems a new user is configured by default to use {{path|/bin/sh}}. If this is not the case on your system, you can skip this section. Using {{path|/bin/sh}} can be very inconvenient to work with and you may want to change it to {{path|/bin/bash}} or another shell.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Als kde-devel-Benutzer ===&lt;br /&gt;
&lt;br /&gt;
If you don't have root privileges and your system supports the changing of your own shell with the &amp;lt;tt&amp;gt;chsh&amp;lt;/tt&amp;gt; application, then you could try to change your shell to {{path|/bin/bash}} by using:&lt;br /&gt;
&amp;lt;code bash&amp;gt;&lt;br /&gt;
chsh -s /bin/bash kde-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Als root-Benutzer ===&lt;br /&gt;
&lt;br /&gt;
If your system comes with the &amp;lt;tt&amp;gt;usermod&amp;lt;/tt&amp;gt; application you can run the following command as root: &amp;lt;tt&amp;gt;usermod -s /bin/bash&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another option is to use the &amp;lt;tt&amp;gt;vipw&amp;lt;/tt&amp;gt; application as root to safely edit your {{path|/etc/passwd}}. Locate 'kde-devel' in the the file. Change '{{path|/bin/sh}}' at the end of the line to read '{{path|/bin/bash}}', save your changes and exit.&lt;br /&gt;
&lt;br /&gt;
The new shell will be started automatically when you log in as the kde-devel user again.&lt;br /&gt;
&lt;br /&gt;
== D-Bus ==&lt;br /&gt;
QtDBus and KDE are known to work with D-Bus versions 0.62, as well as 0.92 and upwards. Versions 0.60 and 0.61 may work too but are not tested. Versions 0.90 and 0.91 are known not to work. We recommend using post-1.0 release versions (at least 0.94), so consider upgrading if you haven't done so.&lt;br /&gt;
&lt;br /&gt;
You may skip this section if you have a recent D-Bus version or if you don't want to upgrade.&lt;br /&gt;
&lt;br /&gt;
Before running these steps in the recipe, make sure your X11 headers and libraries are available. The configure script run on line 5 should output:&lt;br /&gt;
 Building X11 code:        yes&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
{{tip|Make sure you did set up your environment correctly as described [[Getting_Started/Build/KDE4#Setting_up_the_environment|above]]. This is necessary for the &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; functions to work.}}&lt;br /&gt;
&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click here to learn more]] &lt;br /&gt;
 wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz&lt;br /&gt;
 tar -xvzf dbus-1.0.2.tar.gz&lt;br /&gt;
 cd dbus-1.0.2/&lt;br /&gt;
 ./configure --prefix=$DBUSDIR --localstatedir=$KDEDIR/var&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 dbus-uuidgen --ensure&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert === &lt;br /&gt;
After changing into the source directory (line 1), D-Bus source code is downloaded from freedesktop.org (line 2) and unpacked (line 3). After going into the newly created D-Bus directory (line 4), the build is set up using the supplied {{path|configure}} script (line 5). After building (line 6) and installing (line 7) D-Bus, we use the &amp;lt;tt&amp;gt;dbus-uuidgen&amp;lt;/tt&amp;gt; tool to install a machine identification file that allows the bus to start automatically when the desktop session starts (line 8).&lt;br /&gt;
&lt;br /&gt;
Note that you need write access to {{path|/var}} for the last two steps. If your system does not have the sudo command, you can use the &amp;lt;tt&amp;gt;su&amp;lt;/tt&amp;gt; command instead, e.g. &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
&lt;br /&gt;
If you get the error '''makeobj: command not found''' you are lacking the command &amp;lt;tt&amp;gt;[[Getting_Started/Build/KDE4#Required_Software|makeobj]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
Skip this if you have [http://cmake.org/ CMake] &amp;gt;=2.4.5 installed. &lt;br /&gt;
You should be able to directly use the binary packages available on the [http://www.cmake.org/HTML/Download.html CMake site]. There are also distribution specific packages available.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click Here to learn more]] &lt;br /&gt;
 wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz&lt;br /&gt;
 tar zxf cmake-2.4.6.tar.gz&lt;br /&gt;
 mkdir cmake-build&lt;br /&gt;
 cd cmake-build &lt;br /&gt;
 ../cmake-2.4.6/bootstrap&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
First, we go back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's source directory (line 1), get the CMake sources (line 2) and unpack them (line 3). We create a directory to build CMake in (line 4) and go into it (line 5). We then run the CMake bootstrap script to set up the CMake build (line 6), then make (line 7) and install it (line 8) using the root user.&lt;br /&gt;
&lt;br /&gt;
If your system does not have the &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt; command, you can instead do &amp;lt;tt&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Qt ==&lt;br /&gt;
Next we need to get the Qt4 that is in KDE's source repository. KDE is guaranteed to build against any Qt 4.3. Qt 4.2 and earlier are not supported and will not work. Qt 4.3 has been released only recently, so your distribution probably doesn't have packages for it yet (known exceptions: Kubuntu, openSUSE). You should use the copy in the KDE Subversion servers.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
 cd&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy&lt;br /&gt;
 cd qt-copy&lt;br /&gt;
 ./apply_patches&lt;br /&gt;
 ./configure -qt-gif -no-exceptions -debug -fast \&lt;br /&gt;
  -prefix $QTDIR -qdbus -pch -nomake examples \&lt;br /&gt;
  -nomake demos&lt;br /&gt;
 make -j2&lt;br /&gt;
 # make install: only if QTDIR is not the current directory!&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We switch back to the &amp;lt;tt&amp;gt;kde-devel&amp;lt;/tt&amp;gt; user's home directory (line 1) and download the source code using subversion (svn) from KDE's repository (line 2). After changing into the resulting {{path|qt-copy}} directory (line 3), we run a script that manages the patches that come with &amp;lt;tt&amp;gt;qt-copy&amp;lt;/tt&amp;gt; (line 4). &lt;br /&gt;
&lt;br /&gt;
Once the patches have been applied, we then set up the build using the &amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt; script (line 5-7). The various command line options used are explained in the {{path|qt-copy/README.qt-copy}} file. Finally, we build the minimal requirements for KDE (line 8) and install (line 9-10) Qt. If you want all the example and demo applications, you can either build them individually or simply do a &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; from the {{path|qt-copy}} directory. &lt;br /&gt;
&lt;br /&gt;
Note that the installation does not require root as it installs Qt locally into {{path|$QTDIR}}. Anyway, installation is only needed if {{path|$QTDIR}} differs from {{path|$HOME/qt-copy}}, which is not the case if you have exactly followed the instructions.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you get &amp;quot;error: X11/Xlib.h: No such file or directory&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;xorg&amp;lt;/tt&amp;gt; (the actual name may vary between operating systems, for example it is &amp;lt;tt&amp;gt;xorg-dev&amp;lt;/tt&amp;gt; on Ubuntu based systems such as Kubuntu). &lt;br /&gt;
&lt;br /&gt;
If you get an error in the configure step about missing defines, check the value of &amp;lt;tt&amp;gt;$QMAKESPEC&amp;lt;/tt&amp;gt;.  Some distributions set this to point directly to the system-installed Qt.  If &amp;lt;tt&amp;gt;unset QMAKESPEC&amp;lt;/tt&amp;gt; solves the problem, you probably want to add it to the &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt; script.&lt;br /&gt;
&lt;br /&gt;
If you get an error &amp;quot;.pch/debug-shared/QtCore&amp;quot;, this is because Qt-4.3 enables precompiled headers if your gcc supports it, but for some reason it doesn't work for you. If you use distcc, configure qt with -no-pch. If you use icecream, update to the latest icecream from svn trunk.&lt;br /&gt;
&lt;br /&gt;
Try running any Qt program, like {{program|assistant}}. If it crashes in QSpanData::adjustSpanMethods, then your problem is the oxygen style. Try removing {{path|lib/kde4/plugins/styles/kstyle-oxygen.so}} and {{path|lib/kde4/plugins/styles/oxygen.so}} if they exist in the KDE install prefix.&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
{{warning|If you have jumped to this section without reading [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]], '''the recipes provided will not work'''. &lt;br /&gt;
&lt;br /&gt;
The recipes are not in error; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; are not typos. Your environment '''needs''' to be set up correctly for these instructions to work for you.}}&lt;br /&gt;
&lt;br /&gt;
The code for getting file metadata now relies on Strigi. To install Strigi you need the libraries and headers for libz, libbz2, openssl (libcrypto or libssl), libclucene (=0.9.16; version 0.9.17 does '''not''' work), and either libxml2 or libexpat.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi&lt;br /&gt;
 cd strigi&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1). We download the sources for Strigi using subversion (line 2), go into the new {{path|~/src/strigi}} directory (line 3), and commence the build (line 4). This will leave us in the strigi build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbehebung ===&lt;br /&gt;
If you get &lt;br /&gt;
 CMake Error: This project requires some variables to be set,&lt;br /&gt;
 and cmake can not find them.&lt;br /&gt;
 Please set the following variables:&lt;br /&gt;
 LIBXML2_INCLUDE_DIR (ADVANCED)&lt;br /&gt;
you should install the development package for libxml2.&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
{{warning|If you have jumped to this section without reading [[Getting_Started/Build/KDE4#Setting_up_the_environment|Setting Up The Environment]], '''the recipes provided will not work'''. &lt;br /&gt;
&lt;br /&gt;
The recipes are not in error; &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cb&amp;lt;/tt&amp;gt; are not typos. Your environment '''needs''' to be set up correctly for these instructions to work for you.}}&lt;br /&gt;
&lt;br /&gt;
The code for getting file kmetadata relies on Soprano. To install Soprano you need the libraries and headers for librdf.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano&lt;br /&gt;
 cd soprano&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1). We download the sources for Soprano using subversion (line 2), go into the new {{path|~/src/soprano}} directory (line 3), and commence the build (line 4). This will leave us in the soprano build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
=&lt;br /&gt;
If you get &lt;br /&gt;
 CMake Error: Could NOT find REDLAND&lt;br /&gt;
then you need librdf from the Redland.&lt;br /&gt;
If your distribution does not provide the librdf package, you can download the source there: [http://download.librdf.org/source/ http://download.librdf.org/source/] and build it. On Gentoo the package is called 'redland', instead of librdf.&lt;br /&gt;
&lt;br /&gt;
== kdelibs ==&lt;br /&gt;
&lt;br /&gt;
With Qt4 and Strigi built, we can now move on to building KDE's base libraries. If you use the aforementioned [[Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc|.bashrc]] this is where those new functions come in handy. &lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cd $KDE_SRC&lt;br /&gt;
 mkdir KDE &amp;amp;&amp;amp; cd KDE&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs&lt;br /&gt;
 cd kdelibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We change to the base source directory (line 1) then make and go into the KDE directory (line 2). We download the sources for kdelibs using subversion (line 3), go into the new {{path|~/src/KDE/kdelibs}} directory (line 4), and commence the build (line 5). This will leave us in the &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
{{tip|There might be missing dependencies on your system! They are easily overlooked in the output of &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt;.&lt;br /&gt;
You might want to do a &amp;lt;tt&amp;gt;cmake $KDE_SRC/KDE/MODULE_NAME&amp;lt;/tt&amp;gt; prior to compiling any kde modules (like kdelibs, kdepimlibs etc.)}}&lt;br /&gt;
&lt;br /&gt;
=== Additional KDE-specific CMake modules ===&lt;br /&gt;
There are additional CMake modules in {{path|kdelibs/cmake/modules/}} that are necessary for building KDE4 applications. These will be installed for you when  kdelibs itself is installed.&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you have problems compiling kdelibs, first make sure the software in the [[Getting_Started/Build/KDE4#Required_Software|Required Software]] section above is installed and works. Other possible hints include:&lt;br /&gt;
* If the &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; command fails stating that CMake requires an out of source build directory, remove {{path|~/src/KDE/kdelibs/CMakeCache.txt}}, and try again.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;tt&amp;gt;cmakekde&amp;lt;/tt&amp;gt; still gives the same error then try this &lt;br /&gt;
 cd&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \&lt;br /&gt;
 -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
 -DKDE4_BUILD_TESTS=ON \&lt;br /&gt;
 ~/src/KDE/kdelibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
* If you received an error stating &amp;quot;Please create a separate build directory and run 'cmake path_to_kdelibs [options]' there.&amp;quot;, then you need to change to your build directory before running cmakekde. (e.g &amp;lt;tt&amp;gt;cs KDE/kdelibs &amp;amp;&amp;amp; cb &amp;amp;&amp;amp; cmakekde&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* If Qt wasn't found or the wrong version of Qt was found, make sure that the qmake from the Qt you need is the first qmake in the path.&lt;br /&gt;
* If the problems persist, try the CMake make-option &amp;lt;tt&amp;gt;--keep-going&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Here you need the libungif library, otherwise you will get an error message like &amp;quot;&amp;lt;tt&amp;gt;Could NOT find GIF&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
* Qt-4.3 upgrade: if you get a link error in kjsembed talking about QScriptEngine, edit CMakeCache.txt in kdelibs and remove the lines that talk about QT_QTUITOOLS_LIBRARY, then type make again (that static library has a new dependency, and the cmake code that adds it needs to run).&lt;br /&gt;
* if you get &amp;lt;code&amp;gt;CMake Error: KDE Requires Qt to be built with SSL support&lt;br /&gt;
&amp;lt;/code&amp;gt;, install openssl-devel, and re-compile QT.&lt;br /&gt;
&lt;br /&gt;
== kdepimlibs ==&lt;br /&gt;
After &amp;lt;tt&amp;gt;kdelibs&amp;lt;/tt&amp;gt;, but before ''kdebase'', you need to build and install ''kdepimlibs''.&lt;br /&gt;
&lt;br /&gt;
=== Das Kochrezept ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs&lt;br /&gt;
 cd kdepimlibs&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Was hier passiert ===&lt;br /&gt;
We go into the KDE source directory (line 1), download the source code for kdepimlibs using subversion (line 2) and then go into the new {{path|~/src/KDE/kdepimlibs}} directory (line 3). We then commence the build (line 4). This will leave us in the &amp;lt;tt&amp;gt;kdepimlibs&amp;lt;/tt&amp;gt; build directory after the build is completed.&lt;br /&gt;
&lt;br /&gt;
== kdebase ==&lt;br /&gt;
You may need kdebase for some kioslaves.&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase&lt;br /&gt;
 cd kdebase&lt;br /&gt;
 cmakekde&lt;br /&gt;
&lt;br /&gt;
=== Fehlerbebung ===&lt;br /&gt;
&lt;br /&gt;
If you have troubles compiling kdebase:&lt;br /&gt;
* Make sure you have the &amp;lt;tt&amp;gt;libxss headers&amp;lt;/tt&amp;gt; installed. (Usually you got undefined references on xscreensaver objects if you haven't those headers)&lt;br /&gt;
* &amp;lt;tt&amp;gt;which meinproc&amp;lt;/tt&amp;gt; has to deliver {{path|/home/kde-devel/kde/bin/meinproc}}&lt;br /&gt;
* if cmakekde can not find the path of kdepimlibs, edit the file {{path|$KDE_BUILD/kdebase/CMakeCache.txt}} and manually set &amp;lt;tt&amp;gt;KDEPIMLIBS_INCLUDE_DIR:PATH=$KDE_BUILD/kdepimlibs&amp;lt;/tt&amp;gt;&lt;br /&gt;
* if you get an error saying &amp;quot;Please set the following variables: X11_XTest_LIB (ADVANCED)&amp;quot;, install the devel package of &amp;lt;tt&amp;gt;Xtst&amp;lt;/tt&amp;gt;. On some systems, this is packaged separately from &amp;lt;tt&amp;gt;xext&amp;lt;/tt&amp;gt; and called &amp;lt;tt&amp;gt;x11proto-xext-dev&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;libxtst-dev&amp;lt;/tt&amp;gt;. You may also need to remove the CMakeCache.txt file in the build dir after installing the package.&lt;br /&gt;
* the same for &amp;quot;X11_Xinerama_LIB (ADVANCED)&amp;quot; where you will need the devel package for &amp;lt;tt&amp;gt;xinerama&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* if you get the error &amp;quot;Please set the following variables: FONTCONFIG_INCLUDE_DIR, FONTCONFIG_LIBRARIES (ADVANCED)&amp;quot;, then you need to install  the libfontconfig headers&lt;br /&gt;
* if you get the error &amp;quot;CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: KMETADATA_LIBRARIES&amp;quot;, you need to install soprano from kdesupport and to rebuild kdelibs&lt;br /&gt;
* if you get the error &amp;quot;‘XserverRegion’ does not name a type&amp;quot; make sure you have libxcomposite headers installed (&amp;lt;tt&amp;gt;libxcomposite-dev&amp;lt;/tt&amp;gt; in ubuntu)&lt;br /&gt;
&lt;br /&gt;
== Lokale API-Dokumentation erstellen ==&lt;br /&gt;
Although the API documentation for KDE is available online at [http://api.kde.org api.kde.org], it is sometimes useful to have it on your own disk, for example when you want to use [[Getting_Started/Set_up_KDE_4_for_development#KDevelop|KDevelop]] for browsing the documentation or when you are not able to be online all the time.&lt;br /&gt;
&lt;br /&gt;
Be aware that generating the API documentation can take several hours and takes almost half a gigabyte of diskspace.&lt;br /&gt;
The generation is handled by a script in {{path|kdelibs/doc/api}}, you need &amp;lt;tt&amp;gt;doxygen&amp;lt;/tt&amp;gt; to be able to run it. &lt;br /&gt;
&lt;br /&gt;
To build the API documentation for kdelibs, type the following:&lt;br /&gt;
&amp;lt;!--'cs' and 'cb' are NOT typos!--&amp;gt;&lt;br /&gt;
 cs KDE/kdelibs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|cs is not a typo]]&lt;br /&gt;
 $KDE_SRC/KDE/kdelibs/doc/api/doxygen.sh \&lt;br /&gt;
 --doxdatadir=$KDE_SRC/KDE/kdelibs/doc/common .&lt;br /&gt;
&lt;br /&gt;
Repeat for other modules as desired.&lt;br /&gt;
&lt;br /&gt;
== Allgemeine Fehlerbehebung ==&lt;br /&gt;
&lt;br /&gt;
What can happen over time, after some &amp;lt;tt&amp;gt;svn up&amp;lt;/tt&amp;gt; commands, is that some of the tools used in the KDE build chain change their output format. For example, &amp;lt;tt&amp;gt;kcfg&amp;lt;/tt&amp;gt; files are read by &amp;lt;tt&amp;gt;kconfig_compiler&amp;lt;/tt&amp;gt; to produce configuration dialogs. CMake cannot detect those changes, and the compilation might fail. A workaround is to always force a re-generation of all such files:&lt;br /&gt;
 find $KDE_SRC/kde/kdebase -name &amp;quot;*.kcfg&amp;quot; | xargs touch&lt;br /&gt;
The same applies to &amp;lt;tt&amp;gt;ui&amp;lt;/tt&amp;gt; files as produced by Qt designer.&lt;br /&gt;
&lt;br /&gt;
== Das wars! ==&lt;br /&gt;
&lt;br /&gt;
Sie sind nun bereit, andere svn Module in derselben Weise wie kdebase zu kompilieren, KDE4 zu benutzen und zu testen, sowie Ihre eigenen Patches und Anwendungen zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Siehe auch die Anleitung [[Getting Started/Set up KDE 4 for development|Set up KDE 4 for development]] um Hilfe beim Starten von KDE4 Anwendungen sowie zur Nutzung von KDevelop zu erhalten.&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;br /&gt;
[[Category:KDE4]]&lt;/div&gt;</summary>
		<author><name>Liquidat</name></author>	</entry>

	</feed>