<?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=JRT&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=JRT&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Special:Contributions/JRT"/>
		<updated>2013-05-22T01:10:39Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-24T01:57:54Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Dependencies that BLFS missed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
===What to build===&lt;br /&gt;
&lt;br /&gt;
I will presume that you are at: '''Further KDE packages'''&lt;br /&gt;
&lt;br /&gt;
The first thing to note is that KDE is being broken up into individual packages.  At least part of it is.  BLFS from scratch hasn't quite kept up with that.  So, you will find that there are no monolithic packages for:&lt;br /&gt;
&lt;br /&gt;
:: Kdeaccessability&lt;br /&gt;
:: Kdeartwork&lt;br /&gt;
:: Kdeedu&lt;br /&gt;
:: Kdegames&lt;br /&gt;
:: Kdegraphics&lt;br /&gt;
:: Kdemultimedia&lt;br /&gt;
:: Kdeutils&lt;br /&gt;
&lt;br /&gt;
So, your are going to be installing individual packages based on what you want.&lt;br /&gt;
&lt;br /&gt;
====Dependencies that BLFS missed====&lt;br /&gt;
&lt;br /&gt;
=====XDG User Dirs=====&lt;br /&gt;
&lt;br /&gt;
=====PyXDG=====&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-24T01:32:22Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* What to build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
===What to build===&lt;br /&gt;
&lt;br /&gt;
I will presume that you are at: '''Further KDE packages'''&lt;br /&gt;
&lt;br /&gt;
The first thing to note is that KDE is being broken up into individual packages.  At least part of it is.  BLFS from scratch hasn't quite kept up with that.  So, you will find that there are no monolithic packages for:&lt;br /&gt;
&lt;br /&gt;
:: Kdeaccessability&lt;br /&gt;
:: Kdeartwork&lt;br /&gt;
:: Kdeedu&lt;br /&gt;
:: Kdegames&lt;br /&gt;
:: Kdegraphics&lt;br /&gt;
:: Kdemultimedia&lt;br /&gt;
:: Kdeutils&lt;br /&gt;
&lt;br /&gt;
So, your are going to be installing individual packages based on what you want.&lt;br /&gt;
&lt;br /&gt;
====Dependencies that BLFS missed====&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T02:50:19Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* What to build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
===What to build===&lt;br /&gt;
&lt;br /&gt;
I will presume that you are at: '''Further KDE packages'''&lt;br /&gt;
&lt;br /&gt;
The first thing to note is that KDE is being broken up into individual packages.  At least part of it is.  BLFS from scratch hasn't quite kept up with that.  So, you will find that there are no monolithic packages for:&lt;br /&gt;
&lt;br /&gt;
:: Kdeaccessability&lt;br /&gt;
:: Kdeartwork&lt;br /&gt;
:: Kdeedu&lt;br /&gt;
:: Kdegames&lt;br /&gt;
:: Kdegraphics&lt;br /&gt;
:: Kdemultimedia&lt;br /&gt;
:: Kdeutils&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T01:29:43Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* What to build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
===What to build===&lt;br /&gt;
&lt;br /&gt;
I will presume that you are at: '''Further KDE packages'''&lt;br /&gt;
&lt;br /&gt;
The first thing to note is that KDE is being broken up into individual packages.  At least part of it is.  BLFS from scratch hasn't quite kept up with that.  So, you will find that there are no monolithic packages for:&lt;br /&gt;
&lt;br /&gt;
:: Kdeedu&lt;br /&gt;
:: Kdegames&lt;br /&gt;
:: Kdegraphics&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions</id>
		<title>Getting Started/Build/Distributions</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions"/>
				<updated>2013-04-23T01:28:13Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: Reverted edits by JRT (talk) to last revision by AnneW&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|This page is yet to be reviewed for changes required by the migration to Git.  Information and commands on this page may no longer be valid and should be used with care. Please see the [[Development/Git|KDE Git hub page]] for more details. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page provides details about building and/or installing KDE Software on specific Linux and BSD distributions.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
* [[/Arch Linux|Arch Linux]]&lt;br /&gt;
* [[/Ark Linux|Ark Linux]]&lt;br /&gt;
* [[/Chakra|Chakra]]&lt;br /&gt;
* [[/Debian|Debian and Kubuntu]]&lt;br /&gt;
* [[/Fedora|Fedora]]&lt;br /&gt;
* [[/Gentoo|Gentoo]]&lt;br /&gt;
* [[/Linux From Scratch|Linux From Scratch (LFS)]]&lt;br /&gt;
* [[/Mandriva|Mandriva]]&lt;br /&gt;
* [[/openSUSE|openSUSE]]&lt;br /&gt;
* [[Getting_Started/Using Project Neon to contribute to KDE|Project Neon on Kubuntu]]&lt;br /&gt;
* [[Getting_Started/EasyStartDevelopmentOnDebian|Debian]]&lt;br /&gt;
&lt;br /&gt;
== BSD ==&lt;br /&gt;
&lt;br /&gt;
* [[/FreeBSD|FreeBSD]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T01:21:33Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* What to build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
===What to build===&lt;br /&gt;
&lt;br /&gt;
I will presume that you are at: '''Further KDE packages'''&lt;br /&gt;
&lt;br /&gt;
The first thing to note is that KDE is being broken up into individual packages.  At least part of it is.  BLFS from scratch hasn't quite kept up with that.  So, you will find that there are no monolithic packages for:&lt;br /&gt;
&lt;br /&gt;
::Kdeedu&lt;br /&gt;
:: Kdegames&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T00:13:31Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KDE-4.10.x */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
===What to build===&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T00:12:54Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Library Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T00:08:39Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* CMake */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==KDE-4.10.x==&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries (including some KDEGraphics libraries) and a dependency for Gwenview.  Threfore, if you install KDEGraphics as a single package, there is a circular dependency.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-23T00:07:42Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page was a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries (including some KDEGraphics libraries) and a dependency for Gwenview.  Threfore, if you install KDEGraphics as a single package, there is a circular dependency.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build</id>
		<title>Getting Started/Build</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build"/>
				<updated>2013-04-16T18:51:36Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Platform Specific Information */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|These pages are currently being completely re-written to reflect the new KDE infrastructure and may not be in a consistent state.  Information and commands on some page may no longer be valid and should be used with care.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page provides an overview of the KDE build process.  Once you complete the steps described here you will have a complete KDE development system customized to your needs.&lt;br /&gt;
&lt;br /&gt;
== Build Steps ==&lt;br /&gt;
&lt;br /&gt;
This section will briefly explain the concepts and steps involved in building software so you are not being asked to blindly follow some recipes you do not understand.&lt;br /&gt;
&lt;br /&gt;
It is assumed you are at least familiar with the basics of using the command line.&lt;br /&gt;
&lt;br /&gt;
Once you have read the summary you can see a [[Getting_Started/Build/KDE4/on_virtual_machines|working example on a virtual machine here]].&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
The ''Source'' step is obtaining a local copy of the source code that you want to build.  For a detailed explanation of where to obtain the source code and how KDE stores and organizes our source code please read the [[Getting_Started/Sources|KDE Sources section]].&lt;br /&gt;
&lt;br /&gt;
The two main options here are to either download a snapshot tarball of the code, or to directly access the source code repository.  For developing on the unstable branch of the KDE SC it is recommended you directly access the required repositories.&lt;br /&gt;
&lt;br /&gt;
=== Configure ===&lt;br /&gt;
&lt;br /&gt;
The ''Configure'' step is setting up how the source code is to be built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&lt;br /&gt;
The ''Build'' step is compiling the source code and linking it to other libraries to create the new executables and libraries.&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
The ''Install'' step is copy the new executables and libraries somewhere that they can be found and run from.&lt;br /&gt;
&lt;br /&gt;
=== Update ===&lt;br /&gt;
&lt;br /&gt;
The ''Update'' step is updating an existing build to use the latest version of the source code and then re-building and re-installing it.&lt;br /&gt;
&lt;br /&gt;
== Scripted Builds ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to build the KDE SC from scratch is to use one of the build scripts that are available.  This approach is highly recommended for those new to building KDE SC as it takes care of the Source, Configure, Build, Install and Update steps for you.  The builds remain compatible with the manual methods of building KDE SC so you can change later if you want.&lt;br /&gt;
&lt;br /&gt;
Even KDE Core Developers use build scripts like these as opposed to doing everything manually, as there's just no point otherwise.&lt;br /&gt;
&lt;br /&gt;
If you run into any issues, be sure to ask either on the kde-devel mailing list, or the #kde-devel IRC channel (which many developers reside in and are willing to ask any questions or address any problems encountered).&lt;br /&gt;
&lt;br /&gt;
=== kdesrc-build ===&lt;br /&gt;
[[/kdesrc-build|kdesrc-build]] (formerly kdesvn-build) is a tool to allow users and developers to easily download and build the latest versions of the KDE Software Compilation (KDE SC) from the KDE source code repositories. &lt;br /&gt;
&lt;br /&gt;
=== build-tool ===&lt;br /&gt;
The [http://michael-jansen.biz/build-tool build-tool] is a ruby program script which is meant not for just building KDE, but also can easily be expanded to compile any other applications. It also has some neat features like progress bars and eta for compile time. It can also automatically generate a ~/.xsessionrc which can be used by KDM when you select to boot into a &amp;quot;Custom&amp;quot; session type. That will enable you to easily get into a KDE session which was built from source, without even having to modify any of your scripts like ~/.bashrc, ~/.zshrc, etc.&lt;br /&gt;
&lt;br /&gt;
Install rubygems through your package manager. Run &amp;lt;tt&amp;gt;sudo gem install build-tool&amp;lt;/tt&amp;gt;. Now that build-tool is installed, we need to install the KDE recipes to have it build KDE from source. Run &amp;lt;tt&amp;gt;build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git kde&amp;lt;/tt&amp;gt; to add the KDE recipe to the program. Then &amp;lt;tt&amp;gt;build-tool recipes install kde&amp;lt;/tt&amp;gt;. From there, you can run &amp;lt;tt&amp;gt;kde-build help&amp;lt;/tt&amp;gt; to see the commands available for the KDE recipe, as well as compile and update the git repositories. &lt;br /&gt;
&lt;br /&gt;
For more detailed information, visit: http://michael-jansen.biz/build-tool&lt;br /&gt;
&lt;br /&gt;
==Following Instructions in the ''Beyond Linux from Scratch'' Book==&lt;br /&gt;
&lt;br /&gt;
Detailed and specific instruction for building a basic KDE installation can be found in the ''Beyond Linux from Scratch'' book which is available to read on line at: [http://www.linuxfromscratch.org/blfs/view/svn/kde/kdeintro.html Introduction to KDE]&lt;br /&gt;
&lt;br /&gt;
== Platform Specific Information ==&lt;br /&gt;
&lt;br /&gt;
The build process described in these pages is kept as simple and generic as possible, but it is generally assumed you are building KDE4 on Linux.  Extra information about building KDE Software on specific distributions or platforms, or under certain conditions can be found at the following links:&lt;br /&gt;
&lt;br /&gt;
* [[/Distributions|Linux, BSD and other *nix based distributions]]&lt;br /&gt;
* [[/Windows|Microsoft Windows]]&lt;br /&gt;
* [[/Mac_OS_X|Apple Mac OS X]]&lt;br /&gt;
* [[/KDE4/on_virtual_machines|On a Virtual Machine]].&lt;br /&gt;
* [[/Historic|Building historic versions of KDE Software (KDE3 and KDE2)]]&lt;br /&gt;
&lt;br /&gt;
== Stable versus Unstable ==&lt;br /&gt;
&lt;br /&gt;
A stable build is a released and supported version of KDE Software, such as KDE SC 4.6.  This software is guaranteed to remain unchanged other than bug-fixes.  You will want a Stable build if you want to use the KDE Software for normal use or to develop bug fixes.&lt;br /&gt;
&lt;br /&gt;
An unstable build is the latest development version of KDE Software and is not guaranteed to build or run properly at any given time.  You will want an Unstable build if you want to develop new features for KDE Software.&lt;br /&gt;
&lt;br /&gt;
In Git, the Unstable branch is called Master while in Subversion it is called Trunk.&lt;br /&gt;
&lt;br /&gt;
== Build and Install ==&lt;br /&gt;
&lt;br /&gt;
You need to complete each of the following steps to build and/or install a working KDE development system. Manually building KDE Software requires that you first set up the build environment and install the required development tools and libraries.&lt;br /&gt;
&lt;br /&gt;
* Choose the appropriate [[/Methods|Build Method]] for your requirements&lt;br /&gt;
* Set up your [[/Environment|Build Environment]]&lt;br /&gt;
* Choose the appropriate [[/Recipes|Build Recipes]] for your requirements and environment&lt;br /&gt;
* Install the [[/Requirements|Build Requirements]]&lt;br /&gt;
* Install or build [[/Qt|Qt]]&lt;br /&gt;
* Install or build [[/KDE_Support|KDE Support]]&lt;br /&gt;
* Install or build [[/KDE_Development_Platform|KDE Development Platform]]&lt;br /&gt;
* Install or build [[/KDE_Workspace|KDE Workspace]]&lt;br /&gt;
* [[/KDE_Applications|Build KDE Applications]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting The Build ==&lt;br /&gt;
&lt;br /&gt;
Compile and Linking errors are frequent sources of discouragement. Make careful note of the first occurrence of an error in your build process. It could be as simple as a bad environment variable, an unexpected version of a library or missing prerequisite.  Please read the instructions carefully.&lt;br /&gt;
&lt;br /&gt;
Please review your logs and do searches for fixes. If you cannot find a solution, try the [[/Troubleshooting|Troubleshooting]] page.  If you still cannot resolve the problem then please [[Development/Getting_Help|ask for help]] on IRC or a Mailing List.&lt;br /&gt;
&lt;br /&gt;
== Starting KDE ==&lt;br /&gt;
&lt;br /&gt;
Having built and installed KDE, you will probably want to start it. Launching a full session requires some preparations, depending on whether you want to run the self-compiled KDE within another desktop environment or as a full-blow session:&lt;br /&gt;
&lt;br /&gt;
* [[Getting_Started/Run/Nested_Session|How to Run a nested session of KDE]]&lt;br /&gt;
* [[Getting_Started/Run/Full_Session|How to Run a full session of KDE]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build</id>
		<title>Getting Started/Build</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build"/>
				<updated>2013-04-16T18:51:06Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Following Instructions in the Beyond Linux from Scratch Book */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|These pages are currently being completely re-written to reflect the new KDE infrastructure and may not be in a consistent state.  Information and commands on some page may no longer be valid and should be used with care.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page provides an overview of the KDE build process.  Once you complete the steps described here you will have a complete KDE development system customized to your needs.&lt;br /&gt;
&lt;br /&gt;
== Build Steps ==&lt;br /&gt;
&lt;br /&gt;
This section will briefly explain the concepts and steps involved in building software so you are not being asked to blindly follow some recipes you do not understand.&lt;br /&gt;
&lt;br /&gt;
It is assumed you are at least familiar with the basics of using the command line.&lt;br /&gt;
&lt;br /&gt;
Once you have read the summary you can see a [[Getting_Started/Build/KDE4/on_virtual_machines|working example on a virtual machine here]].&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
The ''Source'' step is obtaining a local copy of the source code that you want to build.  For a detailed explanation of where to obtain the source code and how KDE stores and organizes our source code please read the [[Getting_Started/Sources|KDE Sources section]].&lt;br /&gt;
&lt;br /&gt;
The two main options here are to either download a snapshot tarball of the code, or to directly access the source code repository.  For developing on the unstable branch of the KDE SC it is recommended you directly access the required repositories.&lt;br /&gt;
&lt;br /&gt;
=== Configure ===&lt;br /&gt;
&lt;br /&gt;
The ''Configure'' step is setting up how the source code is to be built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&lt;br /&gt;
The ''Build'' step is compiling the source code and linking it to other libraries to create the new executables and libraries.&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
The ''Install'' step is copy the new executables and libraries somewhere that they can be found and run from.&lt;br /&gt;
&lt;br /&gt;
=== Update ===&lt;br /&gt;
&lt;br /&gt;
The ''Update'' step is updating an existing build to use the latest version of the source code and then re-building and re-installing it.&lt;br /&gt;
&lt;br /&gt;
== Scripted Builds ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to build the KDE SC from scratch is to use one of the build scripts that are available.  This approach is highly recommended for those new to building KDE SC as it takes care of the Source, Configure, Build, Install and Update steps for you.  The builds remain compatible with the manual methods of building KDE SC so you can change later if you want.&lt;br /&gt;
&lt;br /&gt;
Even KDE Core Developers use build scripts like these as opposed to doing everything manually, as there's just no point otherwise.&lt;br /&gt;
&lt;br /&gt;
If you run into any issues, be sure to ask either on the kde-devel mailing list, or the #kde-devel IRC channel (which many developers reside in and are willing to ask any questions or address any problems encountered).&lt;br /&gt;
&lt;br /&gt;
=== kdesrc-build ===&lt;br /&gt;
[[/kdesrc-build|kdesrc-build]] (formerly kdesvn-build) is a tool to allow users and developers to easily download and build the latest versions of the KDE Software Compilation (KDE SC) from the KDE source code repositories. &lt;br /&gt;
&lt;br /&gt;
=== build-tool ===&lt;br /&gt;
The [http://michael-jansen.biz/build-tool build-tool] is a ruby program script which is meant not for just building KDE, but also can easily be expanded to compile any other applications. It also has some neat features like progress bars and eta for compile time. It can also automatically generate a ~/.xsessionrc which can be used by KDM when you select to boot into a &amp;quot;Custom&amp;quot; session type. That will enable you to easily get into a KDE session which was built from source, without even having to modify any of your scripts like ~/.bashrc, ~/.zshrc, etc.&lt;br /&gt;
&lt;br /&gt;
Install rubygems through your package manager. Run &amp;lt;tt&amp;gt;sudo gem install build-tool&amp;lt;/tt&amp;gt;. Now that build-tool is installed, we need to install the KDE recipes to have it build KDE from source. Run &amp;lt;tt&amp;gt;build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git kde&amp;lt;/tt&amp;gt; to add the KDE recipe to the program. Then &amp;lt;tt&amp;gt;build-tool recipes install kde&amp;lt;/tt&amp;gt;. From there, you can run &amp;lt;tt&amp;gt;kde-build help&amp;lt;/tt&amp;gt; to see the commands available for the KDE recipe, as well as compile and update the git repositories. &lt;br /&gt;
&lt;br /&gt;
For more detailed information, visit: http://michael-jansen.biz/build-tool&lt;br /&gt;
&lt;br /&gt;
== Platform Specific Information ==&lt;br /&gt;
&lt;br /&gt;
The build process described in these pages is kept as simple and generic as possible, but it is generally assumed you are building KDE4 on Linux.  Extra information about building KDE Software on specific distributions or platforms, or under certain conditions can be found at the following links:&lt;br /&gt;
&lt;br /&gt;
* [[/Distributions|Linux, BSD and other *nix based distributions]]&lt;br /&gt;
* [[/Windows|Microsoft Windows]]&lt;br /&gt;
* [[/Mac_OS_X|Apple Mac OS X]]&lt;br /&gt;
* [[/KDE4/on_virtual_machines|On a Virtual Machine]].&lt;br /&gt;
* [[/Historic|Building historic versions of KDE Software (KDE3 and KDE2)]]&lt;br /&gt;
&lt;br /&gt;
== Stable versus Unstable ==&lt;br /&gt;
&lt;br /&gt;
A stable build is a released and supported version of KDE Software, such as KDE SC 4.6.  This software is guaranteed to remain unchanged other than bug-fixes.  You will want a Stable build if you want to use the KDE Software for normal use or to develop bug fixes.&lt;br /&gt;
&lt;br /&gt;
An unstable build is the latest development version of KDE Software and is not guaranteed to build or run properly at any given time.  You will want an Unstable build if you want to develop new features for KDE Software.&lt;br /&gt;
&lt;br /&gt;
In Git, the Unstable branch is called Master while in Subversion it is called Trunk.&lt;br /&gt;
&lt;br /&gt;
== Build and Install ==&lt;br /&gt;
&lt;br /&gt;
You need to complete each of the following steps to build and/or install a working KDE development system. Manually building KDE Software requires that you first set up the build environment and install the required development tools and libraries.&lt;br /&gt;
&lt;br /&gt;
* Choose the appropriate [[/Methods|Build Method]] for your requirements&lt;br /&gt;
* Set up your [[/Environment|Build Environment]]&lt;br /&gt;
* Choose the appropriate [[/Recipes|Build Recipes]] for your requirements and environment&lt;br /&gt;
* Install the [[/Requirements|Build Requirements]]&lt;br /&gt;
* Install or build [[/Qt|Qt]]&lt;br /&gt;
* Install or build [[/KDE_Support|KDE Support]]&lt;br /&gt;
* Install or build [[/KDE_Development_Platform|KDE Development Platform]]&lt;br /&gt;
* Install or build [[/KDE_Workspace|KDE Workspace]]&lt;br /&gt;
* [[/KDE_Applications|Build KDE Applications]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting The Build ==&lt;br /&gt;
&lt;br /&gt;
Compile and Linking errors are frequent sources of discouragement. Make careful note of the first occurrence of an error in your build process. It could be as simple as a bad environment variable, an unexpected version of a library or missing prerequisite.  Please read the instructions carefully.&lt;br /&gt;
&lt;br /&gt;
Please review your logs and do searches for fixes. If you cannot find a solution, try the [[/Troubleshooting|Troubleshooting]] page.  If you still cannot resolve the problem then please [[Development/Getting_Help|ask for help]] on IRC or a Mailing List.&lt;br /&gt;
&lt;br /&gt;
== Starting KDE ==&lt;br /&gt;
&lt;br /&gt;
Having built and installed KDE, you will probably want to start it. Launching a full session requires some preparations, depending on whether you want to run the self-compiled KDE within another desktop environment or as a full-blow session:&lt;br /&gt;
&lt;br /&gt;
* [[Getting_Started/Run/Nested_Session|How to Run a nested session of KDE]]&lt;br /&gt;
* [[Getting_Started/Run/Full_Session|How to Run a full session of KDE]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Thread:User_talk:JRT/Linux_from_Scratch/reply_(3)</id>
		<title>Thread:User talk:JRT/Linux from Scratch/reply (3)</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Thread:User_talk:JRT/Linux_from_Scratch/reply_(3)"/>
				<updated>2013-04-16T18:46:05Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: Reply to Linux from Scratch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It is OK to delete the obsolete material.  I think that it is all covered in the BLFS book for version 4.10.x.  There are some more obscure dependencies that are not covered which I could add some notes on those that I have knowledge on from personal experience.&lt;br /&gt;
&lt;br /&gt;
Putting the recommendation on the BLFS book there to replace it would be redundant because people installing 'Linux from Scratch' would have already been to the website and already be familiar with the book.&lt;br /&gt;
&lt;br /&gt;
There are also people that are not using the LFS distro that just want to build KDE from source (for various reasons).  What I want to do is to suggest to them is that a source of instructions on how to do this is to be found in the BLFS book.   That is, unless there is an equally detailed tutorial on how to build (the release version of) KDE from source on KDE Techbase.  My tutorial, which appears to have been deleted, was not nearly as detailed or as complete (but at the time it was written, the subject was not covered by BLFS).&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build</id>
		<title>Getting Started/Build</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build"/>
				<updated>2013-04-16T18:36:36Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Beyond Linux from Scratch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|These pages are currently being completely re-written to reflect the new KDE infrastructure and may not be in a consistent state.  Information and commands on some page may no longer be valid and should be used with care.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page provides an overview of the KDE build process.  Once you complete the steps described here you will have a complete KDE development system customized to your needs.&lt;br /&gt;
&lt;br /&gt;
== Build Steps ==&lt;br /&gt;
&lt;br /&gt;
This section will briefly explain the concepts and steps involved in building software so you are not being asked to blindly follow some recipes you do not understand.&lt;br /&gt;
&lt;br /&gt;
It is assumed you are at least familiar with the basics of using the command line.&lt;br /&gt;
&lt;br /&gt;
Once you have read the summary you can see a [[Getting_Started/Build/KDE4/on_virtual_machines|working example on a virtual machine here]].&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
The ''Source'' step is obtaining a local copy of the source code that you want to build.  For a detailed explanation of where to obtain the source code and how KDE stores and organizes our source code please read the [[Getting_Started/Sources|KDE Sources section]].&lt;br /&gt;
&lt;br /&gt;
The two main options here are to either download a snapshot tarball of the code, or to directly access the source code repository.  For developing on the unstable branch of the KDE SC it is recommended you directly access the required repositories.&lt;br /&gt;
&lt;br /&gt;
=== Configure ===&lt;br /&gt;
&lt;br /&gt;
The ''Configure'' step is setting up how the source code is to be built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&lt;br /&gt;
The ''Build'' step is compiling the source code and linking it to other libraries to create the new executables and libraries.&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
The ''Install'' step is copy the new executables and libraries somewhere that they can be found and run from.&lt;br /&gt;
&lt;br /&gt;
=== Update ===&lt;br /&gt;
&lt;br /&gt;
The ''Update'' step is updating an existing build to use the latest version of the source code and then re-building and re-installing it.&lt;br /&gt;
&lt;br /&gt;
== Scripted Builds ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to build the KDE SC from scratch is to use one of the build scripts that are available.  This approach is highly recommended for those new to building KDE SC as it takes care of the Source, Configure, Build, Install and Update steps for you.  The builds remain compatible with the manual methods of building KDE SC so you can change later if you want.&lt;br /&gt;
&lt;br /&gt;
Even KDE Core Developers use build scripts like these as opposed to doing everything manually, as there's just no point otherwise.&lt;br /&gt;
&lt;br /&gt;
If you run into any issues, be sure to ask either on the kde-devel mailing list, or the #kde-devel IRC channel (which many developers reside in and are willing to ask any questions or address any problems encountered).&lt;br /&gt;
&lt;br /&gt;
=== kdesrc-build ===&lt;br /&gt;
[[/kdesrc-build|kdesrc-build]] (formerly kdesvn-build) is a tool to allow users and developers to easily download and build the latest versions of the KDE Software Compilation (KDE SC) from the KDE source code repositories. &lt;br /&gt;
&lt;br /&gt;
=== build-tool ===&lt;br /&gt;
The [http://michael-jansen.biz/build-tool build-tool] is a ruby program script which is meant not for just building KDE, but also can easily be expanded to compile any other applications. It also has some neat features like progress bars and eta for compile time. It can also automatically generate a ~/.xsessionrc which can be used by KDM when you select to boot into a &amp;quot;Custom&amp;quot; session type. That will enable you to easily get into a KDE session which was built from source, without even having to modify any of your scripts like ~/.bashrc, ~/.zshrc, etc.&lt;br /&gt;
&lt;br /&gt;
Install rubygems through your package manager. Run &amp;lt;tt&amp;gt;sudo gem install build-tool&amp;lt;/tt&amp;gt;. Now that build-tool is installed, we need to install the KDE recipes to have it build KDE from source. Run &amp;lt;tt&amp;gt;build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git kde&amp;lt;/tt&amp;gt; to add the KDE recipe to the program. Then &amp;lt;tt&amp;gt;build-tool recipes install kde&amp;lt;/tt&amp;gt;. From there, you can run &amp;lt;tt&amp;gt;kde-build help&amp;lt;/tt&amp;gt; to see the commands available for the KDE recipe, as well as compile and update the git repositories. &lt;br /&gt;
&lt;br /&gt;
For more detailed information, visit: http://michael-jansen.biz/build-tool&lt;br /&gt;
&lt;br /&gt;
== Platform Specific Information ==&lt;br /&gt;
&lt;br /&gt;
The build process described in these pages is kept as simple and generic as possible, but it is generally assumed you are building KDE4 on Linux.  Extra information about building KDE Software on specific distributions or platforms, or under certain conditions can be found at the following links:&lt;br /&gt;
&lt;br /&gt;
* [[/Distributions|Linux, BSD and other *nix based distributions]]&lt;br /&gt;
* [[/Windows|Microsoft Windows]]&lt;br /&gt;
* [[/Mac_OS_X|Apple Mac OS X]]&lt;br /&gt;
* [[/KDE4/on_virtual_machines|On a Virtual Machine]].&lt;br /&gt;
* [[/Historic|Building historic versions of KDE Software (KDE3 and KDE2)]]&lt;br /&gt;
&lt;br /&gt;
== Stable versus Unstable ==&lt;br /&gt;
&lt;br /&gt;
A stable build is a released and supported version of KDE Software, such as KDE SC 4.6.  This software is guaranteed to remain unchanged other than bug-fixes.  You will want a Stable build if you want to use the KDE Software for normal use or to develop bug fixes.&lt;br /&gt;
&lt;br /&gt;
An unstable build is the latest development version of KDE Software and is not guaranteed to build or run properly at any given time.  You will want an Unstable build if you want to develop new features for KDE Software.&lt;br /&gt;
&lt;br /&gt;
In Git, the Unstable branch is called Master while in Subversion it is called Trunk.&lt;br /&gt;
&lt;br /&gt;
== Build and Install ==&lt;br /&gt;
&lt;br /&gt;
You need to complete each of the following steps to build and/or install a working KDE development system. Manually building KDE Software requires that you first set up the build environment and install the required development tools and libraries.&lt;br /&gt;
&lt;br /&gt;
* Choose the appropriate [[/Methods|Build Method]] for your requirements&lt;br /&gt;
* Set up your [[/Environment|Build Environment]]&lt;br /&gt;
* Choose the appropriate [[/Recipes|Build Recipes]] for your requirements and environment&lt;br /&gt;
* Install the [[/Requirements|Build Requirements]]&lt;br /&gt;
* Install or build [[/Qt|Qt]]&lt;br /&gt;
* Install or build [[/KDE_Support|KDE Support]]&lt;br /&gt;
* Install or build [[/KDE_Development_Platform|KDE Development Platform]]&lt;br /&gt;
* Install or build [[/KDE_Workspace|KDE Workspace]]&lt;br /&gt;
* [[/KDE_Applications|Build KDE Applications]]&lt;br /&gt;
&lt;br /&gt;
===Following Instructions in the ''Beyond Linux from Scratch'' Book===&lt;br /&gt;
&lt;br /&gt;
Detailed and specific instruction for building a basic KDE installation can be found in the ''Beyond Linux from Scratch'' book which is available to read on line at: [http://www.linuxfromscratch.org/blfs/view/svn/kde/kdeintro.html Introduction to KDE]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting The Build ==&lt;br /&gt;
&lt;br /&gt;
Compile and Linking errors are frequent sources of discouragement. Make careful note of the first occurrence of an error in your build process. It could be as simple as a bad environment variable, an unexpected version of a library or missing prerequisite.  Please read the instructions carefully.&lt;br /&gt;
&lt;br /&gt;
Please review your logs and do searches for fixes. If you cannot find a solution, try the [[/Troubleshooting|Troubleshooting]] page.  If you still cannot resolve the problem then please [[Development/Getting_Help|ask for help]] on IRC or a Mailing List.&lt;br /&gt;
&lt;br /&gt;
== Starting KDE ==&lt;br /&gt;
&lt;br /&gt;
Having built and installed KDE, you will probably want to start it. Launching a full session requires some preparations, depending on whether you want to run the self-compiled KDE within another desktop environment or as a full-blow session:&lt;br /&gt;
&lt;br /&gt;
* [[Getting_Started/Run/Nested_Session|How to Run a nested session of KDE]]&lt;br /&gt;
* [[Getting_Started/Run/Full_Session|How to Run a full session of KDE]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Thread:User_talk:JRT/Linux_from_Scratch/reply</id>
		<title>Thread:User talk:JRT/Linux from Scratch/reply</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Thread:User_talk:JRT/Linux_from_Scratch/reply"/>
				<updated>2013-04-15T11:58:42Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: Reply to Linux from Scratch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;No, I think that this current information is obsolete and most of it is redundant.&lt;br /&gt;
&lt;br /&gt;
IIUC, it is now your intent to add information about the dependencies needed for KDE which makes this further unnecessary for those that are just building from scratch.&lt;br /&gt;
&lt;br /&gt;
In general, I would recommend the BLFS book to anyone that is building from source, so I think that the link is now in the proper place.  That is unless you intend to duplicate that material in that much detail.  Have you read it?&lt;br /&gt;
&lt;br /&gt;
I can replace the obsolete notes for the old versions with some notes on building the more obscure dependencies and possibly other relevant information for building from source that isn't currently covered by the BLFS book.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build</id>
		<title>Getting Started/Build</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build"/>
				<updated>2013-04-15T08:54:53Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Beyond Linux from Scratch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|These pages are currently being completely re-written to reflect the new KDE infrastructure and may not be in a consistent state.  Information and commands on some page may no longer be valid and should be used with care.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page provides an overview of the KDE build process.  Once you complete the steps described here you will have a complete KDE development system customized to your needs.&lt;br /&gt;
&lt;br /&gt;
== Build Steps ==&lt;br /&gt;
&lt;br /&gt;
This section will briefly explain the concepts and steps involved in building software so you are not being asked to blindly follow some recipes you do not understand.&lt;br /&gt;
&lt;br /&gt;
It is assumed you are at least familiar with the basics of using the command line.&lt;br /&gt;
&lt;br /&gt;
Once you have read the summary you can see a [[Getting_Started/Build/KDE4/on_virtual_machines|working example on a virtual machine here]].&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
The ''Source'' step is obtaining a local copy of the source code that you want to build.  For a detailed explanation of where to obtain the source code and how KDE stores and organizes our source code please read the [[Getting_Started/Sources|KDE Sources section]].&lt;br /&gt;
&lt;br /&gt;
The two main options here are to either download a snapshot tarball of the code, or to directly access the source code repository.  For developing on the unstable branch of the KDE SC it is recommended you directly access the required repositories.&lt;br /&gt;
&lt;br /&gt;
=== Configure ===&lt;br /&gt;
&lt;br /&gt;
The ''Configure'' step is setting up how the source code is to be built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&lt;br /&gt;
The ''Build'' step is compiling the source code and linking it to other libraries to create the new executables and libraries.&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
The ''Install'' step is copy the new executables and libraries somewhere that they can be found and run from.&lt;br /&gt;
&lt;br /&gt;
=== Update ===&lt;br /&gt;
&lt;br /&gt;
The ''Update'' step is updating an existing build to use the latest version of the source code and then re-building and re-installing it.&lt;br /&gt;
&lt;br /&gt;
== Scripted Builds ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to build the KDE SC from scratch is to use one of the build scripts that are available.  This approach is highly recommended for those new to building KDE SC as it takes care of the Source, Configure, Build, Install and Update steps for you.  The builds remain compatible with the manual methods of building KDE SC so you can change later if you want.&lt;br /&gt;
&lt;br /&gt;
Even KDE Core Developers use build scripts like these as opposed to doing everything manually, as there's just no point otherwise.&lt;br /&gt;
&lt;br /&gt;
If you run into any issues, be sure to ask either on the kde-devel mailing list, or the #kde-devel IRC channel (which many developers reside in and are willing to ask any questions or address any problems encountered).&lt;br /&gt;
&lt;br /&gt;
=== kdesrc-build ===&lt;br /&gt;
[[/kdesrc-build|kdesrc-build]] (formerly kdesvn-build) is a tool to allow users and developers to easily download and build the latest versions of the KDE Software Compilation (KDE SC) from the KDE source code repositories. &lt;br /&gt;
&lt;br /&gt;
=== build-tool ===&lt;br /&gt;
The [http://michael-jansen.biz/build-tool build-tool] is a ruby program script which is meant not for just building KDE, but also can easily be expanded to compile any other applications. It also has some neat features like progress bars and eta for compile time. It can also automatically generate a ~/.xsessionrc which can be used by KDM when you select to boot into a &amp;quot;Custom&amp;quot; session type. That will enable you to easily get into a KDE session which was built from source, without even having to modify any of your scripts like ~/.bashrc, ~/.zshrc, etc.&lt;br /&gt;
&lt;br /&gt;
Install rubygems through your package manager. Run &amp;lt;tt&amp;gt;sudo gem install build-tool&amp;lt;/tt&amp;gt;. Now that build-tool is installed, we need to install the KDE recipes to have it build KDE from source. Run &amp;lt;tt&amp;gt;build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git kde&amp;lt;/tt&amp;gt; to add the KDE recipe to the program. Then &amp;lt;tt&amp;gt;build-tool recipes install kde&amp;lt;/tt&amp;gt;. From there, you can run &amp;lt;tt&amp;gt;kde-build help&amp;lt;/tt&amp;gt; to see the commands available for the KDE recipe, as well as compile and update the git repositories. &lt;br /&gt;
&lt;br /&gt;
For more detailed information, visit: http://michael-jansen.biz/build-tool&lt;br /&gt;
&lt;br /&gt;
== Platform Specific Information ==&lt;br /&gt;
&lt;br /&gt;
The build process described in these pages is kept as simple and generic as possible, but it is generally assumed you are building KDE4 on Linux.  Extra information about building KDE Software on specific distributions or platforms, or under certain conditions can be found at the following links:&lt;br /&gt;
&lt;br /&gt;
* [[/Distributions|Linux, BSD and other *nix based distributions]]&lt;br /&gt;
* [[/Windows|Microsoft Windows]]&lt;br /&gt;
* [[/Mac_OS_X|Apple Mac OS X]]&lt;br /&gt;
* [[/KDE4/on_virtual_machines|On a Virtual Machine]].&lt;br /&gt;
* [[/Historic|Building historic versions of KDE Software (KDE3 and KDE2)]]&lt;br /&gt;
&lt;br /&gt;
== Stable versus Unstable ==&lt;br /&gt;
&lt;br /&gt;
A stable build is a released and supported version of KDE Software, such as KDE SC 4.6.  This software is guaranteed to remain unchanged other than bug-fixes.  You will want a Stable build if you want to use the KDE Software for normal use or to develop bug fixes.&lt;br /&gt;
&lt;br /&gt;
An unstable build is the latest development version of KDE Software and is not guaranteed to build or run properly at any given time.  You will want an Unstable build if you want to develop new features for KDE Software.&lt;br /&gt;
&lt;br /&gt;
In Git, the Unstable branch is called Master while in Subversion it is called Trunk.&lt;br /&gt;
&lt;br /&gt;
== Build and Install ==&lt;br /&gt;
&lt;br /&gt;
You need to complete each of the following steps to build and/or install a working KDE development system. Manually building KDE Software requires that you first set up the build environment and install the required development tools and libraries.&lt;br /&gt;
&lt;br /&gt;
* Choose the appropriate [[/Methods|Build Method]] for your requirements&lt;br /&gt;
* Set up your [[/Environment|Build Environment]]&lt;br /&gt;
* Choose the appropriate [[/Recipes|Build Recipes]] for your requirements and environment&lt;br /&gt;
* Install the [[/Requirements|Build Requirements]]&lt;br /&gt;
* Install or build [[/Qt|Qt]]&lt;br /&gt;
* Install or build [[/KDE_Support|KDE Support]]&lt;br /&gt;
* Install or build [[/KDE_Development_Platform|KDE Development Platform]]&lt;br /&gt;
* Install or build [[/KDE_Workspace|KDE Workspace]]&lt;br /&gt;
* [[/KDE_Applications|Build KDE Applications]]&lt;br /&gt;
&lt;br /&gt;
===''Beyond Linux from Scratch''===&lt;br /&gt;
&lt;br /&gt;
Detailed and specific instruction for building a basic KDE installation can be found in the ''Beyond Linux from Scratch'' book which is available to read on line at: [http://www.linuxfromscratch.org/blfs/view/svn/kde/kdeintro.html Introduction to KDE]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting The Build ==&lt;br /&gt;
&lt;br /&gt;
Compile and Linking errors are frequent sources of discouragement. Make careful note of the first occurrence of an error in your build process. It could be as simple as a bad environment variable, an unexpected version of a library or missing prerequisite.  Please read the instructions carefully.&lt;br /&gt;
&lt;br /&gt;
Please review your logs and do searches for fixes. If you cannot find a solution, try the [[/Troubleshooting|Troubleshooting]] page.  If you still cannot resolve the problem then please [[Development/Getting_Help|ask for help]] on IRC or a Mailing List.&lt;br /&gt;
&lt;br /&gt;
== Starting KDE ==&lt;br /&gt;
&lt;br /&gt;
Having built and installed KDE, you will probably want to start it. Launching a full session requires some preparations, depending on whether you want to run the self-compiled KDE within another desktop environment or as a full-blow session:&lt;br /&gt;
&lt;br /&gt;
* [[Getting_Started/Run/Nested_Session|How to Run a nested session of KDE]]&lt;br /&gt;
* [[Getting_Started/Run/Full_Session|How to Run a full session of KDE]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build</id>
		<title>Getting Started/Build</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build"/>
				<updated>2013-04-15T08:47:08Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build and Install */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|These pages are currently being completely re-written to reflect the new KDE infrastructure and may not be in a consistent state.  Information and commands on some page may no longer be valid and should be used with care.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page provides an overview of the KDE build process.  Once you complete the steps described here you will have a complete KDE development system customized to your needs.&lt;br /&gt;
&lt;br /&gt;
== Build Steps ==&lt;br /&gt;
&lt;br /&gt;
This section will briefly explain the concepts and steps involved in building software so you are not being asked to blindly follow some recipes you do not understand.&lt;br /&gt;
&lt;br /&gt;
It is assumed you are at least familiar with the basics of using the command line.&lt;br /&gt;
&lt;br /&gt;
Once you have read the summary you can see a [[Getting_Started/Build/KDE4/on_virtual_machines|working example on a virtual machine here]].&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
The ''Source'' step is obtaining a local copy of the source code that you want to build.  For a detailed explanation of where to obtain the source code and how KDE stores and organizes our source code please read the [[Getting_Started/Sources|KDE Sources section]].&lt;br /&gt;
&lt;br /&gt;
The two main options here are to either download a snapshot tarball of the code, or to directly access the source code repository.  For developing on the unstable branch of the KDE SC it is recommended you directly access the required repositories.&lt;br /&gt;
&lt;br /&gt;
=== Configure ===&lt;br /&gt;
&lt;br /&gt;
The ''Configure'' step is setting up how the source code is to be built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&lt;br /&gt;
The ''Build'' step is compiling the source code and linking it to other libraries to create the new executables and libraries.&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
The ''Install'' step is copy the new executables and libraries somewhere that they can be found and run from.&lt;br /&gt;
&lt;br /&gt;
=== Update ===&lt;br /&gt;
&lt;br /&gt;
The ''Update'' step is updating an existing build to use the latest version of the source code and then re-building and re-installing it.&lt;br /&gt;
&lt;br /&gt;
== Scripted Builds ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to build the KDE SC from scratch is to use one of the build scripts that are available.  This approach is highly recommended for those new to building KDE SC as it takes care of the Source, Configure, Build, Install and Update steps for you.  The builds remain compatible with the manual methods of building KDE SC so you can change later if you want.&lt;br /&gt;
&lt;br /&gt;
Even KDE Core Developers use build scripts like these as opposed to doing everything manually, as there's just no point otherwise.&lt;br /&gt;
&lt;br /&gt;
If you run into any issues, be sure to ask either on the kde-devel mailing list, or the #kde-devel IRC channel (which many developers reside in and are willing to ask any questions or address any problems encountered).&lt;br /&gt;
&lt;br /&gt;
=== kdesrc-build ===&lt;br /&gt;
[[/kdesrc-build|kdesrc-build]] (formerly kdesvn-build) is a tool to allow users and developers to easily download and build the latest versions of the KDE Software Compilation (KDE SC) from the KDE source code repositories. &lt;br /&gt;
&lt;br /&gt;
=== build-tool ===&lt;br /&gt;
The [http://michael-jansen.biz/build-tool build-tool] is a ruby program script which is meant not for just building KDE, but also can easily be expanded to compile any other applications. It also has some neat features like progress bars and eta for compile time. It can also automatically generate a ~/.xsessionrc which can be used by KDM when you select to boot into a &amp;quot;Custom&amp;quot; session type. That will enable you to easily get into a KDE session which was built from source, without even having to modify any of your scripts like ~/.bashrc, ~/.zshrc, etc.&lt;br /&gt;
&lt;br /&gt;
Install rubygems through your package manager. Run &amp;lt;tt&amp;gt;sudo gem install build-tool&amp;lt;/tt&amp;gt;. Now that build-tool is installed, we need to install the KDE recipes to have it build KDE from source. Run &amp;lt;tt&amp;gt;build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git kde&amp;lt;/tt&amp;gt; to add the KDE recipe to the program. Then &amp;lt;tt&amp;gt;build-tool recipes install kde&amp;lt;/tt&amp;gt;. From there, you can run &amp;lt;tt&amp;gt;kde-build help&amp;lt;/tt&amp;gt; to see the commands available for the KDE recipe, as well as compile and update the git repositories. &lt;br /&gt;
&lt;br /&gt;
For more detailed information, visit: http://michael-jansen.biz/build-tool&lt;br /&gt;
&lt;br /&gt;
== Platform Specific Information ==&lt;br /&gt;
&lt;br /&gt;
The build process described in these pages is kept as simple and generic as possible, but it is generally assumed you are building KDE4 on Linux.  Extra information about building KDE Software on specific distributions or platforms, or under certain conditions can be found at the following links:&lt;br /&gt;
&lt;br /&gt;
* [[/Distributions|Linux, BSD and other *nix based distributions]]&lt;br /&gt;
* [[/Windows|Microsoft Windows]]&lt;br /&gt;
* [[/Mac_OS_X|Apple Mac OS X]]&lt;br /&gt;
* [[/KDE4/on_virtual_machines|On a Virtual Machine]].&lt;br /&gt;
* [[/Historic|Building historic versions of KDE Software (KDE3 and KDE2)]]&lt;br /&gt;
&lt;br /&gt;
== Stable versus Unstable ==&lt;br /&gt;
&lt;br /&gt;
A stable build is a released and supported version of KDE Software, such as KDE SC 4.6.  This software is guaranteed to remain unchanged other than bug-fixes.  You will want a Stable build if you want to use the KDE Software for normal use or to develop bug fixes.&lt;br /&gt;
&lt;br /&gt;
An unstable build is the latest development version of KDE Software and is not guaranteed to build or run properly at any given time.  You will want an Unstable build if you want to develop new features for KDE Software.&lt;br /&gt;
&lt;br /&gt;
In Git, the Unstable branch is called Master while in Subversion it is called Trunk.&lt;br /&gt;
&lt;br /&gt;
== Build and Install ==&lt;br /&gt;
&lt;br /&gt;
You need to complete each of the following steps to build and/or install a working KDE development system. Manually building KDE Software requires that you first set up the build environment and install the required development tools and libraries.&lt;br /&gt;
&lt;br /&gt;
* Choose the appropriate [[/Methods|Build Method]] for your requirements&lt;br /&gt;
* Set up your [[/Environment|Build Environment]]&lt;br /&gt;
* Choose the appropriate [[/Recipes|Build Recipes]] for your requirements and environment&lt;br /&gt;
* Install the [[/Requirements|Build Requirements]]&lt;br /&gt;
* Install or build [[/Qt|Qt]]&lt;br /&gt;
* Install or build [[/KDE_Support|KDE Support]]&lt;br /&gt;
* Install or build [[/KDE_Development_Platform|KDE Development Platform]]&lt;br /&gt;
* Install or build [[/KDE_Workspace|KDE Workspace]]&lt;br /&gt;
* [[/KDE_Applications|Build KDE Applications]]&lt;br /&gt;
&lt;br /&gt;
===''Beyond Linux from Scratch''===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting The Build ==&lt;br /&gt;
&lt;br /&gt;
Compile and Linking errors are frequent sources of discouragement. Make careful note of the first occurrence of an error in your build process. It could be as simple as a bad environment variable, an unexpected version of a library or missing prerequisite.  Please read the instructions carefully.&lt;br /&gt;
&lt;br /&gt;
Please review your logs and do searches for fixes. If you cannot find a solution, try the [[/Troubleshooting|Troubleshooting]] page.  If you still cannot resolve the problem then please [[Development/Getting_Help|ask for help]] on IRC or a Mailing List.&lt;br /&gt;
&lt;br /&gt;
== Starting KDE ==&lt;br /&gt;
&lt;br /&gt;
Having built and installed KDE, you will probably want to start it. Launching a full session requires some preparations, depending on whether you want to run the self-compiled KDE within another desktop environment or as a full-blow session:&lt;br /&gt;
&lt;br /&gt;
* [[Getting_Started/Run/Nested_Session|How to Run a nested session of KDE]]&lt;br /&gt;
* [[Getting_Started/Run/Full_Session|How to Run a full session of KDE]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Build KDE]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions</id>
		<title>Getting Started/Build/Distributions</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions"/>
				<updated>2013-04-15T08:22:28Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|This page is yet to be reviewed for changes required by the migration to Git.  Information and commands on this page may no longer be valid and should be used with care. Please see the [[Development/Git|KDE Git hub page]] for more details. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page provides details about building and/or installing KDE Software on specific Linux and BSD distributions.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
* [[/Arch Linux|Arch Linux]]&lt;br /&gt;
* [[/Ark Linux|Ark Linux]]&lt;br /&gt;
* [[/Chakra|Chakra]]&lt;br /&gt;
* [[/Debian|Debian and Kubuntu]]&lt;br /&gt;
* [[/Fedora|Fedora]]&lt;br /&gt;
* [[/Gentoo|Gentoo]]&lt;br /&gt;
* [[/Mandriva|Mandriva]]&lt;br /&gt;
* [[/openSUSE|openSUSE]]&lt;br /&gt;
* [[Getting_Started/Using Project Neon to contribute to KDE|Project Neon on Kubuntu]]&lt;br /&gt;
* [[Getting_Started/EasyStartDevelopmentOnDebian|Debian]]&lt;br /&gt;
&lt;br /&gt;
== BSD ==&lt;br /&gt;
&lt;br /&gt;
* [[/FreeBSD|FreeBSD]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-15T08:17:48Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page is a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, this will not be updated further and will probably be deleted.'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries (including some KDEGraphics libraries) and a dependency for Gwenview.  Threfore, if you install KDEGraphics as a single package, there is a circular dependency.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-15T08:16:57Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page is a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, this will not be updated further and will probably be deleted.'''|&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries (including some KDEGraphics libraries) and a dependency for Gwenview.  Threfore, if you install KDEGraphics as a single package, there is a circular dependency.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2013-04-15T08:14:46Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
'''NOTE: This page is a totally out of date.  The instructions in the BLFS book are now what I would recommend you use.  So, this will not be updated further and will probably be deleted.'''|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries (including some KDEGraphics libraries) and a dependency for Gwenview.  Threfore, if you install KDEGraphics as a single package, there is a circular dependency.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/KDE_Support</id>
		<title>Getting Started/Build/KDE Support</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/KDE_Support"/>
				<updated>2013-03-31T06:41:41Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Qt Zeitgeist */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{warning|This page is yet to be reviewed for changes required by the migration to Git.  Information and commands on this page may no longer be valid and should be used with care. Please see the [[Development/Git|KDE Git hub page]] for more details. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TutorialBrowser|&lt;br /&gt;
series=Getting Started|&lt;br /&gt;
name=Building KDE4 From Source/KDE Support|&lt;br /&gt;
pre=[[../Qt|Qt]]|&lt;br /&gt;
next=[[../KDE_Development_Platform|KDE Development Platform]]|&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The KDE Support module contains a number of KDE developed and supported packages that the main KDE Modules depend upon.  Your distribution packages may be sufficient for these requirements when building a KDE stable branch, but Unstable may sometimes require the latest versions to be built from source.&lt;br /&gt;
&lt;br /&gt;
Most KDE Support packages have now migrated to Git as separate modules and must be built individually, although some are still left in Subversion and can be built as a single unit.  The modules are listed below in a rough dependency order.&lt;br /&gt;
&lt;br /&gt;
=== Required Steps ===&lt;br /&gt;
&lt;br /&gt;
You need to have completed the following steps:&lt;br /&gt;
* Set up your [[../Environment|Build Environment]]&lt;br /&gt;
* Selected your [[../Recipes|Build Recipes]]&lt;br /&gt;
* Installed the [[../Requirements|System Requirements]]&lt;br /&gt;
* Installed or Built [[../Qt|Qt and related requirements]]&lt;br /&gt;
* Understand the [[../Requirements#Definitions|Requirements Table format]]&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
The following table summarizes all the Projects contained in KDE Support and the versions required for building KDE Software.  The optional/mandatory coloring is based on the requirements of the KDE Development Platform, the requirements for building other KDE Modules or Applications may vary.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/automoc Automoc]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/attica Attica]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/polkit-qt-1 Polkit Qt]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [https://projects.kde.org/projects/kdesupport/strigi Strigi]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/soprano Soprano]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/akonadi Akonadi]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/cagibi Cagibi]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [https://projects.kde.org/projects/kdesupport/phonon Phonon]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/prison Prison]&lt;br /&gt;
| &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | Any&lt;br /&gt;
| Yes&lt;br /&gt;
| A Qt based barcode library&lt;br /&gt;
|-&lt;br /&gt;
| Oxygen Icons&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| QImageBlitz&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| TagLib&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| cpp2xml&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Template ==&lt;br /&gt;
&lt;br /&gt;
Project is a &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;25%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Project Page'''&lt;br /&gt;
| width=&amp;quot;75%&amp;quot; | [http://projects.kde.org/projects/kdesupport/project http://projects.kde.org/projects/kdesupport/project]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Stable Version'''&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Required By'''&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Easy Repository'''&lt;br /&gt;
| git clone kde:project.git&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Full Repository'''&lt;br /&gt;
| git clone git://anongit.kde.org/project.git&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''KDE Software Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/project Project]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''Project Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http:// Project]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Automoc ==&lt;br /&gt;
&lt;br /&gt;
Automoc is a tool to automate Qt moc file creation.  Automoc '''MUST''' be built first as other KDE Support Modules depend on it.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;25%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Project Page'''&lt;br /&gt;
| width=&amp;quot;75%&amp;quot; | [http://projects.kde.org/projects/kdesupport/automoc http://projects.kde.org/projects/kdesupport/automoc]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Stable Version'''&lt;br /&gt;
| 0.9.88&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Required By'''&lt;br /&gt;
| All KDE Modules and Projects using moc&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Easy Repository'''&lt;br /&gt;
| git clone kde:automoc.git&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Full Repository'''&lt;br /&gt;
| git clone git://anongit.kde.org/automoc.git&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''KDE Software Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/automoc Automoc]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666;&amp;quot; |&lt;br /&gt;
| No&lt;br /&gt;
| A tool to automate Qt moc file creation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Attica ==&lt;br /&gt;
&lt;br /&gt;
Attica is a library for accessing the Open Collaboration Services. &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;25%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Project Page'''&lt;br /&gt;
| width=&amp;quot;75%&amp;quot; | [http://projects.kde.org/projects/kdesupport/attica http://projects.kde.org/projects/kdesupport/attica]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Stable Version'''&lt;br /&gt;
| 0.2.0&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Required By'''&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Easy Repository'''&lt;br /&gt;
| git clone kde:attica.git&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Full Repository'''&lt;br /&gt;
| git clone git://anongit.kde.org/attica.git&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''KDE Software Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/attica Attica]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for accessing the Open Collaboration Services.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Polkit Qt==&lt;br /&gt;
&lt;br /&gt;
Polkit Qt is a library for accessing the PolicyKit authorization framework. &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;25%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Project Page'''&lt;br /&gt;
| width=&amp;quot;75%&amp;quot; | [http://projects.kde.org/projects/kdesupport/polkit-qt-1 http://projects.kde.org/projects/kdesupport/polkit-qt-1]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Stable Version'''&lt;br /&gt;
| 0.99&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Required By'''&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Easy Repository'''&lt;br /&gt;
| git clone kde:polkit-qt-1.git&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Full Repository'''&lt;br /&gt;
| git clone git://anongit.kde.org/polkit-qt-1.git&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''KDE Software Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/polkit-qt-1 PolKit Qt]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for accessing the PolicyKit authorization framework.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''Polkit Qt Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.freedesktop.org/wiki/Software/PolicyKit PolicyKit]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; | &amp;gt;= 0.98&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; | &amp;gt;= 0.98&lt;br /&gt;
| Yes&lt;br /&gt;
| The PolicyKit authorization framework.  PolicyKit 0.98 is recommended, but Polkit Qt will build with any version.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Strigi ==&lt;br /&gt;
&lt;br /&gt;
Strigi is a library for indexing files.  Note that Strigi has now been split into a number of separate Git sub-projects, but these can still be cloned and built as a single entity using the Strigi parent project.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;25%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Project Page'''&lt;br /&gt;
| width=&amp;quot;75%&amp;quot; | [http://projects.kde.org/projects/kdesupport/strigi http://projects.kde.org/projects/kdesupport/strigi]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Stable Version'''&lt;br /&gt;
| 0.7.2&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Required By'''&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Easy Repository'''&lt;br /&gt;
| git clone kde:strigi &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:#EFEFEF;&amp;quot; | '''Full Repository'''&lt;br /&gt;
| git clone git://anongit.kde.org/strigi&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{ warning|As of 2011-03-21: After cloning the Strigi parent project, you will have to run the ''change_to_development_git.sh'' script to pull in all sub projects.}}&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''KDE Software Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/strigi Strigi]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66;&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for indexing files. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''Project Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; style=&amp;quot;background-color:#EFEFEF;&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://qt.nokia.com/ Qt]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; | &amp;gt;= 4.3.0&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; | &amp;gt;= 4.3.0&lt;br /&gt;
| Yes&lt;br /&gt;
| The Qt development framework.&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.zlib.net/ libz]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for zip file compression&lt;br /&gt;
|-&lt;br /&gt;
| [http://bzip.org/ libbz2]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for bzip2 file compression.&lt;br /&gt;
|-&lt;br /&gt;
| [http://xmlsoft.org/ libxml2]&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background-color:#FF6666&amp;quot; |&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for parsing XML&lt;br /&gt;
|-&lt;br /&gt;
| [http://clucene.sourceforge.net/ Clucene]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &amp;gt;=0.9.16a&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &amp;gt;=0.9.16a&lt;br /&gt;
| Yes&lt;br /&gt;
| A high-performance indexing and searching API.  Version 0.9.17 does '''not''' work.&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.exiv2.org/ Exiv2]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| Yes&lt;br /&gt;
| A library to manage image metadata.&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.ffmpeg.org/ FFMPEG]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| Yes&lt;br /&gt;
| A library for reading audio and video files.&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.freedesktop.org/wiki/Software/dbus DBus]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| Yes&lt;br /&gt;
| A message bus system.&lt;br /&gt;
|-&lt;br /&gt;
| [http://oss.sgi.com/projects/fam/ FAM]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| Yes&lt;br /&gt;
| A tool for file system monitoring.&lt;br /&gt;
|-&lt;br /&gt;
| [http://logging.apache.org/log4cxx/index.html Log4cxx]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| Yes&lt;br /&gt;
| A logging framework for C++&lt;br /&gt;
|-&lt;br /&gt;
| [http://sourceforge.net/projects/cppunit/ CppUnit]&lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| style=&amp;quot;background-color:#66FF66&amp;quot; | &lt;br /&gt;
| Yes&lt;br /&gt;
| A C++ Unit Testing framework&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Soprano ==&lt;br /&gt;
&lt;br /&gt;
Soprano is a library for storing RDF data for the Nepomuk semantic desktop. &lt;br /&gt;
&lt;br /&gt;
Please see the [http://projects.kde.org/projects/kdesupport/soprano Soprano project page] for details.&lt;br /&gt;
&lt;br /&gt;
Soprano must be built '''BEFORE''' Akonadi.&lt;br /&gt;
&lt;br /&gt;
 Easy:  git clone kde:soprano.git&lt;br /&gt;
 Full:  git clone git://anongit.kde.org/soprano.git&lt;br /&gt;
&lt;br /&gt;
== Akonadi ==&lt;br /&gt;
&lt;br /&gt;
Akonadi is a library for caching PIM data. &lt;br /&gt;
&lt;br /&gt;
Please see the [http://projects.kde.org/projects/kdesupport/akonadi Akonadi project page] for details.&lt;br /&gt;
&lt;br /&gt;
Akonadi must be built '''AFTER''' Soprano.&lt;br /&gt;
&lt;br /&gt;
 Easy:  git clone kde:akonadi.git&lt;br /&gt;
 Full:  git clone git://anongit.kde.org/akonadi.git&lt;br /&gt;
&lt;br /&gt;
== Cagibi ==&lt;br /&gt;
&lt;br /&gt;
Cagibi is a cache/proxy daemon for SSDP, the discovery part of UPnP.&lt;br /&gt;
&lt;br /&gt;
Please see the [http://projects.kde.org/projects/kdesupport/cagibi Cagibi project page] for details.&lt;br /&gt;
&lt;br /&gt;
 Easy:  git clone kde:cagibi.git&lt;br /&gt;
 Full:  git clone git://anongit.kde.org/cagibi.git&lt;br /&gt;
&lt;br /&gt;
== Qt Zeitgeist ==&lt;br /&gt;
&lt;br /&gt;
Qt Zeitgeist is a QT wrapper for the Zeitgeist logging program.&lt;br /&gt;
&lt;br /&gt;
Please see the [http://projects.kde.org/projects/kdesupport/libqtzeitgeist Qt Zeitgeist project page] for details.&lt;br /&gt;
&lt;br /&gt;
To checkout the source code using Git:&lt;br /&gt;
::git clone git://anongit.kde.org/libqzeitgeist.git&lt;br /&gt;
&lt;br /&gt;
== Phonon ==&lt;br /&gt;
&lt;br /&gt;
Phonon is a sound system abstraction layer.  This is usually packaged with Qt,  but the Phonon version from Qt is not recent enough for KDE sound to work so you will need to build the required version yourself.&lt;br /&gt;
&lt;br /&gt;
Please see the [https://projects.kde.org/projects/kdesupport/phonon Phonon project page] for details.&lt;br /&gt;
&lt;br /&gt;
You need to install this Phonon in the same location as Phonon from Qt i.e. in $QTDIR and '''NOT''' in $KDEDIR.&lt;br /&gt;
&lt;br /&gt;
=== Easy Recipe ===&lt;br /&gt;
&lt;br /&gt;
This recipe assumes you have set up the recommended KDE scripts, environment variables, and git configuration.&lt;br /&gt;
&lt;br /&gt;
 cd &amp;lt;your source root directory&amp;gt;&lt;br /&gt;
 git clone kde:phonon.git&lt;br /&gt;
 cd phonon&lt;br /&gt;
 cb&lt;br /&gt;
 cmake &amp;lt;path to your module source dir&amp;gt;&lt;br /&gt;
       \ -DCMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
       \ -DCMAKE_BUILD_TYPE=debugfull&lt;br /&gt;
       \ -DKDE4_BUILD_TESTS=TRUE&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that make install may require root access.&lt;br /&gt;
&lt;br /&gt;
=== Full Recipe ===&lt;br /&gt;
&lt;br /&gt;
This recipe assumes you are not using the recommended scripts and have properly set up your own environment.&lt;br /&gt;
&lt;br /&gt;
 cd &amp;lt;your source root directory&amp;gt;&lt;br /&gt;
 git clone git://anongit.kde.org/phonon.git&lt;br /&gt;
 cd &amp;lt;your build root directory, or the module source dir&amp;gt;&lt;br /&gt;
 mkdir &amp;lt;your module build dir&amp;gt;&lt;br /&gt;
 cd &amp;lt;your module build dir&amp;gt;&lt;br /&gt;
 cmake &amp;lt;path to your module source dir&amp;gt;&lt;br /&gt;
       \ -DCMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
       \ -DCMAKE_BUILD_TYPE=debugfull&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Backend ===&lt;br /&gt;
&lt;br /&gt;
Building the main Phonon module is sufficient for building KDE.  If you also want to play sound then you need to build a backend.  Choose a suitable backend from those available below:&lt;br /&gt;
&lt;br /&gt;
 git clone git://anongit.kde.org/phonon-gstreamer.git&lt;br /&gt;
 git clone git://anongit.kde.org/phonon-xine.git&lt;br /&gt;
 git clone git://anongit.kde.org/phonon-directshow.git&lt;br /&gt;
 git clone git://anongit.kde.org/phonon-mmf.git&lt;br /&gt;
 git clone git://anongit.kde.org/phonon-quicktime.git&lt;br /&gt;
 git clone git://anongit.kde.org/phonon-waveout.git&lt;br /&gt;
&lt;br /&gt;
Note that DirectShow is for Windows only.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
 designer: symbol lookup error: /path/to/kde/lib/kde4/plugins/phonon_backend/phonon_xine.so: &lt;br /&gt;
           undefined symbol: _ZN6Phonon12PulseSupport11getInstanceEv&lt;br /&gt;
&lt;br /&gt;
while running Qt Designer you need to:&lt;br /&gt;
&lt;br /&gt;
 rm $QTDIR/lib/libphonon.so.4&lt;br /&gt;
&lt;br /&gt;
== Prison ==&lt;br /&gt;
&lt;br /&gt;
Prison is a barcode library to enable optional barcode support in KDE Software.  It was introduced in the KDE 4.7 Release Cycle.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;25%&amp;quot; | '''Project Page'''&lt;br /&gt;
| width=&amp;quot;75%&amp;quot; | [http://projects.kde.org/projects/kdesupport/prison http://projects.kde.org/projects/kdesupport/prison]&lt;br /&gt;
|-&lt;br /&gt;
| '''Stable Version'''&lt;br /&gt;
| Unreleased&lt;br /&gt;
|-&lt;br /&gt;
| '''Required By'''&lt;br /&gt;
| No KDE Modules as yet&lt;br /&gt;
|-&lt;br /&gt;
| '''Easy Repository'''&lt;br /&gt;
| git clone kde:prison.git&lt;br /&gt;
|-&lt;br /&gt;
| '''Full Repository'''&lt;br /&gt;
| git clone git://anongit.kde.org/prison.git&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''KDE Software Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://projects.kde.org/projects/kdesupport/prison Prison]&lt;br /&gt;
| &lt;br /&gt;
| style=&amp;quot;background-color:#6ECFFF;&amp;quot; | Any&lt;br /&gt;
| Yes&lt;br /&gt;
| A Qt based barcode library&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ '''Prison Build Requirements'''&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Requirement&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; | Stable Requires&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; | Unstable Requires&lt;br /&gt;
! width=&amp;quot;10%&amp;quot; | Devel Pkgs?&lt;br /&gt;
! width=&amp;quot;40%&amp;quot; | Details&lt;br /&gt;
|-&lt;br /&gt;
| [http://fukuchi.org/works/qrencode/index.en.html QRencode]&lt;br /&gt;
| &lt;br /&gt;
| style=&amp;quot;background-color:#FF6E6E;&amp;quot; | Any&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for reading and writing QR Code barcodes&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.libdmtx.org/ Dmtx]&lt;br /&gt;
| &lt;br /&gt;
| style=&amp;quot;background-color:#FF6E6E;&amp;quot; | Any&lt;br /&gt;
| Yes&lt;br /&gt;
| A library for reading and writing Data Matrix 2D barcodes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== kdesupport svn module ==&lt;br /&gt;
&lt;br /&gt;
A number of kdesupport packages are still in svn:&lt;br /&gt;
&lt;br /&gt;
* oxygen-icons&lt;br /&gt;
* qimageblitz - for building kde-workspace&lt;br /&gt;
* taglib&lt;br /&gt;
* taglib-extras&lt;br /&gt;
* cpp2xml&lt;br /&gt;
* twine - for building kdebindings&lt;br /&gt;
* emerge - for building kde on windows&lt;br /&gt;
&lt;br /&gt;
These packages can be checked out and built together with a single recipe.&lt;br /&gt;
&lt;br /&gt;
Note that QCA lives in kdesupport svn but is not built by default.  It is recommended that you use your system QCA packages and only checkout the kdesupport svn version if you are going to develop QCA.&lt;br /&gt;
&lt;br /&gt;
=== Easy Recipe ===&lt;br /&gt;
&lt;br /&gt;
This recipe assumes you have set up the recommended KDE scripts, environment variables, and git configuration.&lt;br /&gt;
&lt;br /&gt;
 cd &amp;lt;your source root directory&amp;gt;&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/&lt;br /&gt;
 cd kdesupport&lt;br /&gt;
 kdebuild&lt;br /&gt;
&lt;br /&gt;
=== Full Recipe ===&lt;br /&gt;
&lt;br /&gt;
This recipe assumes you are not using the recommended scripts and have properly set up your own environment.&lt;br /&gt;
&lt;br /&gt;
 cd &amp;lt;your source root directory&amp;gt;&lt;br /&gt;
 svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/&lt;br /&gt;
 cd &amp;lt;your build root directory, or the module source dir&amp;gt;&lt;br /&gt;
 mkdir &amp;lt;your module build dir&amp;gt;&lt;br /&gt;
 cd &amp;lt;your module build dir&amp;gt;&lt;br /&gt;
 cmake &amp;lt;path to your module source dir&amp;gt;&lt;br /&gt;
       \ -DCMAKE_INSTALL_PREFIX=$KDEDIR &lt;br /&gt;
       \ -DCMAKE_BUILD_TYPE=debugfull&lt;br /&gt;
       \ -DKDE4_BUILD_TESTS=TRUE&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you get a message related to &lt;br /&gt;
   target libQtTest.so not found&lt;br /&gt;
you may need to recompile qt-kde. This time you should take out&lt;br /&gt;
   -nomake demos -nomake examples&lt;br /&gt;
from the configure command, so that Qt generates library QtTest.&lt;br /&gt;
&lt;br /&gt;
If you get&lt;br /&gt;
      CMake Error: Qt qmake not found!&lt;br /&gt;
Then:&lt;br /&gt;
      1) uncomment Qt section in .bashrc script (QTDIR, QT_PLUGINS_DIR,      &lt;br /&gt;
            PKG_CONFIG_PATH variable settings).&lt;br /&gt;
      2) source ~/.bashrc&lt;br /&gt;
      3) cd &amp;amp;&amp;amp; cd qt-kde&lt;br /&gt;
      4) make confclean&lt;br /&gt;
      5) repeat steps for installing Qt (from ./configure line).&lt;br /&gt;
      6) retry building kdesupport&lt;br /&gt;
&lt;br /&gt;
= Next Step =&lt;br /&gt;
&lt;br /&gt;
Once all the KDE Support requirements have been installed it is time to install the [[../KDE_Development_Platform|KDE Development Platform]]&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T22:15:06Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KIPI Plugins */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries (including some KDEGraphics libraries) and a dependency for Gwenview.  Threfore, if you install KDEGraphics as a single package, there is a circular dependency.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T22:08:53Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KIPI Plugins */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDE libraries and a dependency for KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T11:28:16Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KDE 4.6 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages:&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is a dependency for KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T11:26:01Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* TRUNK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is a dependency for KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T11:23:15Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KIPI Plugins */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is a dependency for KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T08:52:29Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* CLucene */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
NOTE: Older versions of KDE and Strigi &amp;lt;= 0.7.5 requires version 0.9.21b.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T08:49:23Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Strigi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
NOTE: Strigi &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T08:47:17Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Strigi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
Note: &amp;gt;= 0.7.6 is needed to use the current release of Clucene.&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-07-04T01:28:20Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* QCA-2.0.2 (crypto add on for Qt) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Tutorials/D-Bus/Configuration</id>
		<title>Getting Started/Tutorials/D-Bus/Configuration</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Tutorials/D-Bus/Configuration"/>
				<updated>2012-05-11T11:32:32Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KDE &amp;gt;= 4.4 and TRUNK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Tutorials/D-Bus/Configuration}}&lt;br /&gt;
&lt;br /&gt;
==Configuring for Services==&lt;br /&gt;
&lt;br /&gt;
===All KDE-4 versions===&lt;br /&gt;
&lt;br /&gt;
If you instlled KDE-4.x.y in: &amp;quot;/opt/KDE-4, the default location where D-Bus services will be installed is &amp;quot;/opt/KDE-4/share/dbus-1/services&amp;quot;.  D-Bus needs to find these services and use them.  &lt;br /&gt;
&lt;br /&gt;
You can either change the default to install them in: &lt;br /&gt;
&lt;br /&gt;
::/usr/share/dbus-1/services &lt;br /&gt;
&lt;br /&gt;
by adding the CMake parameter:&lt;br /&gt;
&lt;br /&gt;
::-DDBUS_SERVICES_INSTALL_DIR:PATH=/usr/share/dbus-1/services&lt;br /&gt;
&lt;br /&gt;
Or, you can add, for example:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;servicedir&amp;gt;/opt/KDE-4/share/dbus-1/services&amp;lt;/servicedir&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{use the actual path from your system}&lt;br /&gt;
&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/session-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
NOTE: Although you can place multiple paths for services in the &amp;quot;/etc/dbus-1/session-local.conf&amp;quot; file, if the services have the same name, only the last one will be used.  This may or may not cause problems if you have multiple versions of KDE on your system.&lt;br /&gt;
&lt;br /&gt;
===KDE &amp;gt;= 4.4 and TRUNK===&lt;br /&gt;
&lt;br /&gt;
The current KDE-4.4 BRANCH and TRUNK also install a: &amp;quot;system-services&amp;quot; directory.  If you installed KDE-4.x.y in: &amp;quot;/opt/KDE-4, the D-Bus system services will be installed in &amp;quot;/opt/KDE-4/share/dbus-1/system-services&amp;quot;. D-Bus needs to find these services and use them.&lt;br /&gt;
&lt;br /&gt;
You can either change the default to install them in: &lt;br /&gt;
&lt;br /&gt;
::/usr/share/dbus-1/system-services&lt;br /&gt;
&lt;br /&gt;
by adding the CMake parameter:&lt;br /&gt;
&lt;br /&gt;
::-DDBUS_SYSTEM_SERVICES_INSTALL_DIR:PATH=/usr/share/dbus-1/system-services&lt;br /&gt;
&lt;br /&gt;
Or, you can add, for example:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;servicedir&amp;gt;/opt/KDE-4/share/dbus-1/system-services&amp;lt;/servicedir&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{use the actual path from your system} &lt;br /&gt;
&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/system-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
NOTE: Although you can place multiple paths for system services in the &amp;quot;/etc/dbus-1/system-local.conf&amp;quot; file, if the services have the same name, only the last one will be used.  This may or may not cause problems if you have multiple versions of KDE on your system.&lt;br /&gt;
&lt;br /&gt;
==SYSCONF_INSTALL_DIR==&lt;br /&gt;
&lt;br /&gt;
You can use the parameter: &amp;quot;SYSCONF_INSTALL_DIR&amp;quot; when running CMake to place the configuration directories where you want them which would normally be: &amp;quot;/etc/kde-4&amp;quot; or if installing multiple versions: &amp;quot;/etc/kde-&amp;lt;version&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example, if you use:&lt;br /&gt;
&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-4&lt;br /&gt;
&lt;br /&gt;
Then you must configure D-Bus to find these directories.&lt;br /&gt;
&lt;br /&gt;
First if one or both of the directories:&lt;br /&gt;
&lt;br /&gt;
::/etc/kde-&amp;lt;version&amp;gt;/dbus-1/session.d&lt;br /&gt;
::/etc/kde-&amp;lt;version&amp;gt;/dbus-1/system.d&lt;br /&gt;
&lt;br /&gt;
doesn't/don't exist, create it/them.&lt;br /&gt;
&lt;br /&gt;
Then add:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/session.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/session-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If you don't have the: &amp;quot;session-local.conf&amp;quot;, create it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE busconfig PUBLIC&lt;br /&gt;
 &amp;quot;-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;busconfig&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Search for .conf files in /etc/kde-4/dbus-1/session.d --&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/session.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/busconfig&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And add:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/system.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/system-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If you don't have the: &amp;quot;system-local.conf&amp;quot;, create it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE busconfig PUBLIC&lt;br /&gt;
 &amp;quot;-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;busconfig&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Search for .conf files in /etc/kde-4/dbus-1/system.d --&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/system.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/busconfig&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Policy files==&lt;br /&gt;
&lt;br /&gt;
It is not possible to configure the location of the &amp;quot;*.policy&amp;quot; files.  therefore, you must build KDE-4 and: &amp;quot;polkit-kde-1&amp;quot; with:&lt;br /&gt;
&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
{for PolicyKit installed with a prefix of: &amp;quot;/usr&amp;quot;}&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Tutorials/D-Bus/Configuration</id>
		<title>Getting Started/Tutorials/D-Bus/Configuration</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Tutorials/D-Bus/Configuration"/>
				<updated>2012-05-11T11:21:58Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* All KDE-4 versions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Tutorials/D-Bus/Configuration}}&lt;br /&gt;
&lt;br /&gt;
==Configuring for Services==&lt;br /&gt;
&lt;br /&gt;
===All KDE-4 versions===&lt;br /&gt;
&lt;br /&gt;
If you instlled KDE-4.x.y in: &amp;quot;/opt/KDE-4, the default location where D-Bus services will be installed is &amp;quot;/opt/KDE-4/share/dbus-1/services&amp;quot;.  D-Bus needs to find these services and use them.  &lt;br /&gt;
&lt;br /&gt;
You can either change the default to install them in: &lt;br /&gt;
&lt;br /&gt;
::/usr/share/dbus-1/services &lt;br /&gt;
&lt;br /&gt;
by adding the CMake parameter:&lt;br /&gt;
&lt;br /&gt;
::-DDBUS_SERVICES_INSTALL_DIR:PATH=/usr/share/dbus-1/services&lt;br /&gt;
&lt;br /&gt;
Or, you can add, for example:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;servicedir&amp;gt;/opt/KDE-4/share/dbus-1/services&amp;lt;/servicedir&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{use the actual path from your system}&lt;br /&gt;
&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/session-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
NOTE: Although you can place multiple paths for services in the &amp;quot;/etc/dbus-1/session-local.conf&amp;quot; file, if the services have the same name, only the last one will be used.  This may or may not cause problems if you have multiple versions of KDE on your system.&lt;br /&gt;
&lt;br /&gt;
===KDE &amp;gt;= 4.4 and TRUNK===&lt;br /&gt;
&lt;br /&gt;
The current KDE-4.4 BRANCH and TRUNK also install a: &amp;quot;system-services&amp;quot; directory.  If you installed KDE-4.x.y in: &amp;quot;/opt/KDE-4, the D-Bus system services will be installed in &amp;quot;/opt/KDE-4/share/dbus-1/system-services&amp;quot;. D-Bus needs to find these services and use them.&lt;br /&gt;
&lt;br /&gt;
You can either change the default to install them in: &lt;br /&gt;
&lt;br /&gt;
::/usr/share/dbus-1/system-services&lt;br /&gt;
&lt;br /&gt;
by adding the CMake parameter:&lt;br /&gt;
&lt;br /&gt;
::-DDBUS_SYSTEM_SERVICES_INSTALL_DIR:PATH=/usr/share/dbus-1/system-services&lt;br /&gt;
&lt;br /&gt;
Or, you can add, for example:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;servicedir&amp;gt;/opt/KDE-4/share/dbus-1/system-services&amp;lt;/servicedir&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{use the actual path from your system} &lt;br /&gt;
&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/system.conf&amp;quot; file after the line:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;standard_system_servicedirs/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE: Although you can place multiple paths for system services in the &amp;quot;/etc/dbus-1/system-local.conf&amp;quot; file, if the services have the same name, only the last one will be used.  This may or may not cause problems if you have multiple versions of KDE on your system.&lt;br /&gt;
&lt;br /&gt;
==SYSCONF_INSTALL_DIR==&lt;br /&gt;
&lt;br /&gt;
You can use the parameter: &amp;quot;SYSCONF_INSTALL_DIR&amp;quot; when running CMake to place the configuration directories where you want them which would normally be: &amp;quot;/etc/kde-4&amp;quot; or if installing multiple versions: &amp;quot;/etc/kde-&amp;lt;version&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example, if you use:&lt;br /&gt;
&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-4&lt;br /&gt;
&lt;br /&gt;
Then you must configure D-Bus to find these directories.&lt;br /&gt;
&lt;br /&gt;
First if one or both of the directories:&lt;br /&gt;
&lt;br /&gt;
::/etc/kde-&amp;lt;version&amp;gt;/dbus-1/session.d&lt;br /&gt;
::/etc/kde-&amp;lt;version&amp;gt;/dbus-1/system.d&lt;br /&gt;
&lt;br /&gt;
doesn't/don't exist, create it/them.&lt;br /&gt;
&lt;br /&gt;
Then add:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/session.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/session-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If you don't have the: &amp;quot;session-local.conf&amp;quot;, create it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE busconfig PUBLIC&lt;br /&gt;
 &amp;quot;-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;busconfig&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Search for .conf files in /etc/kde-4/dbus-1/session.d --&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/session.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/busconfig&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And add:&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/system.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to your: &amp;quot;/etc/dbus-1/system-local.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If you don't have the: &amp;quot;system-local.conf&amp;quot;, create it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE busconfig PUBLIC&lt;br /&gt;
 &amp;quot;-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;busconfig&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Search for .conf files in /etc/kde-4/dbus-1/system.d --&amp;gt;&lt;br /&gt;
  &amp;lt;includedir&amp;gt;/etc/kde-4/dbus-1/system.d&amp;lt;/includedir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/busconfig&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Policy files==&lt;br /&gt;
&lt;br /&gt;
It is not possible to configure the location of the &amp;quot;*.policy&amp;quot; files.  therefore, you must build KDE-4 and: &amp;quot;polkit-kde-1&amp;quot; with:&lt;br /&gt;
&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
{for PolicyKit installed with a prefix of: &amp;quot;/usr&amp;quot;}&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-20T02:32:35Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-20T02:30:20Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./b2 install link=shared&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --help&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;-no-phonon&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;enable-md2&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure --prefix=$QTDIR&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;./configure&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;make install&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-jdk4=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--without-internal-zlib&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-pthreads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-readline&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--with-iodbc=&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-all-vads&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;--disable-static&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
======Build======&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-19T01:18:28Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Virtuoso Open-Source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;enable-md2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--with-jdk4=&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--without-internal-zlib&amp;lt;/code&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;code&amp;gt;--with-pthreads&amp;lt;/code&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;code&amp;gt;--with-readline&amp;lt;/code&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;code&amp;gt;--with-iodbc=&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for other parameters.&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--disable-all-vads&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--disable-static&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T23:32:54Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Virtuoso Open-Source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;enable-md2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--disable-all-vads&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--disable-static&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T22:21:40Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* LibDBusMenu-Qt */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;enable-md2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get current release here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T22:19:49Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;enable-md2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T22:18:17Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 may not build against older releases of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
For current releases, be sure to enable MD2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;enable-md2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when building OpenSSL.&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible corrections to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T22:15:37Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* QCA-2.0.2 (crypto add on for Qt) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible correction to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T20:36:56Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible correction to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T20:33:00Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible correction to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T20:30:45Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Check the BLFS SVN for a possible correction to the build scripts.&lt;br /&gt;
&lt;br /&gt;
Set the: &amp;quot;QTDIR&amp;quot; environment variable correctly and then build QCA with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --prefix=$QTDIR&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build the plugins with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-18T20:25:35Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* QCA-2.0.2 (crypto add on for Qt) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-08T19:01:56Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* CLucene */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
Current KDE-4 works with the current release available here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/&lt;br /&gt;
&lt;br /&gt;
Use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-08T18:56:41Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
The CLucene developers suggest using the GIT repository since there are no recent releases.  However, KDE-4 currently depends on the last (old) release:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21b/clucene-core-0.9.21b.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Do NOT use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-no-phonon&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-08T01:18:36Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)&lt;br /&gt;
&lt;br /&gt;
NOTE: This page is a little out of date.  I will be working on it.  You might also want to consult the current SVN of Beyond Linux from Scratch for current package versions and build information.|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
The CLucene developers suggest using the GIT repository since there are no recent releases.  However, KDE-4 currently depends on the last (old) release:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21b/clucene-core-0.9.21b.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Do NOT use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
  ./configure --help&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
::./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
::-no-phonon&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-08T01:04:33Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Boost C++ Libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./bootstrap.sh --prefix=/usr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./b2 install link=shared&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
The CLucene developers suggest using the GIT repository since there are no recent releases.  However, KDE-4 currently depends on the last (old) release:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21b/clucene-core-0.9.21b.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Do NOT use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
  ./configure --help&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
::./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
::-no-phonon&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-08T00:59:20Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.&lt;br /&gt;
&lt;br /&gt;
See: [http://www.linuxfromscratch.org/blfs/view/svn BLFS] for build and configure instructions.&lt;br /&gt;
&lt;br /&gt;
HAL, PolicyKit &amp;amp; EggDBus  are being phased out and may not be needed. &lt;br /&gt;
&lt;br /&gt;
Newer versions of KDE-4.x should install:&lt;br /&gt;
&lt;br /&gt;
::udev&lt;br /&gt;
::upower&lt;br /&gt;
::udisks&lt;br /&gt;
&lt;br /&gt;
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS.  So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.&lt;br /&gt;
&lt;br /&gt;
Some of these libraries are dependent on:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;Linux-PAM&lt;br /&gt;
::Shadow&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which should be installed and configured according to the BLFS instructions.&lt;br /&gt;
&lt;br /&gt;
===DocBook DTD===&lt;br /&gt;
&lt;br /&gt;
KDE-4 still requires version 4.2 of:&lt;br /&gt;
&lt;br /&gt;
::DocBook SGML DTD&lt;br /&gt;
::DocBook XML DTD.&lt;br /&gt;
&lt;br /&gt;
See the instructions in this old version of BLFS:&lt;br /&gt;
&lt;br /&gt;
::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/&lt;br /&gt;
&lt;br /&gt;
===Boost C++ Libraries===&lt;br /&gt;
&lt;br /&gt;
Get the current release (e.g. boost_1_42_0.tar.gz) here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/boost/files/boost/&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current release eliminates the arcane naming issues.  Although not the same as using autotools, it is now simple to build and install.&lt;br /&gt;
&lt;br /&gt;
Remove the includes from previous versions:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost_&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you have a link:&lt;br /&gt;
&lt;br /&gt;
::/usr/include/boost&lt;br /&gt;
&lt;br /&gt;
remove that also.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
::./bootstrap.sh --prefix=/usr&lt;br /&gt;
::./b2 install link=shared&lt;br /&gt;
&lt;br /&gt;
===CLucene===&lt;br /&gt;
The CLucene developers suggest using the GIT repository since there are no recent releases.  However, KDE-4 currently depends on the last (old) release:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21b/clucene-core-0.9.21b.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Do NOT use CMake to build it.&lt;br /&gt;
&lt;br /&gt;
===Qt===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use kde-qt from:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/+kde-developers/qt/kde-qt.git&lt;br /&gt;
&lt;br /&gt;
This installs as Qt-&amp;lt;version&amp;gt;, so when it updates to the next version, it won't install in the same place.  This means that you will need to change the &amp;lt;version&amp;gt; any place where it is specified.  You will also have to install QCA (and its plugins) again when the version changes.&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4=====&lt;br /&gt;
&lt;br /&gt;
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.x.y from Nokia:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/linux-x11-cpp&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use 4.5.3:&lt;br /&gt;
&lt;br /&gt;
::http://qt.nokia.com/downloads/downloads#lgpl&lt;br /&gt;
&lt;br /&gt;
Or a newer release (see above).  A newer release may have issues.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
You will probably need to use some options for configuring Qt.  Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed.  Run:&lt;br /&gt;
&lt;br /&gt;
  ./configure --help&lt;br /&gt;
&lt;br /&gt;
to see the options.  There are a lot of them, but the defaults work for most of them.&lt;br /&gt;
&lt;br /&gt;
Suggested configuration:&lt;br /&gt;
&lt;br /&gt;
::./configure -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -plugin-sql-sqlite -optimized-qmake -nomake demos -nomake examples -fast -dbus&lt;br /&gt;
&lt;br /&gt;
{change the include directory for mysql as needed}&lt;br /&gt;
&lt;br /&gt;
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:&lt;br /&gt;
&lt;br /&gt;
::-no-phonon&lt;br /&gt;
&lt;br /&gt;
to avoid having two versions of libraries with the same SO number.&lt;br /&gt;
&lt;br /&gt;
===QCA-2.0.2 (crypto add on for Qt)===&lt;br /&gt;
&lt;br /&gt;
Do not use the one in KDESupport or KDE's SVN.&lt;br /&gt;
&lt;br /&gt;
Download the current release of qca from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/&lt;br /&gt;
&lt;br /&gt;
and the plugins:&lt;br /&gt;
&lt;br /&gt;
::qca-cyrus-sasl&lt;br /&gt;
::qca-gnupg&lt;br /&gt;
::qca-ossl&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
&lt;br /&gt;
::http://delta.affinix.com/download/qca/2.0/plugins/&lt;br /&gt;
&lt;br /&gt;
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:&lt;br /&gt;
&lt;br /&gt;
::http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch&lt;br /&gt;
&lt;br /&gt;
===LibDBusMenu-Qt===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.5.0.  Appears to be optional for KDE-4.4.&lt;br /&gt;
&lt;br /&gt;
Get release &amp;gt;= 0.3.5 here:&lt;br /&gt;
&lt;br /&gt;
::https://launchpad.net/libdbusmenu-qt/+download&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency QJson here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qjson/files/&lt;br /&gt;
&lt;br /&gt;
===GMM===&lt;br /&gt;
&lt;br /&gt;
If you don't have Getfem++ installed, get the current release of GMM from:&lt;br /&gt;
&lt;br /&gt;
::http://home.gna.org/getfem/download.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Eigen2===&lt;br /&gt;
&lt;br /&gt;
Get the current 2.0.x release from:&lt;br /&gt;
&lt;br /&gt;
::http://eigen.tuxfamily.org&lt;br /&gt;
&lt;br /&gt;
===Java Development Kit===&lt;br /&gt;
&lt;br /&gt;
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.&lt;br /&gt;
&lt;br /&gt;
::http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;br /&gt;
&lt;br /&gt;
Remember to add the &amp;quot;bin&amp;quot; directory to your path and the &amp;quot;lib&amp;quot; directory to your &amp;quot;/etc/ld.so.conf&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
===Raptor, Rasqal, and Redland===&lt;br /&gt;
&lt;br /&gt;
Get the current releases of:&lt;br /&gt;
&lt;br /&gt;
::redland&lt;br /&gt;
::rasqal&lt;br /&gt;
::raptor2&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
::http://download.librdf.org/source/&lt;br /&gt;
&lt;br /&gt;
and the current release of the (optional) Redland dependency 3Store here:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/threestore/files/&lt;br /&gt;
&lt;br /&gt;
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.&lt;br /&gt;
&lt;br /&gt;
When building Redland, you might need to use:&lt;br /&gt;
&lt;br /&gt;
::--with-bdb=&lt;br /&gt;
&lt;br /&gt;
to point to your Berkeley DB directory.&lt;br /&gt;
&lt;br /&gt;
If Redland won't build against SQLite, be sure you have the current &amp;gt;= 3.7.3 installed:&lt;br /&gt;
&lt;br /&gt;
Install in this order:&lt;br /&gt;
&lt;br /&gt;
::Raptor&lt;br /&gt;
::Rasqal&lt;br /&gt;
::Redland&lt;br /&gt;
&lt;br /&gt;
===Virtuoso Open-Source===&lt;br /&gt;
&lt;br /&gt;
Only needed for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get virtuoso-opensource &amp;gt;= 6.1.1 here:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/virtuoso/&lt;br /&gt;
&lt;br /&gt;
If you have problems, use the direct link:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.1/virtuoso-opensource-6.1.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
and the current release of the dependency iODBC here:&lt;br /&gt;
&lt;br /&gt;
::http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads&lt;br /&gt;
&lt;br /&gt;
If building iODBC only for KDE, use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-gui&lt;br /&gt;
&lt;br /&gt;
For building Virtuoso, these configure parameters are useful:&lt;br /&gt;
&lt;br /&gt;
::--with-jdk4=&lt;br /&gt;
::--without-internal-zlib &lt;br /&gt;
::--with-pthreads &lt;br /&gt;
::--with-readline &lt;br /&gt;
::--with-iodbc=&lt;br /&gt;
&lt;br /&gt;
If building Virtuoso only for KDE, (to save disk space) use configure parameter:&lt;br /&gt;
&lt;br /&gt;
::--disable-all-vads&lt;br /&gt;
&lt;br /&gt;
===KDE Supporting dependencies===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport&lt;br /&gt;
&lt;br /&gt;
If you don't want to install all the small SVN icons:&lt;br /&gt;
&lt;br /&gt;
::cd kdesupport/oxygen-icons&lt;br /&gt;
::svn rm `find -name &amp;quot;small&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.6=====&lt;br /&gt;
&lt;br /&gt;
There is no KDESupport-4.6 so, you need to install these packages with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6 for the BRANCH.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX:PATH=/opt/KDE-4.6.x for a release.&lt;br /&gt;
&lt;br /&gt;
======Automoc4======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/automoc4/&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======Attica======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/attica&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Polkit-Qt-1======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin&lt;br /&gt;
&lt;br /&gt;
======Soprano======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/soprano/&lt;br /&gt;
&lt;br /&gt;
======Akonadi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::http://download.akonadi-project.org&lt;br /&gt;
&lt;br /&gt;
======Cagibi======&lt;br /&gt;
&lt;br /&gt;
Available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/cagibi&lt;br /&gt;
&lt;br /&gt;
======Strigi======&lt;br /&gt;
&lt;br /&gt;
Available from SourceForge:&lt;br /&gt;
&lt;br /&gt;
::http://downloads.sourceforge.net/strigi&lt;br /&gt;
&lt;br /&gt;
======QImageBlitz======&lt;br /&gt;
&lt;br /&gt;
Available from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/qimageblitz/files/qimageblitz&lt;br /&gt;
&lt;br /&gt;
=====KDE 4.4 &amp;amp; 4.5=====&lt;br /&gt;
&lt;br /&gt;
Use KDESupport:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does not include: Ontologies.  See below.&lt;br /&gt;
&lt;br /&gt;
=====BRANCH up to 4.3 or a release up to 4.3.x=====&lt;br /&gt;
&lt;br /&gt;
Use the KDESupport SVN tag that matches your KDE version.  E.G. for 4.3:&lt;br /&gt;
&lt;br /&gt;
::svn&amp;amp;nbsp;co&amp;amp;nbsp;svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport&lt;br /&gt;
&lt;br /&gt;
=====TagLib=====&lt;br /&gt;
&lt;br /&gt;
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version.  Remove it from KDESupport SVN:&lt;br /&gt;
&lt;br /&gt;
::svn rm taglib&lt;br /&gt;
&lt;br /&gt;
And install the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://developer.kde.org/~wheeler/taglib.html&lt;br /&gt;
&lt;br /&gt;
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:&lt;br /&gt;
&lt;br /&gt;
::HAVE_CXX=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
before you run: &amp;quot;configure&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====QCA=====&lt;br /&gt;
&lt;br /&gt;
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:&lt;br /&gt;
&lt;br /&gt;
::svn rm qca&lt;br /&gt;
&lt;br /&gt;
=====Phonon=====&lt;br /&gt;
&lt;br /&gt;
For KDE Support 4.5 and TRUNK:&lt;br /&gt;
&lt;br /&gt;
Do not use the version in KDE Support.  Remove if from KDE Support:&lt;br /&gt;
&lt;br /&gt;
::svn rm phonon&lt;br /&gt;
&lt;br /&gt;
See below&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The current KDESupport may not be compatible with LFS installed FFmpeg.  Use this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt&lt;br /&gt;
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146)&lt;br /&gt;
+++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy)&lt;br /&gt;
@@ -34,9 +34,3 @@&lt;br /&gt;
   target_link_libraries(xine ${XINE_LIBRARY})&lt;br /&gt;
 endif(XINE_FOUND)&lt;br /&gt;
 &lt;br /&gt;
-if(FFMPEG_FOUND)&lt;br /&gt;
-  include_directories(${FFMPEG_INCLUDE_DIRS})&lt;br /&gt;
-  ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp)&lt;br /&gt;
-  #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS &amp;quot;${FFMPEG_DEFINITIONS}&amp;quot; )&lt;br /&gt;
-  target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES})&lt;br /&gt;
-endif(FFMPEG_FOUND)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, use the FFmpeg snapshot on the CBLFS page:&lt;br /&gt;
&lt;br /&gt;
::http://cblfs.cross-lfs.org/index.php/FFmpeg&lt;br /&gt;
&lt;br /&gt;
This more recent snapshot requires: &amp;quot;libx264.so.83&amp;quot;.  The x264 snapshot on CBFLS is too old. This Source RPM worked:&lt;br /&gt;
&lt;br /&gt;
::x264-0.83.2245-1plf2010.1.src.rpm&lt;br /&gt;
&lt;br /&gt;
Google is your friend.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may need to add these parameters to the CMake command line:&lt;br /&gt;
&lt;br /&gt;
::-DENABLE_FAM:BOOL=ON&lt;br /&gt;
::-DENABLE_EXPAT:BOOL=ON&lt;br /&gt;
::-DENABLE_INOTIFY:BOOL=ON&lt;br /&gt;
::-DGAIM_LIBS:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
::-DGAMIN_LIBRARIES:STRING=&amp;lt;path&amp;gt;/lib&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
 &lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Ontologies===&lt;br /&gt;
&lt;br /&gt;
Required for KDE &amp;gt;= 4.4 and TRUNK.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK, you have the package.  Otherwise, get TRUNK here:&lt;br /&gt;
&lt;br /&gt;
::git clone git://oscaf.git.sourceforge.net/gitroot/oscaf/oscaf&lt;br /&gt;
 &lt;br /&gt;
Or the release from Source Forge:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/oscaf/files/shared-desktop-ontologies/&lt;br /&gt;
&lt;br /&gt;
and install with CMake with:&lt;br /&gt;
&lt;br /&gt;
:CMAKE_INSTALL_PREFIX:PATH=/usr&lt;br /&gt;
&lt;br /&gt;
===Phonon===&lt;br /&gt;
&lt;br /&gt;
=====TRUNK=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Phonon&amp;lt;/b&amp;gt; has been moved to &lt;br /&gt;
&lt;br /&gt;
::http://gitorious.org/phonon&lt;br /&gt;
&lt;br /&gt;
Get it with the command:&lt;br /&gt;
&lt;br /&gt;
::git clone git://gitorious.org/phonon/phonon.git&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.5=====&lt;br /&gt;
&lt;br /&gt;
The current release of Phonon is available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Also install back ends as needed.  You must install a back end -- either GStreamer or Xine for Linux.  They are available here:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-&amp;lt;name&amp;gt;/4.4.4/&amp;lt;version&amp;gt;/src&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;name&amp;gt; is one of:&lt;br /&gt;
&lt;br /&gt;
:directshow&lt;br /&gt;
:gstreamer&lt;br /&gt;
:vlc&lt;br /&gt;
:xine&lt;br /&gt;
&lt;br /&gt;
=====KDE-4.4=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;KDEBindings-4.4.x will not build against Phonon from the GIT repository.&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the version in KDESupport-4.4.&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
Install with:&lt;br /&gt;
&lt;br /&gt;
::CMAKE_INSTALL_PREFIX=$QTDIR &lt;br /&gt;
&lt;br /&gt;
and the rest of the CMake parameters the same as KDESupport or Supporting dependencies.&lt;br /&gt;
&lt;br /&gt;
===PolKit-KDE-1===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====KDE &amp;gt;= 4.4 and TRUNK=====&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&lt;br /&gt;
::ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-1-0.95.1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=====Build=====&lt;br /&gt;
&lt;br /&gt;
The 0.95.1 tarball from the KDE FTP site will not install correctly.  You need to apply this patch:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt&lt;br /&gt;
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt	2009-12-23 04:31:29.000000000 -0700&lt;br /&gt;
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt	2010-03-25 15:54:12.000000000 -0700&lt;br /&gt;
@@ -11,7 +11,7 @@&lt;br /&gt;
 &lt;br /&gt;
 target_link_libraries(polkit-kde-authentication-agent-1&lt;br /&gt;
                                          ${KDE4_KDEUI_LIBS}&lt;br /&gt;
-                                         ${POLKITQT-1_AGENT_LIBRARY}&lt;br /&gt;
+                                         ${POLKITQT-1_LIBRARIES} &lt;br /&gt;
 )&lt;br /&gt;
 &lt;br /&gt;
 configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)&lt;br /&gt;
@@ -25,4 +25,4 @@&lt;br /&gt;
   set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)&lt;br /&gt;
 endif (DESKTOP_INSTALL_DIR)&lt;br /&gt;
 &lt;br /&gt;
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR})&lt;br /&gt;
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------8&amp;lt;------&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must build with the same CMake parameters as the KDE-4 modules; specifically:&lt;br /&gt;
&lt;br /&gt;
::-DCMAKE_INSTALL_PREFIX:PATH=/opt/KDE-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DSYSCONF_INSTALL_DIR=/etc/kde-&amp;lt;version&amp;gt;&lt;br /&gt;
::-DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy&lt;br /&gt;
&lt;br /&gt;
===shared-mime-info===&lt;br /&gt;
&lt;br /&gt;
You should have this installed with a prefix: &amp;quot;/usr&amp;quot;.  All you need to do is build KDE-4 with:&lt;br /&gt;
&lt;br /&gt;
::-DUPDATE_MIME_DATABASE_EXECUTABLE:FILEPATH=/usr/bin/update-mime-database&lt;br /&gt;
&lt;br /&gt;
However there appears to be a problem for KDE &amp;lt; 4.5&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://www.freedesktop.org/wiki/Software/shared-mime-info&lt;br /&gt;
&lt;br /&gt;
You need to install this with the same prefix as KDE4 (even if you already have it installed in &amp;quot;/usr&amp;quot;) to eliminate missing MIME type errors.  Currently, KDELibs won't build unless you do this.  And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.&lt;br /&gt;
&lt;br /&gt;
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.&lt;br /&gt;
&lt;br /&gt;
===KIPI Plugins===&lt;br /&gt;
&lt;br /&gt;
Get the current release from:&lt;br /&gt;
&lt;br /&gt;
::http://sourceforge.net/projects/kipi/&lt;br /&gt;
&lt;br /&gt;
This package is dependent on KDEGraphics.  The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built.  You should install it in the same directory where you installed KDE-4.x.y.&lt;br /&gt;
&lt;br /&gt;
Be sure that you updated your: &amp;quot;PKG_CONFIG_PATH&amp;quot; to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):&lt;br /&gt;
&lt;br /&gt;
::/opt/KDE-4/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Oxygen Icons===&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from TRUNK or the TAG: &amp;quot;kdesupport-for-&amp;lt;version&amp;gt;&amp;quot;, you have them.&lt;br /&gt;
&lt;br /&gt;
If you checked out KDESupport from a tag &amp;quot;kdesupport-&amp;lt;version&amp;gt;&amp;quot; up to 4.3 or didn't use KDESupport, you need to get them.  If you are using SVN, that would be:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/tags/KDE/&amp;lt;version&amp;gt;/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
{where &amp;lt;version&amp;gt; is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}  &lt;br /&gt;
&lt;br /&gt;
Or, you can simply use TRUNK:&lt;br /&gt;
&lt;br /&gt;
::svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupportsvn/oxygen-icons&lt;br /&gt;
&lt;br /&gt;
===LibSSH===&lt;br /&gt;
&lt;br /&gt;
TRUNK and KDE-4.4 require libssh.  Get the current release &amp;gt;= 0.4.0 from:&lt;br /&gt;
&lt;br /&gt;
::http://www.libssh.org/&lt;br /&gt;
&lt;br /&gt;
===Dependencies for specific KDE modules===&lt;br /&gt;
&lt;br /&gt;
====KDEBindings====&lt;br /&gt;
&lt;br /&gt;
=====SIP and PyQt=====&lt;br /&gt;
&lt;br /&gt;
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/sip/download&lt;br /&gt;
::http://www.riverbankcomputing.com/software/pyqt/download&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;SIP&amp;quot; first and then: &amp;quot;PyQt&amp;quot;.  These are both Python add-ons so they install with:&lt;br /&gt;
&lt;br /&gt;
::python configure.py&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
=====Build Notes for PyQt=====&lt;br /&gt;
&lt;br /&gt;
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings.  If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.&lt;br /&gt;
&lt;br /&gt;
PyQt will find Qt based on your environment variables.  So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:&lt;br /&gt;
&lt;br /&gt;
::QTDIR&lt;br /&gt;
::QT_PLUGIN_PATH&lt;br /&gt;
&lt;br /&gt;
KDEBindings is dependent on KDEGraphics (specifically Okular).&lt;br /&gt;
&lt;br /&gt;
Other language dependencies are optional.  If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.&lt;br /&gt;
&lt;br /&gt;
=====QScintilla2=====&lt;br /&gt;
&lt;br /&gt;
QScintilla2 is optional.  If you are installing it, get it here:&lt;br /&gt;
&lt;br /&gt;
::http://www.riverbankcomputing.com/software/qscintilla/download&lt;br /&gt;
&lt;br /&gt;
Install it after SIP &amp;amp; PyQt.  It has a Qt build system, so install for Qt4 it with:&lt;br /&gt;
&lt;br /&gt;
::cd Qt4&lt;br /&gt;
::qmake qscintilla.pro&lt;br /&gt;
::make&lt;br /&gt;
::make install&lt;br /&gt;
&lt;br /&gt;
====KDEEdu====&lt;br /&gt;
&lt;br /&gt;
KDEEdu might be dependent on KDEBindings.&lt;br /&gt;
&lt;br /&gt;
====KDENetwork====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;v4l-utils and Libv4l&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only required for KDE &amp;gt;= 4.4 and TRUNK&lt;br /&gt;
&lt;br /&gt;
Get the current release here:&lt;br /&gt;
&lt;br /&gt;
::http://freecode.com/projects/libv4l&lt;br /&gt;
&lt;br /&gt;
and follow the build instructions in the INSTALL file.&lt;br /&gt;
&lt;br /&gt;
=====Optional Dependencies=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Telepathy-Qt4&amp;lt;/b&amp;gt; is the Qt bindings for Telepathy.  Since this has general usage, you should probably install it along with its semi-optional dependency &amp;lt;b&amp;gt;telepathy-glib&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Get the current releases here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-glib/&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/telepathy-qt4/&lt;br /&gt;
&lt;br /&gt;
Install: &amp;quot;telepathy-glib&amp;quot; first and then: 'telepathy-qt4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The output from CMake lists several other optional dependencies.  It appears that these are needed to support specific functions in KDENetwork.  So, if you need those functions, you need to install them.  You will probably also need to install the corresponding Telepathy addons from here:&lt;br /&gt;
&lt;br /&gt;
::http://telepathy.freedesktop.org/releases/&lt;br /&gt;
&lt;br /&gt;
TO DO: more information needed.&lt;/div&gt;</summary>
		<author><name>JRT</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch</id>
		<title>Getting Started/Build/Distributions/Linux From Scratch</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/Getting_Started/Build/Distributions/Linux_From_Scratch"/>
				<updated>2012-04-07T09:51:28Z</updated>
		
		<summary type="html">&lt;p&gt;JRT: /* KDE &amp;gt;= 4.4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:I18n/Language Navigation Bar|Getting_Started/Build/Distributions/LFS}}&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 (Linux From Scratch requirements)|&lt;br /&gt;
&lt;br /&gt;
pre=[[Getting_Started/Build|Build KDE]], [[Getting_Started/Tutorials/D-Bus/Configuration|D-Bus Configuration]]|&lt;br /&gt;
next=[[Getting_Started/Build|Build KDE]]|&lt;br /&gt;
&lt;br /&gt;
reading=[[Development/Tutorials/CMake |Introduction to CMake]]|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== CMake ==&lt;br /&gt;
&lt;br /&gt;
KDE-4 and some supporting libraries use CMake.&lt;br /&gt;
&lt;br /&gt;
Install the latest version from cmake.org&lt;br /&gt;
&lt;br /&gt;
== Library Requirements ==&lt;br /&gt;
&lt;br /&gt;
===General dependencies===&lt;br /&gt;
&lt;br /&gt;
KDE-4 requires a lot of the same general purpose libraries as KDE-3.&lt;br /&gt;
&lt;br /&gt;
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.&lt;br /&gt;
&lt;br /&gt;
===DBus and HAL===&lt;br /&gt;
&lt;br /&gt;
A system should have these installed:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;b&amp;gt;DBus&lt;br /&gt;
::DBus-Glib&lt;br /&gt;
::HAL&lt;br /&gt;
::HAL-Info&lt;br /&gt;
::PolicyKit-0.9&lt;br /&gt;
::EggDBus&lt;br /&gt;
::polkit&lt;br /&gt;
::ConsoleKit&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(and properly configur