Getting Started/Build/Distributions/Gentoo

Jump to: navigation, search


Getting_Started/Build/KDE4/Gentoo

Gentoo requirements

Install via portage

The latest information about kde4 in gentoo can be found on http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml

To install kde type as root:

emerge -avD kde-base/kde-meta
</code>
 
==== Install by hand ====
 
You can use stable ebuilds just remember to sync your portage before you begin.
 
Remember: All commands are executed as root.
 
Required:
 
<syntaxhighlight lang="bash">
echo 'x11-libs/qt accessibility' >> /etc/portage/package.use
</code>
 
These are the packages you will need to emerge, I included the update option into the emerge command so you will not re-emerge anything that you might already have installed.
 
<syntaxhighlight lang="bash">
emerge -avu \
  'sys-devel/gcc' \
  'dev-util/subversion' \
  'dev-util/pkgconfig'  \
  'x11-base/xorg-x11' \
  'virtual/glut' \
  'media-libs/mesa' \
  'media-libs/jpeg' \
  'media-libs/libpng' \
  'media-libs/giflib' \
  'dev-cpp/clucene' \
  'dev-libs/libxml2' \
  'dev-libs/libxslt' \
  'x11-misc/shared-mime-info' \
  'dev-libs/boost' \
  'dev-util/cmake' \
  'dev-libs/redland' \
  'sys-apps/dbus' \
  'media-libs/xine-lib' \
  'app-doc/doxygen' \
  'media-libs/libcanberra' \
  'x11-libs/qt' \
  'x11-libs/qt-dbus'
</code>
 
You will also need to emerge either 'kde-base/kdesdk' or kde-base/kdesdk-scripts'.
 
If you emerged DBUS, CMAKE, QT or HAL you may skip those sections respectively.
Good luck!
 
Further dependencies are strigi, autmoc, akonado qimageblitz.and soprano. These packages can be found in the kdesupport module that is located in the kde svn repositories: svn://anonsvn.kde.org/home/kde/trunk/kdesupport. Since the module is pretty large and contains tons of things that you are probably not interested in, it is suggested that you selectively download the packages mentioned above:
 
===== The Recipe for Strigi =====
<syntaxhighlight lang="bash">
cd 
cs # [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|'cs' is a bash function, click here to learn more]]
 mkdir kdesupport && cd kdesupport # here we create the kdesupport folder that is also needed by the subsequent recipes
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi
cd strigi
cmakekde
</code>
===== The Recipe for Automoc =====
<syntaxhighlight lang="bash">
cd 
cs
cd kdesupport
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/automoc
cd automoc
cmakekde
</code>
===== The Recipe for Akonadi =====
<syntaxhighlight lang="bash">
cd 
cs
cd kdesupport
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/akonadi
cd akonadi
cmakekde
</code>
===== The Recipe for Qimageblitz =====
<syntaxhighlight lang="bash">
cd 
cs
cd kdesupport
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/qimageblitz
cd qimageblitz
cmakekde
</code>
===== The Recipe for Soprano =====
<syntaxhighlight lang="bash">
cd 
cs
cd kdesupport
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/soprano
cd soprano
cmakekde
</code>
===== The Recipe for Phonon =====
<syntaxhighlight lang="bash">
cd 
cs
cd kdesupport
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/phonon
cd phonon
cmakekde
</code>

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