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