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

Jump to: navigation, search
(kdebase is no more, replace with "kde-baseapps kde-workspace kde-runtime")
(31 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4/Fedora}}
+
 
  
 
{{TutorialBrowser|
 
{{TutorialBrowser|
Line 7: Line 7:
 
name=Building KDE4 From Source (Fedora Linux requirements)|
 
name=Building KDE4 From Source (Fedora Linux requirements)|
  
pre=[[Getting_Started/Build/KDE4|Build KDE 4]]|
+
pre=[[Getting_Started/Build|Build KDE]]|
  
next=[[Getting_Started/Build/KDE4|Build KDE 4]]|
+
next=[[Getting_Started/Build|Build KDE]]|
  
reading=[[../kdesvn-build|kdesvn-build: The KDE From Subversion Build Tool]]<br>[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]<br>[[Development/Tutorials/CMake |Introduction to CMake]]|
+
reading=[[Getting_Started/Build/kdesvn-build|kdesvn-build: The KDE From Subversion Build Tool]]<br>[[Getting_Started/Build/Environment|KDE Build Environment including useful scripts]]<br>[[Development/Tutorials/CMake |Introduction to CMake]]|
 
}}
 
}}
  
  
Some of the required packages for building KDE4 on Fedora 7 or higher:
+
== Toolchain ==
  
<code bash>
+
Install basic toolchain:
yum install clucene-core-devel libxml-devel libxslt-devel \
+
dbus-devel boost-devel bzip2-devel openssl-devel alsa-lib-devel \
+
redland-devel rasqal-devel raptor-devel hspell-devel aspell-devel \
+
cups-devel xine-lib-devel avahi-devel gamin-devel OpenEXR-devel \
+
enchant-devel jasper-devel ilmbase-devel pcre-devel gpgme-devel \
+
libxklavier-devel glib-devel libusb-devel libsmbclient-devel \
+
libxcb-devel NetworkManager-devel lm_sensors-devel libraw1394-devel \
+
bluez-libs-devel gcc-c++ libXext-devel cmake make subversion giflib-devel \
+
libpng-devel libXdamage-devel libXcomposite-devel libXrender-devel \
+
fontconfig-devel libXft-devel libXcursor-devel libXfixes-devel \
+
ruby-devel libXScrnSaver-devel libkdcraw-devel exiv2-devel \
+
lcms-devel libtiff-devel sqlite-devel libxkbfile-devel \
+
imlib2-devel patch gstreamer-plugins-base-devel
+
</code>
+
  
Some optional packages for koffice support:
+
<syntaxhighlight lang="bash">
<code bash>
+
yum groupinstall 'Development Tools'
yum install qca2-devel gsl-devel freeglut-devel \
+
</syntaxhighlight>
GraphicsMagick-c++-devel GraphicsMagick-devel
+
</code>
+
  
This includes installation of D-Bus and CMake -- you can skip steps 5 and 6.
+
<syntaxhighlight lang="bash">
 +
yum install subversion cmake
 +
</syntaxhighlight>
  
DCH-10/15/07: Note - It may be simpler to spin RPMs. Note that you can edit the variables in /etc/rpm/macros.kde4 (which is provided by Rawhide kde-filesystem).
+
Install the yum-utils package to get yum-builddep:
 +
<syntaxhighlight lang="bash">
 +
yum install yum-utils
 +
</syntaxhighlight>
  
The build stage then looks like:
+
On Fedora 16 [[../../kdesrc-build|kdesrc-build]] will complain about qmake being missing. It is located at /usr/bin/qmake-qt4. Simply create a symbolic for qmake:
(but in what directory?)
+
%build
+
  
mkdir -p %{_target_platform}
+
<syntaxhighlight lang="bash">
 +
ln -s qmake-qt4 /usr/bin/qmake
 +
</syntaxhighlight>
  
pushd %{_target_platform}
+
== Basic functional desktop ==
 +
<syntaxhighlight lang="bash">
 +
yum-builddep kdelibs kde-baseapps kde-workspace kde-runtime akonadi soprano polkit-qt strigi
 +
</syntaxhighlight>
  
%{cmake_kde4} ..
+
== Full-optionals desktop ==
 +
<syntaxhighlight lang="bash">
 +
yum-builddep kdeaccessibility kdeadmin kdeartwork \
 +
    kde-baseapps kde-workspace kde-runtime \
 +
    kdebindings kdeedu kdegames kdegraphics \
 +
    kdelibs kdemultimedia kdenetwork kdepim \
 +
    kdepimlibs kdeplasma-addons kdesdk kdetoys \
 +
    kdeutils akonadi soprano polkit-qt strigi
 +
</syntaxhighlight>
  
popd
+
== KOffice ==
  
make %{?_smp_mflags} -C %{_target_platform}
+
{{Warning|Fedora 12 (and less) still ship with KOffice 1.6.<br/><br/>
 +
yum-builddep will install dependencies for the KDE 3 version.}}
  
I have had better results with creating a kdesupport rpm which means that you should not install the soprano and strigi rpms. YMMV
+
<syntaxhighlight lang="bash">
 +
yum-builddep koffice-suite
 +
</syntaxhighlight>
  
telsh: On a Fedora 8 System I had to install "qt4-devel" too to have qmake.
+
== Documentation ==
 
+
It generally requires the following tools installed:
 
+
<syntaxhighlight lang="bash">
{{TODO| Audit this and organize by module.
+
yum install doxygen graphviz qt-doc
}}
+
</syntaxhighlight>
  
 +
== Module prerequisites ==
 +
To install prerequisites just run
 +
<syntaxhighlight lang="bash">
 +
yum-builddep module-name
 +
</syntaxhighlight>
  
Return to [[Getting_Started/Build/KDE4#HAL|building KDE 4]].
+
Where "module-name" is the name of the module you want to install

Revision as of 18:16, 28 October 2012


Building KDE4 From Source (Fedora Linux requirements)
Tutorial Series   Getting Started
Previous   Build KDE
What's Next   Build KDE
Further Reading   kdesvn-build: The KDE From Subversion Build Tool
KDE Build Environment including useful scripts
Introduction to CMake


Contents

Toolchain

Install basic toolchain:

yum groupinstall 'Development Tools'
yum install subversion cmake

Install the yum-utils package to get yum-builddep:

yum install yum-utils

On Fedora 16 kdesrc-build will complain about qmake being missing. It is located at /usr/bin/qmake-qt4. Simply create a symbolic for qmake:

ln -s qmake-qt4 /usr/bin/qmake

Basic functional desktop

yum-builddep kdelibs kde-baseapps kde-workspace kde-runtime akonadi soprano polkit-qt strigi

Full-optionals desktop

yum-builddep kdeaccessibility kdeadmin kdeartwork \
    kde-baseapps kde-workspace kde-runtime \
    kdebindings kdeedu kdegames kdegraphics \
    kdelibs kdemultimedia kdenetwork kdepim \
    kdepimlibs kdeplasma-addons kdesdk kdetoys \
    kdeutils akonadi soprano polkit-qt strigi

KOffice

noframe
 
Warning
Fedora 12 (and less) still ship with KOffice 1.6.

yum-builddep will install dependencies for the KDE 3 version.


yum-builddep koffice-suite

Documentation

It generally requires the following tools installed:

yum install doxygen graphviz qt-doc

Module prerequisites

To install prerequisites just run

yum-builddep module-name

Where "module-name" is the name of the module you want to install


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