[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>
|
---|
[f97d5f6] | 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>
|
---|
[f97d5f6] | 47 | -->
|
---|
[69a9de5] | 48 | <!--&lfs78_checked;-->
|
---|
[153a5795] | 49 |
|
---|
| 50 | <para>The instructions below build all of the Plasma 5 packages in one
|
---|
[f97d5f6] | 51 | step by using a bash script.</para>
|
---|
[153a5795] | 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">
|
---|
[f97d5f6] | 79 | <xref linkend="kf5-frameworks"/>,
|
---|
| 80 | <xref linkend="libinput"/>,
|
---|
| 81 | <xref linkend="libpwquality"/>, and
|
---|
| 82 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>
|
---|
[153a5795] | 83 | </para>
|
---|
| 84 |
|
---|
[69a9de5] | 85 |
|
---|
[153a5795] | 86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 87 | <para role="recommended">
|
---|
[69a9de5] | 88 | <!--<xref linkend="avahi"/> (DNS-SD backend for KDNSSD),-->
|
---|
| 89 | To be determined.
|
---|
[153a5795] | 90 | </para>
|
---|
[69a9de5] | 91 | <!--
|
---|
[153a5795] | 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 93 | <para role="optional">
|
---|
| 94 | <xref linkend="bluez"/> (needed to build Bluez-Qt),
|
---|
| 95 | <xref linkend="NetworkManager"/> (needed to build NetworkManager-Qt),
|
---|
| 96 | <ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink> (needed to build ModemManager-Qt)
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <bridgehead renderas="sect4">Runtime dependency for FrameworkIntegration</bridgehead>
|
---|
| 100 | <para role="optional">
|
---|
| 101 | <ulink url="http://download.kde.org/stable/plasma/5.2.0">oxygen-fonts</ulink>
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <bridgehead renderas="sect4">Runtime dependencies for kapidox</bridgehead>
|
---|
| 105 | <para role="optional">
|
---|
| 106 | <xref linkend="doxygen"/>,
|
---|
| 107 | <ulink url="https://pypi.python.org/packages/source/J/Jinja2/">Jinja2</ulink>, and
|
---|
| 108 | <ulink url="http://pyyaml.org/">PyYAML</ulink>
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <bridgehead renderas="sect4">Additional image formats support in KImageFormats</bridgehead>
|
---|
| 112 | <para role="optional">
|
---|
| 113 | <xref linkend="jasper"/> and
|
---|
| 114 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <bridgehead renderas="sect4">Optional dependencies for KIO</bridgehead>
|
---|
| 118 | <para role="optional">
|
---|
| 119 | <xref linkend="mitkrb"/>
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <bridgehead renderas="sect4">Optional dependencies for ModemManager-QT</bridgehead>
|
---|
| 123 | <para role="optional">
|
---|
| 124 | <ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink>
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <bridgehead renderas="sect4">Optional dependencies for Solid</bridgehead>
|
---|
| 128 | <para role="optional">
|
---|
| 129 | <xref linkend="udisks2"/>,
|
---|
| 130 | <xref linkend="upower"/> and
|
---|
| 131 | <ulink url="http://www.freedesktop.org/software/media-player-info/">media-player-info</ulink> (runtime)
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <bridgehead renderas="sect4">Optional dictionary backends for Sonnet</bridgehead>
|
---|
| 135 | <para role="optional">
|
---|
| 136 | <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink> and
|
---|
| 137 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>
|
---|
| 138 | </para>
|
---|
| 139 | -->
|
---|
| 140 | <para condition="html" role="usernotes">User Notes:
|
---|
| 141 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 142 |
|
---|
| 143 | <sect2>
|
---|
| 144 | <title>Downloading KDE Frameworks</title>
|
---|
| 145 |
|
---|
| 146 | <para>
|
---|
| 147 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 148 | <command>wget</command> to fetch them all at once:
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
| 152 | wget -r -nH --cut-dirs=3 -A '*.xz' -np $url
|
---|
| 153 | <literal>
|
---|
| 154 | The options used here are:
|
---|
| 155 | -r recurse through child directories
|
---|
| 156 | -nH disable generation of host-prefixed directories
|
---|
| 157 | --cut-dirs=3 remove three levels of directories when saving
|
---|
| 158 | -A '*.xz' just get the *.xz files
|
---|
| 159 | -np don't get parent directories</literal></userinput></screen>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2>
|
---|
| 164 | <title>Setting Package Order</title>
|
---|
| 165 |
|
---|
| 166 | <para>
|
---|
| 167 | The order of building files is important due to internal dependencies.
|
---|
| 168 | Create the list of files in the proper order as follows:
|
---|
| 169 | </para>
|
---|
| 170 |
|
---|
[69a9de5] | 171 | <screen><userinput>cat > plasma-&kf5-version;.md5 << "EOF"
|
---|
[f97d5f6] | 172 | <literal>
|
---|
| 173 | bb94a0d6f06583456b8f0a2eae07edd6 kde-cli-tools-5.4.2.tar.xz
|
---|
| 174 | 67683fc1ae1fdf014f567780502b574a kdecoration-5.4.2.tar.xz
|
---|
| 175 | c0c0eef0f2bfb93a81e4e701d7557eb9 kwayland-5.4.2.tar.xz
|
---|
| 176 | 5b3c52fbf0172dfcf749cde12ebb48f3 libkscreen-5.4.2.tar.xz
|
---|
| 177 | c770bd91e3947373c00938e2d85628d9 libksysguard-5.4.2.tar.xz
|
---|
| 178 | 0e1d48eba3d0261023954b46fe7af36e breeze-5.4.2.tar.xz
|
---|
| 179 | c60184edbd89bfcf1ee1c03aefd741f8 kwin-5.4.2.tar.xz
|
---|
| 180 | 55eeb736365e902e957509a43884efd9 oxygen-5.4.2.tar.xz
|
---|
| 181 | 25bc526b21e9a0472e94a73b5f2d7d83 oxygen-fonts-5.4.2.tar.xz
|
---|
| 182 | 770b8c69df2c550ab66f0c316c3bf850 khelpcenter-5.4.2.tar.xz
|
---|
| 183 | 6714e90d548f37ec32d2cc166c68149c kinfocenter-5.4.2.tar.xz
|
---|
| 184 | 7551c199c5caffda59363757bbc57243 ksysguard-5.4.2.tar.xz
|
---|
| 185 | 9d7cfdee2d138983f4267ba1e6a69be6 systemsettings-5.4.2.tar.xz
|
---|
| 186 | a4fe835089c213c52f1407715163bf80 plasma-workspace-5.4.2.tar.xz
|
---|
| 187 | bc10f321f5ea2a605be29d8cba6b9bc5 bluedevil-5.4.2.tar.xz
|
---|
| 188 | 530e74504d38cfd6783421c017c56f55 khotkeys-5.4.2.tar.xz
|
---|
| 189 | bfaf172def24ea772dfc58c798b68938 kmenuedit-5.4.2.tar.xz
|
---|
| 190 | 9b0b4e2268d87cc7699e1e74e6faa8c3 kscreen-5.4.2.tar.xz
|
---|
| 191 | 171c439473a4ab9cdbbed6732a70801b kwrited-5.4.2.tar.xz
|
---|
| 192 | 2298a15ef7957322b84829166824628c milou-5.4.2.tar.xz
|
---|
| 193 | 35c599c728739cded5596d4821b5a53f plasma-nm-5.4.2.tar.xz
|
---|
| 194 | d48aab54cfe78cfc74d0c8ba099a905b plasma-workspace-wallpapers-5.4.2.tar.xz
|
---|
| 195 | 64ed6fe8c59c2812b9c34cd8a3827735 polkit-kde-agent-1-5.4.2.tar.xz
|
---|
| 196 | 44dec41f77080fd83f2122fc2762f09a powerdevil-5.4.2.tar.xz
|
---|
| 197 | 457b1b6d69fd52416485e08ed7744fe3 plasma-desktop-5.4.2.tar.xz
|
---|
| 198 | b7049d459eccd6a5efbf55ff1c2121fb kdeplasma-addons-5.4.2.tar.xz
|
---|
| 199 | f8415a6a0e25a609d30c3d3ee2c9c696 kwayland-integration-5.4.2.tar.xz
|
---|
| 200 | 8adf666f98baf8f4f381d5515db4100b kde-gtk-config-5.4.2.tar.xz
|
---|
| 201 | e72368f28238ba7bacac81d5ff5e26f3 kgamma5-5.4.2.tar.xz
|
---|
| 202 | f6fac3219aa8ba5056e06ad0c92773c9 ksshaskpass-5.4.2.tar.xz
|
---|
| 203 | 888836db6c8fb4f1cc381ed56a690204 kwallet-pam-5.4.2.tar.xz
|
---|
| 204 | 05b79b89c9708c046775448ec846c513 muon-5.4.2.tar.xz
|
---|
| 205 | 78e2931ed08b8fffae67d7aa0cd90f9f plasma-mediacenter-5.4.2.tar.xz
|
---|
| 206 | b399b81c4d773355e5d5ef7b4d1a73a5 plasma-pa-5.4.2.tar.xz
|
---|
| 207 | c9bbe9a824400cbe7982aac0d8bdf6a3 plasma-sdk-5.4.2.tar.xz
|
---|
| 208 | 61585733e7a5585ea9ed203ad9b2a1a0 sddm-kcm-5.4.2.tar.xz
|
---|
| 209 | 5b0cb53813fc5f9a1406260d2a1109c7 user-manager-5.4.2.tar.xz</literal>
|
---|
[153a5795] | 210 | EOF</userinput></screen>
|
---|
| 211 |
|
---|
| 212 | </sect2>
|
---|
| 213 |
|
---|
| 214 | <sect2 role="installation">
|
---|
| 215 | <title>Installation of Plasma5</title>
|
---|
| 216 |
|
---|
| 217 | &as_root;
|
---|
| 218 |
|
---|
| 219 | <para>
|
---|
| 220 | First, start a subshell that will exit on error:
|
---|
| 221 | </para>
|
---|
| 222 |
|
---|
| 223 |
|
---|
| 224 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 225 |
|
---|
| 226 | <para>
|
---|
| 227 | Install all of the packages by running the following
|
---|
| 228 | commands:
|
---|
| 229 | </para>
|
---|
| 230 |
|
---|
| 231 | <screen><userinput>while read -r line; do
|
---|
| 232 |
|
---|
| 233 | # Get the file name, ignoring comments and blank lines
|
---|
| 234 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 235 | file=$(echo $line | cut -d" " -f2)
|
---|
| 236 |
|
---|
| 237 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 238 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 239 |
|
---|
| 240 | tar -xf $file
|
---|
| 241 | pushd $packagedir
|
---|
| 242 |
|
---|
[69a9de5] | 243 | mkdir build
|
---|
| 244 | cd build
|
---|
[153a5795] | 245 |
|
---|
[69a9de5] | 246 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 247 | -DCMAKE_BUILD_TYPE=Debug \
|
---|
| 248 | -DLIB_INSTALL_DIR=lib \
|
---|
| 249 | -DBUILD_TESTING=OFF \
|
---|
| 250 | -DQML_INSTALL_DIR=lib/qt5/qml \
|
---|
| 251 | -DQT_PLUGIN_INSTALL_DIR=lib/qt5/plugins \
|
---|
| 252 | -DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/qt5/mkspecs/modules \
|
---|
| 253 | -DOXYGEN_FONT_INSTALL_DIR=/usr/share/fonts/truetype/oxygen \
|
---|
| 254 | -Wno-dev .. &&
|
---|
[153a5795] | 255 |
|
---|
[69a9de5] | 256 | make
|
---|
| 257 | as_root make install
|
---|
| 258 | popd
|
---|
[153a5795] | 259 |
|
---|
[69a9de5] | 260 | rm -rf $packagedir
|
---|
| 261 | as_root /sbin/ldconfig
|
---|
| 262 |
|
---|
| 263 | done < plasma-&kf5-version;.md5
|
---|
[153a5795] | 264 |
|
---|
| 265 | exit</userinput></screen>
|
---|
| 266 |
|
---|
| 267 |
|
---|
| 268 | </sect2>
|
---|
| 269 |
|
---|
| 270 | <sect2 role="commands">
|
---|
| 271 | <title>Command Explanations</title>
|
---|
| 272 |
|
---|
| 273 | <para>
|
---|
[69a9de5] | 274 | Deferred.
|
---|
[153a5795] | 275 | </para>
|
---|
| 276 |
|
---|
| 277 | </sect2>
|
---|
| 278 | <sect2 role="content">
|
---|
| 279 | <title>Contents</title>
|
---|
| 280 |
|
---|
| 281 | <segmentedlist>
|
---|
| 282 | <segtitle>Installed Programs</segtitle>
|
---|
| 283 | <segtitle>Installed Libraries</segtitle>
|
---|
| 284 | <segtitle>Installed Directories</segtitle>
|
---|
| 285 |
|
---|
| 286 | <seglistitem>
|
---|
| 287 | <seg>
|
---|
[69a9de5] | 288 | Deferred
|
---|
[153a5795] | 289 | </seg>
|
---|
| 290 | <seg>
|
---|
[69a9de5] | 291 | Deferred
|
---|
[153a5795] | 292 | </seg>
|
---|
| 293 | <seg>
|
---|
[69a9de5] | 294 | Deferred
|
---|
[153a5795] | 295 | </seg>
|
---|
| 296 | </seglistitem>
|
---|
| 297 | </segmentedlist>
|
---|
| 298 |
|
---|
| 299 | </sect2>
|
---|
| 300 |
|
---|
| 301 | </sect1>
|
---|
| 302 |
|
---|