[153a5795] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY plasma5-download-http "http://download.kde.org/stable/plasma5/&plasma5-version;">
|
---|
| 8 | <!ENTITY plasma5-download-ftp " ">
|
---|
| 9 | <!ENTITY plasma5-md5sum "See Below">
|
---|
[69a9de5] | 10 | <!ENTITY plasma5-size "?? MB">
|
---|
| 11 | <!ENTITY plasma5-buildsize "?? GB">
|
---|
| 12 | <!ENTITY plasma5-time "?? SBU">
|
---|
[153a5795] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
|
---|
| 16 | <?dbhtml filename="plasma-all.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy: bdubbs $</othername>
|
---|
| 20 | <date>$Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Building Plasma 5</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="plasma5-build">
|
---|
| 26 | <primary sortas="a-kf5">KDE Plasma 5</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <para>KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
---|
| 30 | 5 and QML derived from the monolithic KDE 4 desktop. They implement the KDE
|
---|
| 31 | Display Environment (Plasma 5).</para>
|
---|
| 32 |
|
---|
[69a9de5] | 33 | <warning>
|
---|
| 34 |
|
---|
| 35 | <para>The procedures below build properly, but Plasma crashes when starting
|
---|
| 36 | on some systems. Build this only if you want to do some extensive
|
---|
| 37 | C++ debugging.</para>
|
---|
| 38 |
|
---|
| 39 | <para>Additionally there are several packages not yet in the book
|
---|
[b8deeb6] | 40 | and mesa will need to be rebuilt with different settings. New packages are
|
---|
[69a9de5] | 41 | wayland, xcb-util-cursor, libxkbcommon, lmdb, and libinput.</para>
|
---|
| 42 |
|
---|
| 43 | <para>This page is a placeholder until the appropriate procedures can be
|
---|
| 44 | placed formally into the book.</para>
|
---|
| 45 |
|
---|
| 46 | </warning>
|
---|
| 47 |
|
---|
| 48 | <!--&lfs78_checked;-->
|
---|
[153a5795] | 49 |
|
---|
| 50 | <para>The instructions below build all of the Plasma 5 packages in one
|
---|
| 51 | step by using a bash script. </para>
|
---|
| 52 |
|
---|
| 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download MD5 sum: &plasma5-md5sum;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Download size: &plasma5-size;</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Estimated disk space required: &plasma5-buildsize;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Estimated build time: &plasma5-time;</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 78 | <para role="required">
|
---|
| 79 | <xref linkend="kf5-frameworks"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[69a9de5] | 82 |
|
---|
[153a5795] | 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 84 | <para role="recommended">
|
---|
[69a9de5] | 85 | <!--<xref linkend="avahi"/> (DNS-SD backend for KDNSSD),-->
|
---|
| 86 | To be determined.
|
---|
[153a5795] | 87 | </para>
|
---|
[69a9de5] | 88 | <!--
|
---|
[153a5795] | 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 90 | <para role="optional">
|
---|
| 91 | <xref linkend="bluez"/> (needed to build Bluez-Qt),
|
---|
| 92 | <xref linkend="NetworkManager"/> (needed to build NetworkManager-Qt),
|
---|
| 93 | <ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink> (needed to build ModemManager-Qt)
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Runtime dependency for FrameworkIntegration</bridgehead>
|
---|
| 97 | <para role="optional">
|
---|
| 98 | <ulink url="http://download.kde.org/stable/plasma/5.2.0">oxygen-fonts</ulink>
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Runtime dependencies for kapidox</bridgehead>
|
---|
| 102 | <para role="optional">
|
---|
| 103 | <xref linkend="doxygen"/>,
|
---|
| 104 | <ulink url="https://pypi.python.org/packages/source/J/Jinja2/">Jinja2</ulink>, and
|
---|
| 105 | <ulink url="http://pyyaml.org/">PyYAML</ulink>
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <bridgehead renderas="sect4">Additional image formats support in KImageFormats</bridgehead>
|
---|
| 109 | <para role="optional">
|
---|
| 110 | <xref linkend="jasper"/> and
|
---|
| 111 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <bridgehead renderas="sect4">Optional dependencies for KIO</bridgehead>
|
---|
| 115 | <para role="optional">
|
---|
| 116 | <xref linkend="mitkrb"/>
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <bridgehead renderas="sect4">Optional dependencies for ModemManager-QT</bridgehead>
|
---|
| 120 | <para role="optional">
|
---|
| 121 | <ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink>
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <bridgehead renderas="sect4">Optional dependencies for Solid</bridgehead>
|
---|
| 125 | <para role="optional">
|
---|
| 126 | <xref linkend="udisks2"/>,
|
---|
| 127 | <xref linkend="upower"/> and
|
---|
| 128 | <ulink url="http://www.freedesktop.org/software/media-player-info/">media-player-info</ulink> (runtime)
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <bridgehead renderas="sect4">Optional dictionary backends for Sonnet</bridgehead>
|
---|
| 132 | <para role="optional">
|
---|
| 133 | <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink> and
|
---|
| 134 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>
|
---|
| 135 | </para>
|
---|
| 136 | -->
|
---|
| 137 | <para condition="html" role="usernotes">User Notes:
|
---|
| 138 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 139 |
|
---|
| 140 | <sect2>
|
---|
| 141 | <title>Downloading KDE Frameworks</title>
|
---|
| 142 |
|
---|
| 143 | <para>
|
---|
| 144 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 145 | <command>wget</command> to fetch them all at once:
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
| 149 | wget -r -nH --cut-dirs=3 -A '*.xz' -np $url
|
---|
| 150 | <literal>
|
---|
| 151 | The options used here are:
|
---|
| 152 | -r recurse through child directories
|
---|
| 153 | -nH disable generation of host-prefixed directories
|
---|
| 154 | --cut-dirs=3 remove three levels of directories when saving
|
---|
| 155 | -A '*.xz' just get the *.xz files
|
---|
| 156 | -np don't get parent directories</literal></userinput></screen>
|
---|
| 157 |
|
---|
| 158 | </sect2>
|
---|
| 159 |
|
---|
| 160 | <sect2>
|
---|
| 161 | <title>Setting Package Order</title>
|
---|
| 162 |
|
---|
| 163 | <para>
|
---|
| 164 | The order of building files is important due to internal dependencies.
|
---|
| 165 | Create the list of files in the proper order as follows:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[69a9de5] | 168 | <screen><userinput>cat > plasma-&kf5-version;.md5 << "EOF"
|
---|
| 169 | <literal>cfff87d002b42b2487b522f94f157cb7 kwayland-5.4.1.tar.xz
|
---|
| 170 | bc8fd24c6ecd0948fc5adb3bda096f88 libkscreen-5.4.1.tar.xz
|
---|
| 171 | c48b9030d7f5e86dc1f07091c3695758 libksysguard-5.4.1.tar.xz
|
---|
| 172 | bd5a8def665759beab8170acd80ca53f breeze-5.4.1.tar.xz
|
---|
| 173 | 91e85616bd899d2a610311b2ca1de622 kwin-5.4.1.tar.xz
|
---|
| 174 | a56031b9600712eabcc0f6baeb8a2947 oxygen-5.4.1.tar.xz
|
---|
| 175 | 88522f2478fdff511e02102861dab620 oxygen-fonts-5.4.1.tar.xz
|
---|
| 176 | 99df60a8b2cc2b5c0f924a7c36cd9ad3 khelpcenter-5.4.1.tar.xz
|
---|
| 177 | 2aab5a329f2b4b196cd3e130bdf00bc6 kinfocenter-5.4.1.tar.xz
|
---|
| 178 | 68a6ffc478a63002cb183e64d1630d80 ksysguard-5.4.1.tar.xz
|
---|
| 179 | 2701f56228b6b45155b35a98a4a25df7 systemsettings-5.4.1.tar.xz
|
---|
| 180 | 0675ac84f739218cd1a17cfdc3d91e22 plasma-workspace-5.4.1.tar.xz
|
---|
| 181 | 33eb66bcec1c7f27b1a6a7629042de8e bluedevil-5.4.1.tar.xz
|
---|
| 182 | 56a3a65f21fe1b78c409129dfdc48d9e khotkeys-5.4.1.tar.xz
|
---|
| 183 | 5533875aea1883ce0d59cd72f1b05c24 kmenuedit-5.4.1.tar.xz
|
---|
| 184 | 2d656cd96b0910129890973c4ee01d01 kscreen-5.4.1.tar.xz
|
---|
| 185 | 6064bd41f2a7cdbe97a5be84e1a87fe3 kwrited-5.4.1.tar.xz
|
---|
| 186 | 030248d066c81093a954de64e51d31bf milou-5.4.1.tar.xz
|
---|
| 187 | 528b5d70f64450a7d6e31f55dde2b155 plasma-nm-5.4.1.tar.xz
|
---|
| 188 | ff82dd9fdbaaf96a25f6a23f96bce5f7 plasma-workspace-wallpapers-5.4.1.tar.xz
|
---|
| 189 | 0e27d8c01b108aa709a130466bc56a9a polkit-kde-agent-1-5.4.1.tar.xz
|
---|
| 190 | cb6b2663a3fdac63561b87a340aa91df powerdevil-5.4.1.tar.xz
|
---|
| 191 | 823180ad53fafca7a6be56ab3f9ec2df plasma-desktop-5.4.1.tar.xz
|
---|
| 192 | d91c7633eca6bad228003a168d6789b1 kdeplasma-addons-5.4.1.tar.xz
|
---|
| 193 | 161710cb26d5fb123be4062656124934 kwayland-integration-5.4.1.tar.xz</literal>
|
---|
[153a5795] | 194 | EOF</userinput></screen>
|
---|
| 195 |
|
---|
| 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | <sect2 role="installation">
|
---|
| 199 | <title>Installation of Plasma5</title>
|
---|
| 200 |
|
---|
| 201 | &as_root;
|
---|
| 202 |
|
---|
| 203 | <para>
|
---|
| 204 | First, start a subshell that will exit on error:
|
---|
| 205 | </para>
|
---|
| 206 |
|
---|
| 207 |
|
---|
| 208 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 209 |
|
---|
| 210 | <para>
|
---|
| 211 | Install all of the packages by running the following
|
---|
| 212 | commands:
|
---|
| 213 | </para>
|
---|
| 214 |
|
---|
| 215 | <screen><userinput>while read -r line; do
|
---|
| 216 |
|
---|
| 217 | # Get the file name, ignoring comments and blank lines
|
---|
| 218 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 219 | file=$(echo $line | cut -d" " -f2)
|
---|
| 220 |
|
---|
| 221 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 222 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 223 |
|
---|
| 224 | tar -xf $file
|
---|
| 225 | pushd $packagedir
|
---|
| 226 |
|
---|
[69a9de5] | 227 | mkdir build
|
---|
| 228 | cd build
|
---|
[153a5795] | 229 |
|
---|
[69a9de5] | 230 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 231 | -DCMAKE_BUILD_TYPE=Debug \
|
---|
| 232 | -DLIB_INSTALL_DIR=lib \
|
---|
| 233 | -DBUILD_TESTING=OFF \
|
---|
| 234 | -DQML_INSTALL_DIR=lib/qt5/qml \
|
---|
| 235 | -DQT_PLUGIN_INSTALL_DIR=lib/qt5/plugins \
|
---|
| 236 | -DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/qt5/mkspecs/modules \
|
---|
| 237 | -DOXYGEN_FONT_INSTALL_DIR=/usr/share/fonts/truetype/oxygen \
|
---|
| 238 | -Wno-dev .. &&
|
---|
[153a5795] | 239 |
|
---|
[69a9de5] | 240 | make
|
---|
| 241 | as_root make install
|
---|
| 242 | popd
|
---|
[153a5795] | 243 |
|
---|
[69a9de5] | 244 | rm -rf $packagedir
|
---|
| 245 | as_root /sbin/ldconfig
|
---|
| 246 |
|
---|
| 247 | done < plasma-&kf5-version;.md5
|
---|
[153a5795] | 248 |
|
---|
| 249 | exit</userinput></screen>
|
---|
| 250 |
|
---|
| 251 |
|
---|
| 252 | </sect2>
|
---|
| 253 |
|
---|
| 254 | <sect2 role="commands">
|
---|
| 255 | <title>Command Explanations</title>
|
---|
| 256 |
|
---|
| 257 | <para>
|
---|
[69a9de5] | 258 | Deferred.
|
---|
[153a5795] | 259 | </para>
|
---|
| 260 |
|
---|
| 261 | </sect2>
|
---|
| 262 | <sect2 role="content">
|
---|
| 263 | <title>Contents</title>
|
---|
| 264 |
|
---|
| 265 | <segmentedlist>
|
---|
| 266 | <segtitle>Installed Programs</segtitle>
|
---|
| 267 | <segtitle>Installed Libraries</segtitle>
|
---|
| 268 | <segtitle>Installed Directories</segtitle>
|
---|
| 269 |
|
---|
| 270 | <seglistitem>
|
---|
| 271 | <seg>
|
---|
[69a9de5] | 272 | Deferred
|
---|
[153a5795] | 273 | </seg>
|
---|
| 274 | <seg>
|
---|
[69a9de5] | 275 | Deferred
|
---|
[153a5795] | 276 | </seg>
|
---|
| 277 | <seg>
|
---|
[69a9de5] | 278 | Deferred
|
---|
[153a5795] | 279 | </seg>
|
---|
| 280 | </seglistitem>
|
---|
| 281 | </segmentedlist>
|
---|
| 282 |
|
---|
| 283 | </sect2>
|
---|
| 284 |
|
---|
| 285 | </sect1>
|
---|
| 286 |
|
---|