[f175d6f6] | 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 kf5-download-http "&kf5-download-http;">
|
---|
| 8 | <!ENTITY kf5-download-ftp "&kf5e-download-ftp;">
|
---|
| 9 | <!ENTITY kf5-md5sum "See Below">
|
---|
| 10 | <!ENTITY kf5-size "30 MB">
|
---|
| 11 | <!ENTITY kf5-buildsize "11.7 MB">
|
---|
| 12 | <!ENTITY kf5-time "0.4 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="kf5-intro" xreflabel="Introduction to KF5">
|
---|
| 16 | <?dbhtml filename="kf5-intro.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[d027410] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[f175d6f6] | 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>KDE Frameworks 5 Pre-installation Configuration</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="kf5">
|
---|
| 26 | <primary sortas="a-kf5">KDE Frameworks</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <para>KF5 can be installed in /usr or /opt/kf5. The BLFS editors
|
---|
[36336d8] | 30 | recommend the latter in the BLFS environment.
|
---|
[f175d6f6] | 31 | </para>
|
---|
| 32 |
|
---|
| 33 | <sect2>
|
---|
| 34 | <title>Installing in /usr</title>
|
---|
| 35 |
|
---|
| 36 | <para>
|
---|
| 37 | One option is to install <application>KDE Frameworks 5</application>
|
---|
| 38 | into the <filename class="directory">/usr</filename> hierarchy.
|
---|
| 39 | This creates a simpler setup but makes it more difficult to try
|
---|
| 40 | multiple versions of <application>KDE Frameworks</application>.
|
---|
| 41 | </para>
|
---|
| 42 |
|
---|
| 43 | <screen><userinput>export KF5_PREFIX=/usr</userinput></screen>
|
---|
| 44 |
|
---|
| 45 | <para>
|
---|
| 46 | It is a good idea to add the following variables to your
|
---|
| 47 | system or personal profile:
|
---|
| 48 | </para>
|
---|
| 49 |
|
---|
| 50 | <screen role="root"><userinput>cat > /etc/profile.d/kf5.sh << "EOF"
|
---|
| 51 | <literal># Begin /etc/profile.d/kf5.sh
|
---|
| 52 |
|
---|
[1c2bec77] | 53 | . /etc/profile.d/qt5.sh
|
---|
| 54 |
|
---|
[f175d6f6] | 55 | export KF5_PREFIX=/usr
|
---|
| 56 |
|
---|
| 57 | pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
|
---|
| 58 | pathappend $QT5DIR/lib/qt5/plugins QT_PLUGIN_PATH
|
---|
| 59 |
|
---|
| 60 | pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
|
---|
| 61 | pathappend $QT5DIR/lib/qt5/qml QML_IMPORT_PATH
|
---|
| 62 |
|
---|
| 63 | pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
|
---|
| 64 | pathappend $QT5DIR/lib/qt5/qml QML2_IMPORT_PATH
|
---|
| 65 |
|
---|
| 66 | # End /etc/profile.d/kf5.sh</literal>
|
---|
| 67 | EOF
|
---|
| 68 |
|
---|
| 69 | EOF</userinput></screen>
|
---|
| 70 | <warning>
|
---|
| 71 | <para>
|
---|
| 72 | If <application>KDE4</application> is installed in
|
---|
| 73 | <filename class="directory">/usr</filename>, some packages
|
---|
| 74 | from this chapter might overwrite some programs installed
|
---|
| 75 | by <application>KDE4</application> packages.
|
---|
| 76 | </para>
|
---|
| 77 | </warning>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
| 82 | <title>Installing in /opt</title>
|
---|
| 83 |
|
---|
| 84 | <para>
|
---|
| 85 | A method of building multiple versions installs
|
---|
| 86 | <application>KDE Frameworks 5</application> in the
|
---|
| 87 | <filename class="directory">/opt</filename> hierarchy:
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput>export KF5_PREFIX=/opt/kf5</userinput></screen>
|
---|
| 91 |
|
---|
| 92 | <para>
|
---|
| 93 | If you are not installing <application>KDE Frameworks 5</application>
|
---|
| 94 | in <filename class="directory">/usr</filename>, you will need to
|
---|
| 95 | make some additional configuration changes. Best practice is to add
|
---|
| 96 | those to your system or personal profile:
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <screen role="root"><userinput>cat > /etc/profile.d/kf5.sh << "EOF"
|
---|
| 100 | <literal># Begin /etc/profile.d/kf5.sh
|
---|
| 101 |
|
---|
[1c2bec77] | 102 | . /etc/profile.d/qt5.sh
|
---|
| 103 |
|
---|
[f175d6f6] | 104 | export KF5_PREFIX=/opt/kf5
|
---|
| 105 |
|
---|
| 106 | pathappend $KF5_PREFIX/bin PATH
|
---|
| 107 | pathappend $KF5_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 108 |
|
---|
| 109 | pathappend /etc/xdg XDG_CONFIG_DIRS
|
---|
| 110 | pathappend $KF5_PREFIX/etc/xdg XDG_CONFIG_DIRS
|
---|
| 111 | pathappend /usr/share XDG_DATA_DIRS
|
---|
| 112 | pathappend $KF5_PREFIX/share XDG_DATA_DIRS
|
---|
| 113 |
|
---|
| 114 | pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
|
---|
[1c2bec77] | 115 | pathappend $QT5DIR/plugins QT_PLUGIN_PATH
|
---|
[f175d6f6] | 116 | pathappend $KF5_PREFIX/lib/plugins QT_PLUGIN_PATH
|
---|
| 117 |
|
---|
| 118 | pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
|
---|
[1c2bec77] | 119 | pathappend $QT5DIR/qml QML_IMPORT_PATH
|
---|
[f175d6f6] | 120 | pathappend $KF5_PREFIX/lib/qml QML_IMPORT_PATH
|
---|
| 121 |
|
---|
| 122 | pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
|
---|
[1c2bec77] | 123 | pathappend $QT5DIR/qml QML2_IMPORT_PATH
|
---|
[f175d6f6] | 124 | pathappend $KF5_PREFIX/lib/qml QML2_IMPORT_PATH
|
---|
| 125 |
|
---|
| 126 | pathappend $KF5_PREFIX/lib/python&python2-majorver;/site-packages PYTHONPATH
|
---|
| 127 | # End /etc/profile.d/kf5.sh</literal>
|
---|
| 128 | EOF
|
---|
| 129 |
|
---|
| 130 | cat > /etc/profile.d/qt5.sh << "EOF"
|
---|
| 131 | <literal># Begin /etc/profile.d/kf5.sh
|
---|
| 132 | # Begin Qt5 changes for KF5
|
---|
| 133 |
|
---|
| 134 | pathappend $QT5DIR/plugins QT_PLUGIN_PATH
|
---|
| 135 | pathappend $QT5DIR/qml QML_IMPORT_PATH
|
---|
| 136 | pathappend $QT5DIR/qml QML2_IMPORT_PATH
|
---|
| 137 |
|
---|
| 138 | # End Qt5 changes for KF5</literal>
|
---|
| 139 | EOF</userinput></screen>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | Expand your <filename>/etc/ld.so.conf</filename> file:
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
| 146 | <literal># Begin KF5 addition
|
---|
| 147 |
|
---|
| 148 | /opt/kf5/lib
|
---|
| 149 |
|
---|
| 150 | # End KF5 addition</literal>
|
---|
| 151 | EOF</userinput></screen>
|
---|
| 152 |
|
---|
| 153 | <indexterm zone="kf5-intro">
|
---|
| 154 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | Several <application>KDE Frameworks 5</application> packages install
|
---|
| 159 | files into <application>D-Bus</application> directories. When installing
|
---|
| 160 | <application>KDE Frameworks 5</application> in a location other than
|
---|
| 161 | <filename class="directory">/usr</filename>,
|
---|
| 162 | <application>D-Bus</application> needs to be able to find these files.
|
---|
| 163 | The easiest way to achieve this is to create the following symlinks (as
|
---|
| 164 | the <systemitem class="username">root</systemitem> user):
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &&
|
---|
| 168 | ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &&
|
---|
| 169 | ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share</userinput></screen>
|
---|
| 170 |
|
---|
| 171 | <para>
|
---|
| 172 | Some packages may also install icons from the "hicolor" icon set. Since that
|
---|
| 173 | icon set is used by many packages, it is a good idea to create a
|
---|
| 174 | symlink to the one in <filename class="directory">/usr/share</filename>
|
---|
| 175 | to avoid having multiple installations of <xref linkend="hicolor-icon-theme"/>.
|
---|
| 176 | Run the following commands as the <systemitem class="username">root</systemitem>
|
---|
| 177 | user:
|
---|
| 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/share/icons &&
|
---|
| 181 | ln -sfv /usr/share/icons/hicolor $KF5_PREFIX/share/icons</userinput></screen>
|
---|
| 182 |
|
---|
| 183 | <tip>
|
---|
| 184 | <para>
|
---|
| 185 | Sometimes, the installation paths are hardcoded into installed files.
|
---|
| 186 | This is the reason why <filename class="directory">/opt/kf5</filename>
|
---|
| 187 | is used as installation prefix instead of <filename
|
---|
| 188 | class="directory">/opt/kf5-&kf5-version;</filename>. After installing
|
---|
| 189 | <application>KDE Frameworks</application>, you may rename the directory
|
---|
| 190 | and create a symlink:
|
---|
| 191 | </para>
|
---|
| 192 |
|
---|
| 193 | <screen role="root"><userinput>mv /opt/kf5{,-&kf5-version;}
|
---|
| 194 | ln -sfv kf5-&kf5-version; /opt/kf5</userinput></screen>
|
---|
| 195 |
|
---|
| 196 | <para>
|
---|
| 197 | Later on, you may want to install other versions of
|
---|
| 198 | <application>KDE Frameworks 5</application>. To do that, just remove
|
---|
| 199 | the symlink and use <filename class="directory">/opt/kf5</filename>
|
---|
| 200 | as the prefix again. Which version of
|
---|
| 201 | <application>KDE Frameworks 5</application> you use depends only on
|
---|
| 202 | where the symlink points. No other reconfiguration will be needed.
|
---|
| 203 | </para>
|
---|
| 204 | </tip>
|
---|
| 205 |
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | </sect1>
|
---|
| 209 |
|
---|
| 210 |
|
---|